pub struct SeedSignerKey { /* private fields */ }Expand description
SignerKey implementation backed by a SecureSeed, routing through CryptoProvider.
Implementations§
Source§impl SeedSignerKey
impl SeedSignerKey
Sourcepub fn new(seed: SecureSeed, public_key: [u8; 32]) -> Self
pub fn new(seed: SecureSeed, public_key: [u8; 32]) -> Self
Create a SignerKey from a seed and pre-computed public key.
Sourcepub fn from_seed(seed: SecureSeed) -> Result<Self, AgentError>
pub fn from_seed(seed: SecureSeed) -> Result<Self, AgentError>
Create a SignerKey by deriving the public key from the seed.
Trait Implementations§
Source§impl SignerKey for SeedSignerKey
impl SignerKey for SeedSignerKey
Auto Trait Implementations§
impl Freeze for SeedSignerKey
impl RefUnwindSafe for SeedSignerKey
impl Send for SeedSignerKey
impl Sync for SeedSignerKey
impl Unpin for SeedSignerKey
impl UnsafeUnpin for SeedSignerKey
impl UnwindSafe for SeedSignerKey
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