pub struct SoftwareRound1Wire {
pub software_dkg_version: u8,
pub sender_index: u16,
pub package_hex: String,
}Expand description
Wire-format round1 package emitted by SoftwareDkgSession::round1. The
CLI encodes this as JSON and publishes it on the DKG topic; peers running
this same version decode it back via SoftwareDkgSession::round1_peer.
Fields§
§software_dkg_version: u8Discriminator so hardware peers reject the payload rather than
silently mis-decoding. Must equal SOFTWARE_DKG_VERSION.
sender_index: u16The 1-indexed participant identifier that produced this package.
package_hex: StringHex-encoded frost_secp256k1_tr::keys::dkg::round1::Package::serialize
output.
Trait Implementations§
Source§impl Clone for SoftwareRound1Wire
impl Clone for SoftwareRound1Wire
Source§impl Debug for SoftwareRound1Wire
impl Debug for SoftwareRound1Wire
Source§impl<'de> Deserialize<'de> for SoftwareRound1Wire
impl<'de> Deserialize<'de> for SoftwareRound1Wire
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for SoftwareRound1Wire
impl Freeze for SoftwareRound1Wire
impl Move for SoftwareRound1Wire
impl RefUnwindSafe for SoftwareRound1Wire
impl Send for SoftwareRound1Wire
impl Sync for SoftwareRound1Wire
impl Unpin for SoftwareRound1Wire
impl UnsafeUnpin for SoftwareRound1Wire
impl UnwindSafe for SoftwareRound1Wire
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more