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§
Sourceconst DOMAIN_TAG: DomainTag
const DOMAIN_TAG: DomainTag
Message family of this descriptor kind.
Required Associated Types§
Sourcetype Descriptor
type Descriptor
Concrete signed descriptor type produced from Self.
Required Methods§
Sourcefn body_public_key(&self) -> &VerificationPublicKey
fn body_public_key(&self) -> &VerificationPublicKey
Return the signer’s account verification public key stated in the body.
Sourcefn body_network_id(&self) -> u32
fn body_network_id(&self) -> u32
Return the overlay network identifier stated in the body.
Sourcefn body_signing_data(&self) -> Result<Vec<u8>>
fn body_signing_data(&self) -> Result<Vec<u8>>
Canonical byte serialization covered by the descriptor signature.
Sourcefn into_signed_descriptor(
self,
signature: MessageVerification,
) -> Self::Descriptor
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".