pub struct BlsKeyShare {
pub identifier: u16,
pub public_key: BlsPublicKey,
/* private fields */
}Expand description
A BLS key share for threshold signing.
Fields§
§identifier: u16Participant identifier (1-indexed).
public_key: BlsPublicKeyThe corresponding public key share.
Implementations§
Sourcepub fn sign(&self, message: &[u8]) -> Result<BlsPartialSignature, SignerError>
pub fn sign(&self, message: &[u8]) -> Result<BlsPartialSignature, SignerError>
Sign a message with this key share to produce a partial signature.
Sourcepub fn secret_key_bytes(&self) -> &[u8] ⓘ
pub fn secret_key_bytes(&self) -> &[u8] ⓘ
Get the secret key share bytes.
Trait Implementations§
Source§fn clone(&self) -> BlsKeyShare
fn clone(&self) -> BlsKeyShare
Returns a duplicate 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 moreAuto 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