Type Alias ic_certification::Certificate

source ·
pub type Certificate = Certificate<Vec<u8>>;
Expand description

Aliased Type§

struct Certificate {
    pub tree: HashTree<Vec<u8, Global>>,
    pub signature: Vec<u8, Global>,
    pub delegation: Option<Delegation<Vec<u8, Global>>>,
}

Fields§

§tree: HashTree<Vec<u8, Global>>

The hash tree.

§signature: Vec<u8, Global>

The signature of the root hash in tree.

§delegation: Option<Delegation<Vec<u8, Global>>>

A delegation from the root key to the key used to sign signature, if one exists.

Trait Implementations§

source§

impl<Storage: Clone + AsRef<[u8]>> Clone for Certificate<Storage>

source§

fn clone(&self) -> Certificate<Storage>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Storage: Debug + AsRef<[u8]>> Debug for Certificate<Storage>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Certificate<Vec<u8>>

source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<Storage: PartialEq + AsRef<[u8]>> PartialEq<Certificate<Storage>> for Certificate<Storage>

source§

fn eq(&self, other: &Certificate<Storage>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Storage> Serialize for Certificate<Storage>where Storage: Serialize + AsRef<[u8]>,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<Storage: Eq + AsRef<[u8]>> Eq for Certificate<Storage>

source§

impl<Storage: AsRef<[u8]>> StructuralEq for Certificate<Storage>

source§

impl<Storage: AsRef<[u8]>> StructuralPartialEq for Certificate<Storage>