Trait Signatures

Source
pub trait Signatures {
    // Required methods
    fn ec_signature(&self) -> &Ed25519Signature;
    fn pq_signature(&self) -> &FnDsaSignature;

    // Provided method
    fn context() -> &'static [u8]  { ... }
}
Expand description

Carries signatures.

Required Methods§

Source

fn ec_signature(&self) -> &Ed25519Signature

Access to the Ed25519 signature.

Source

fn pq_signature(&self) -> &FnDsaSignature

Access to the FN-DSA signature.

Provided Methods§

Source

fn context() -> &'static [u8]

Type name string as bytes, used for domain separation.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§