pub struct SeedSignerKey { /* private fields */ }Expand description
SignerKey implementation backed by a curve-tagged seed.
carries DevicePublicKey instead of bare [u8; 32] so callers
can’t accidentally drop curve information.
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 32-byte Ed25519 pubkey.
Back-compat constructor — prefer SeedSignerKey::new_typed when curve
is known.
Sourcepub fn new_typed(seed: SecureSeed, public_key: DevicePublicKey) -> Self
pub fn new_typed(seed: SecureSeed, public_key: DevicePublicKey) -> Self
Create a curve-tagged SignerKey from a seed + typed 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 an Ed25519 seed.
Preserved for back-compat; use SeedSignerKey::from_typed_seed for
curve-aware construction.
Sourcepub fn from_typed_seed(seed: TypedSeed) -> Result<Self, AgentError>
pub fn from_typed_seed(seed: TypedSeed) -> Result<Self, AgentError>
Create a SignerKey from a curve-tagged TypedSeed.
Sourcepub fn typed_public_key(&self) -> &DevicePublicKey
pub fn typed_public_key(&self) -> &DevicePublicKey
Returns a typed view of the public key.
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