Type Alias ic_certification::Certificate
source · pub type Certificate = Certificate<Vec<u8>>;Expand description
A Certificate as defined in https://internetcomputer.org/docs/current/references/ic-interface-spec/#certificate
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>
impl<Storage: Clone + AsRef<[u8]>> Clone for Certificate<Storage>
source§fn clone(&self) -> Certificate<Storage>
fn clone(&self) -> Certificate<Storage>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'de> Deserialize<'de> for Certificate<Vec<u8>>
impl<'de> Deserialize<'de> for Certificate<Vec<u8>>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
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>
impl<Storage: PartialEq + AsRef<[u8]>> PartialEq<Certificate<Storage>> for Certificate<Storage>
source§fn eq(&self, other: &Certificate<Storage>) -> bool
fn eq(&self, other: &Certificate<Storage>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.