pub trait SignedBody: Serialize {
const DOMAIN: &'static [u8];
}Expand description
A value that travels signed. The body names the domain its signature is bound to, so a signature over one artifact can never be replayed as another.
Everything the body holds is signed, structurally: Signed serializes the
whole body to produce the signed bytes. A field added to a body is covered
the moment it exists, with no separate list to keep in step.
Required Associated Constants§
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.