Skip to content

Struct keys::Signature

zaun_community_protocol::keys::Signature · Struct

pub struct Signature(…)

A composite signature, 3 374 bytes.

pub fn from_bytes(bytes: &[u8]) -> Result<Self, KeyEncodingError>

Parses the encoding, checking the suite byte and length.

KeyEncodingError for an unknown suite or a wrong length.

pub fn as_bytes(&self) -> &[u8]

The full encoding, suite byte first.

pub fn suite(&self) -> Suite

The suite.

pub fn mldsa(&self) -> &[u8]

The ML-DSA-65 component (RFC 10073 serialisation, first part).

pub fn ed25519(&self) -> &[u8]

The Ed25519 component (RFC 10073 serialisation, second part).

Clone, Debug, Deserialize<'de>, Eq, Hash, PartialEq, Serialize, StructuralPartialEq

Full rustdoc page