#[repr(C)]pub struct AvidMCommit {
pub commit: <<Keccak256Config as AvidMConfig>::MerkleTree as MerkleTreeScheme>::Commitment,
}
Expand description
Commit type for AVID-M scheme.
Fields§
§commit: <<Keccak256Config as AvidMConfig>::MerkleTree as MerkleTreeScheme>::Commitment
Root commitment of the Merkle tree.
Trait Implementations§
Source§impl AsRef<[u8]> for AvidMCommit
impl AsRef<[u8]> for AvidMCommit
Source§impl CanonicalDeserialize for AvidMCommit
impl CanonicalDeserialize for AvidMCommit
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 AvidMCommit
impl CanonicalSerialize for AvidMCommit
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 AvidMCommit
impl Clone for AvidMCommit
Source§fn clone(&self) -> AvidMCommit
fn clone(&self) -> AvidMCommit
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 Debug for AvidMCommit
impl Debug for AvidMCommit
Source§impl<'de> Deserialize<'de> for AvidMCommit
impl<'de> Deserialize<'de> for AvidMCommit
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 AvidMCommit
impl Display for AvidMCommit
Source§impl From<&AvidMCommit> for TaggedBase64
impl From<&AvidMCommit> for TaggedBase64
Source§fn from(x: &AvidMCommit) -> Self
fn from(x: &AvidMCommit) -> Self
Converts to this type from the input type.
Source§impl From<AvidMCommit> for TaggedBase64
impl From<AvidMCommit> for TaggedBase64
Source§fn from(x: AvidMCommit) -> Self
fn from(x: AvidMCommit) -> Self
Converts to this type from the input type.
Source§impl FromStr for AvidMCommit
impl FromStr for AvidMCommit
Source§impl Hash for AvidMCommit
impl Hash for AvidMCommit
Source§impl Ord for AvidMCommit
impl Ord for AvidMCommit
Source§fn cmp(&self, other: &AvidMCommit) -> Ordering
fn cmp(&self, other: &AvidMCommit) -> 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 AvidMCommit
impl PartialEq for AvidMCommit
Source§impl PartialOrd for AvidMCommit
impl PartialOrd for AvidMCommit
Source§impl Serialize for AvidMCommit
impl Serialize for AvidMCommit
Source§impl TryFrom<&TaggedBase64> for AvidMCommit
impl TryFrom<&TaggedBase64> for AvidMCommit
Source§impl TryFrom<TaggedBase64> for AvidMCommit
impl TryFrom<TaggedBase64> for AvidMCommit
Source§impl Valid for AvidMCommit
impl Valid for AvidMCommit
impl Copy for AvidMCommit
impl Eq for AvidMCommit
impl StructuralPartialEq for AvidMCommit
Auto Trait Implementations§
impl Freeze for AvidMCommit
impl RefUnwindSafe for AvidMCommit
impl Send for AvidMCommit
impl Sync for AvidMCommit
impl Unpin for AvidMCommit
impl UnwindSafe for AvidMCommit
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<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
Checks if this value is equivalent to the given key. Read more
§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
)