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§
Sourcefn from_payload(
payload: T,
signature: Signature,
serialized_payload: Vec<u8>,
) -> Self
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§
impl SignedStruct<FrankenKeyPackageTbs> for FrankenKeyPackage
Available on crate features
test-utils only.impl SignedStruct<FrankenLeafNodeTbs> for FrankenLeafNode
Available on crate features
test-utils only.