Skip to main content

EndpointSigner

Trait EndpointSigner 

Source
pub trait EndpointSigner {
    // Required methods
    fn endpoint(&self) -> EndpointIdentity;
    fn sign_classical(&self, message: &[u8]) -> [u8; 64];
    fn sign_post_quantum(&self, message: &[u8]) -> [u8; 3309];
}
Expand description

An endpoint capable of producing both mandatory FCP signatures.

Required Methods§

Source

fn endpoint(&self) -> EndpointIdentity

Returns the complete identity used to address and authenticate envelopes.

Source

fn sign_classical(&self, message: &[u8]) -> [u8; 64]

Produces the canonical Ed25519 signature for the supplied transcript.

Source

fn sign_post_quantum(&self, message: &[u8]) -> [u8; 3309]

Produces the canonical ML-DSA-65 signature for the supplied transcript.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§