SignedStruct

Trait SignedStruct 

Source
pub trait SignedStruct<T> {
    // Required method
    fn from_payload(
        payload: T,
        signature: Signature,
        serialized_payload: Vec<u8>,
    ) -> Self;
}
Available on 32-bit or 64-bit only.
Expand description

This trait must be implemented by all structs that contain a self-signature.

Required Methods§

Source

fn from_payload( payload: T, signature: Signature, serialized_payload: Vec<u8>, ) -> Self

Build a signed struct version from the payload struct.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SignedStruct<FrankenKeyPackageTbs> for FrankenKeyPackage

Available on crate features test-utils only.
Source§

impl SignedStruct<FrankenLeafNodeTbs> for FrankenLeafNode

Available on crate features test-utils only.
Source§

impl<T> SignedStruct<T> for Signature