pub struct SigningKeyShare<T: LamportDigest> { /* private fields */ }
Expand description
A key share that must be combined with other secret key shares to produce the signing key, or used for creating partial signatures.
Implementations§
Sourcepub fn sign<B: AsRef<[u8]>>(
&mut self,
data: B,
) -> LamportResult<SignatureShare<T>>
pub fn sign<B: AsRef<[u8]>>( &mut self, data: B, ) -> LamportResult<SignatureShare<T>>
Signs the data to create a SignatureShare
.
Sourcepub fn from_bytes<B: AsRef<[u8]>>(input: B) -> LamportResult<Self>
pub fn from_bytes<B: AsRef<[u8]>>(input: B) -> LamportResult<Self>
Constructs a SigningKeyShare
from canonical bytes.
Trait Implementations§
Source§fn clone(&self) -> SigningKeyShare<T>
fn clone(&self) -> SigningKeyShare<T>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§fn cmp(&self, other: &SigningKeyShare<T>) -> Ordering
fn cmp(&self, other: &SigningKeyShare<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§type Error = LamportError
type Error = LamportError
The type returned in the event of a conversion error.
Source§fn try_from(value: &[u8]) -> LamportResult<Self>
fn try_from(value: &[u8]) -> LamportResult<Self>
Performs the conversion.
Source§type Error = LamportError
type Error = LamportError
The type returned in the event of a conversion error.
Source§type Error = LamportError
type Error = LamportError
The type returned in the event of a conversion error.
Source§type Error = LamportError
type Error = LamportError
The type returned in the event of a conversion error.
Auto Trait Implementations§
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