pub struct SignerPublicKey {
pub ident: Scalar,
/* private fields */
}Expand description
A signer’s public key.
This structure contains the public key of a given signer. It includes the signer’s identifier. It does NOT include the group public key.
Fields§
§ident: ScalarSigner identifier
Implementations§
Source§impl SignerPublicKey
impl SignerPublicKey
Sourcepub fn decode(buf: &[u8]) -> Option<Self>
pub fn decode(buf: &[u8]) -> Option<Self>
Decodes this public key from bytes.
The process fails (i.e. returns None) if the source slice
does not have a proper length or does not contain properly
canonical encodings of the share identifier and signer’s
public key.
Verifies a signature share relatively to this signer’s public key, for a given signature generation process.
This function can be used by the coordinator to check that the
signer computed its signature share properly. It is implictly
called by Coordinator::assemble_signature().
Trait Implementations§
Source§impl Clone for SignerPublicKey
impl Clone for SignerPublicKey
Source§fn clone(&self) -> SignerPublicKey
fn clone(&self) -> SignerPublicKey
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 moreSource§impl Debug for SignerPublicKey
impl Debug for SignerPublicKey
impl Copy for SignerPublicKey
Auto Trait Implementations§
impl Freeze for SignerPublicKey
impl RefUnwindSafe for SignerPublicKey
impl Send for SignerPublicKey
impl Sync for SignerPublicKey
impl Unpin for SignerPublicKey
impl UnwindSafe for SignerPublicKey
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