#[repr(C)]pub struct AvidmGf2Commit {
pub commit: <HasherMerkleTree<Keccak256, HasherNode<Keccak256>> as MerkleTreeScheme>::Commitment,
}Expand description
VID Commitment type
Fields§
§commit: <HasherMerkleTree<Keccak256, HasherNode<Keccak256>> as MerkleTreeScheme>::CommitmentVID commitment is the Merkle tree root
Trait Implementations§
Source§impl AsRef<[u8]> for AvidmGf2Commit
impl AsRef<[u8]> for AvidmGf2Commit
Source§impl CanonicalDeserialize for AvidmGf2Commit
impl CanonicalDeserialize for AvidmGf2Commit
Source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
The general deserialize method that takes in customization flags.
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
Source§impl CanonicalSerialize for AvidmGf2Commit
impl CanonicalSerialize for AvidmGf2Commit
Source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
The general serialize method that takes in customization flags.
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
Source§impl Clone for AvidmGf2Commit
impl Clone for AvidmGf2Commit
Source§fn clone(&self) -> AvidmGf2Commit
fn clone(&self) -> AvidmGf2Commit
Returns a duplicate 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 Debug for AvidmGf2Commit
impl Debug for AvidmGf2Commit
Source§impl<'de> Deserialize<'de> for AvidmGf2Commit
impl<'de> Deserialize<'de> for AvidmGf2Commit
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 Display for AvidmGf2Commit
impl Display for AvidmGf2Commit
Source§impl From<&AvidmGf2Commit> for TaggedBase64
impl From<&AvidmGf2Commit> for TaggedBase64
Source§fn from(x: &AvidmGf2Commit) -> Self
fn from(x: &AvidmGf2Commit) -> Self
Converts to this type from the input type.
Source§impl From<AvidmGf2Commit> for TaggedBase64
impl From<AvidmGf2Commit> for TaggedBase64
Source§fn from(x: AvidmGf2Commit) -> Self
fn from(x: AvidmGf2Commit) -> Self
Converts to this type from the input type.
Source§impl FromStr for AvidmGf2Commit
impl FromStr for AvidmGf2Commit
Source§impl Hash for AvidmGf2Commit
impl Hash for AvidmGf2Commit
Source§impl Ord for AvidmGf2Commit
impl Ord for AvidmGf2Commit
Source§fn cmp(&self, other: &AvidmGf2Commit) -> Ordering
fn cmp(&self, other: &AvidmGf2Commit) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AvidmGf2Commit
impl PartialEq for AvidmGf2Commit
Source§impl PartialOrd for AvidmGf2Commit
impl PartialOrd for AvidmGf2Commit
Source§impl Serialize for AvidmGf2Commit
impl Serialize for AvidmGf2Commit
Source§impl TryFrom<&TaggedBase64> for AvidmGf2Commit
impl TryFrom<&TaggedBase64> for AvidmGf2Commit
Source§impl TryFrom<TaggedBase64> for AvidmGf2Commit
impl TryFrom<TaggedBase64> for AvidmGf2Commit
Source§impl Valid for AvidmGf2Commit
impl Valid for AvidmGf2Commit
impl Copy for AvidmGf2Commit
impl Eq for AvidmGf2Commit
impl StructuralPartialEq for AvidmGf2Commit
Auto Trait Implementations§
impl Freeze for AvidmGf2Commit
impl RefUnwindSafe for AvidmGf2Commit
impl Send for AvidmGf2Commit
impl Sync for AvidmGf2Commit
impl Unpin for AvidmGf2Commit
impl UnwindSafe for AvidmGf2Commit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Lower case
letters are used (e.g. f9b4ca)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self into the result. Upper case
letters are used (e.g. F9B4CA)