Skip to main content

CapsuleEd25519Signer

Trait CapsuleEd25519Signer 

Source
pub trait CapsuleEd25519Signer {
    // Required methods
    fn verifying_key(&self) -> VerifyingKey;
    fn sign_detached(&self, tbs: &[u8]) -> Result<[u8; 64]>;
}
Expand description

An Ed25519 capsule signer whose secret half may live outside the process.

The deployment-authority ceremony keeps its classical leg in a YubiKey PIV slot, so the inner EdDSA layer cannot be produced from an in-process [SigningKey]. Implementors sign the inner COSE layer’s detached to-be-signed bytes out-of-band and return the raw 64-byte signature; the ML-DSA-65 leg is still an in-process key, so GATE 2 (hybrid PINNED) is unchanged — this trait only relocates the classical half.

Required Methods§

Source

fn verifying_key(&self) -> VerifyingKey

The public half the capsule publishes as its subject key.

Source

fn sign_detached(&self, tbs: &[u8]) -> Result<[u8; 64]>

Sign the inner EdDSA layer’s detached to-be-signed bytes.

Implementations on Foreign Types§

Source§

impl CapsuleEd25519Signer for SigningKey

Source§

fn verifying_key(&self) -> VerifyingKey

Source§

fn sign_detached(&self, tbs: &[u8]) -> Result<[u8; 64]>

Implementors§