pub struct SoftwareSigner { /* private fields */ }Expand description
In-process Ed25519 signer holding the raw 32-byte seed (the default key
custody mode; HSM-backed custody is S34). The seed is wrapped in
zeroize::Zeroizing so it is wiped on drop. Behaviour-identical to
sign_event_ed25519 for the same seed + kid — see
sign_event_with.
Implementations§
Source§impl SoftwareSigner
impl SoftwareSigner
Sourcepub fn from_seed(
kid: impl Into<String>,
seed: [u8; 32],
) -> Result<Self, CellosError>
pub fn from_seed( kid: impl Into<String>, seed: [u8; 32], ) -> Result<Self, CellosError>
Build a signer from a raw 32-byte Ed25519 seed and a kid. The public
key is derived once via the active provider’s adapter and cached.
§Errors
Returns an error if the seed cannot be turned into a valid keypair.
Trait Implementations§
Source§impl Signer for SoftwareSigner
impl Signer for SoftwareSigner
Source§fn sign(&self, message: &[u8]) -> Result<[u8; 64], CellosError>
fn sign(&self, message: &[u8]) -> Result<[u8; 64], CellosError>
Sign
message, returning the raw 64-byte Ed25519 signature. Read moreSource§fn verifying_key(&self) -> TrustAnchorPublicKey
fn verifying_key(&self) -> TrustAnchorPublicKey
The public verifying key, for building a verifier-side keyring entry.
Auto Trait Implementations§
impl Freeze for SoftwareSigner
impl RefUnwindSafe for SoftwareSigner
impl Send for SoftwareSigner
impl Sync for SoftwareSigner
impl Unpin for SoftwareSigner
impl UnsafeUnpin for SoftwareSigner
impl UnwindSafe for SoftwareSigner
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