Skip to main content

Signer

Trait Signer 

Source
pub trait Signer: Send + Sync {
    // Required methods
    fn key_id(&self) -> &str;
    fn sign(&self, msg: &[u8]) -> [u8; 64];
    fn public_key_bytes(&self) -> [u8; 32];
}
Expand description

Abstract signer — the KMS integration point (brief Module G, post-MVP).

Required Methods§

Source

fn key_id(&self) -> &str

Stable identifier for the signing key (embedded in receipts).

Source

fn sign(&self, msg: &[u8]) -> [u8; 64]

Sign msg, returning the 64-byte Ed25519 signature.

Source

fn public_key_bytes(&self) -> [u8; 32]

The corresponding public key (32 bytes).

Implementors§