pub struct SigilKeypair { /* private fields */ }Expand description
An Ed25519 keypair for signing SIGIL envelopes.
The signing key is kept in memory only. In production, the private key MUST be stored in a secure enclave or OS keychain (SIGIL Spec §11.4).
Implementations§
Source§impl SigilKeypair
impl SigilKeypair
Sourcepub fn from_seed(seed: &[u8; 32]) -> Self
pub fn from_seed(seed: &[u8; 32]) -> Self
Load a keypair from a raw 32-byte seed (private key scalar).
Sourcepub fn verifying_key_base64(&self) -> String
pub fn verifying_key_base64(&self) -> String
Export the public verifying key as base64url (no padding).
This is the value to store in the DID Document and SIGIL Registry.
Sourcepub fn verifying_key_bytes(&self) -> [u8; 32]
pub fn verifying_key_bytes(&self) -> [u8; 32]
Export the raw verifying key bytes (32 bytes).
Auto Trait Implementations§
impl Freeze for SigilKeypair
impl RefUnwindSafe for SigilKeypair
impl Send for SigilKeypair
impl Sync for SigilKeypair
impl Unpin for SigilKeypair
impl UnsafeUnpin for SigilKeypair
impl UnwindSafe for SigilKeypair
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