#[repr(C)]pub struct PreSign {
pub final_session_id: [u8; 32],
/* private fields */
}
Expand description
Result of the pre-signature phase for a party
This structure contains all the necessary information from the pre-signature phase that will be needed to complete the signature in the finish phase.
§Memory Layout
The structure is marked with #[repr(C)]
to ensure a stable memory layout
and uses AnyBitPattern
and NoUninit
for safe memory operations.
It also implements Zeroize
to ensure sensitive data is securely erased.
Fields§
§final_session_id: [u8; 32]
Final session identifier
Trait Implementations§
impl AnyBitPattern for PreSign
impl Copy for PreSign
impl NoUninit for PreSign
Auto Trait Implementations§
impl Freeze for PreSign
impl RefUnwindSafe for PreSign
impl Send for PreSign
impl Sync for PreSign
impl Unpin for PreSign
impl UnwindSafe for PreSign
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
§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.