Struct keys::Signature
zaun_community_protocol::keys::Signature · Struct
pub struct Signature(…)A composite signature, 3 374 bytes.
Methods
Section titled “Methods”from_bytes
Section titled “from_bytes”pub fn from_bytes(bytes: &[u8]) -> Result<Self, KeyEncodingError>Parses the encoding, checking the suite byte and length.
Errors
Section titled “Errors”KeyEncodingError for an unknown suite or a wrong length.
as_bytes
Section titled “as_bytes”pub fn as_bytes(&self) -> &[u8]The full encoding, suite byte first.
pub fn suite(&self) -> SuiteThe suite.
pub fn mldsa(&self) -> &[u8]The ML-DSA-65 component (RFC 10073 serialisation, first part).
ed25519
Section titled “ed25519”pub fn ed25519(&self) -> &[u8]The Ed25519 component (RFC 10073 serialisation, second part).
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, Eq, Hash, PartialEq, Serialize, StructuralPartialEq