pub struct Ed25519Signer { /* private fields */ }Expand description
Ed25519 signer implementation
Implementations§
Source§impl Ed25519Signer
impl Ed25519Signer
pub fn new(signing_key: SigningKey, validator_id: ValidatorId) -> Self
pub fn generate(validator_id: ValidatorId) -> Self
pub fn verifying_key(&self) -> VerifyingKey
Trait Implementations§
Source§impl Signer for Ed25519Signer
impl Signer for Ed25519Signer
fn sign(&self, message: &[u8]) -> Signature
fn public_key(&self) -> PublicKey
fn validator_id(&self) -> ValidatorId
Auto Trait Implementations§
impl Freeze for Ed25519Signer
impl RefUnwindSafe for Ed25519Signer
impl Send for Ed25519Signer
impl Sync for Ed25519Signer
impl Unpin for Ed25519Signer
impl UnsafeUnpin for Ed25519Signer
impl UnwindSafe for Ed25519Signer
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