Skip to content

Struct crypto::voice::SignedKeyPackage

zaun_community_protocol::crypto::voice::SignedKeyPackage · Struct

pub struct SignedKeyPackage(…)

A key package whose signature was made here or verified.

pub const fn package(&self) -> &KeyPackage

The package.

pub fn hash(&self) -> [u8; 32]

SHA3-256 of the canonical bytes: bound into every key wrapped to this package.

pub fn to_wire(&self) -> Vec<u8>

The wire form: canonical bytes ‖ signature.

Clone, Debug, Eq, PartialEq, StructuralPartialEq

Full rustdoc page