pub trait VerifiedStruct<T> {
    type SealingType: Default;
}
Expand description

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

Required Associated Types§

source

type SealingType: Default

This type is used to prevent users of the trait from bypassing verify by simply calling from_verifiable. Seal should be a dummy type defined in a private module as follows:

mod private_mod {
    pub struct Seal;

    impl Default for Seal {
        fn default() -> Self {
            Seal {}
        }
    }
}

Implementors§