Skip to main content

SignedDescriptorBody

Trait SignedDescriptorBody 

Source
pub trait SignedDescriptorBody: Sized {
    type Descriptor;

    const DOMAIN_TAG: DomainTag;

    // Required methods
    fn body_did(&self) -> Did;
    fn body_public_key(&self) -> &VerificationPublicKey;
    fn body_network_id(&self) -> u32;
    fn body_signing_data(&self) -> Result<Vec<u8>>;
    fn into_signed_descriptor(
        self,
        signature: MessageVerification,
    ) -> Self::Descriptor;
}
Expand description

The signed fields of one descriptor kind.

Required Associated Constants§

Source

const DOMAIN_TAG: DomainTag

Message family of this descriptor kind.

Required Associated Types§

Source

type Descriptor

Concrete signed descriptor type produced from Self.

Required Methods§

Source

fn body_did(&self) -> Did

Return the signer’s account DID stated in the body.

Source

fn body_public_key(&self) -> &VerificationPublicKey

Return the signer’s account verification public key stated in the body.

Source

fn body_network_id(&self) -> u32

Return the overlay network identifier stated in the body.

Source

fn body_signing_data(&self) -> Result<Vec<u8>>

Canonical byte serialization covered by the descriptor signature.

Source

fn into_signed_descriptor( self, signature: MessageVerification, ) -> Self::Descriptor

Assemble the signed descriptor from self and signature.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§