pub struct CommitmentProofBytes { /* private fields */ }Expand description
Demonstrates membership or non-membership for an element or set of elements, verifiable in conjunction with a known commitment root.
For example, in the case of a proof of membership in a Merkle tree, this encodes a Merkle proof.
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for CommitmentProofBytes
impl<'arbitrary> Arbitrary<'arbitrary> for CommitmentProofBytes
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl<__AsT: ?Sized> AsRef<__AsT> for CommitmentProofBytes
impl<__AsT: ?Sized> AsRef<__AsT> for CommitmentProofBytes
Source§impl BorshDeserialize for CommitmentProofBytes
impl BorshDeserialize for CommitmentProofBytes
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl Clone for CommitmentProofBytes
impl Clone for CommitmentProofBytes
Source§fn clone(&self) -> CommitmentProofBytes
fn clone(&self) -> CommitmentProofBytes
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 CommitmentProofBytes
impl Debug for CommitmentProofBytes
Source§impl<'de> Deserialize<'de> for CommitmentProofBytes
impl<'de> Deserialize<'de> for CommitmentProofBytes
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 From<CommitmentProofBytes> for Vec<u8>
impl From<CommitmentProofBytes> for Vec<u8>
Source§fn from(value: CommitmentProofBytes) -> Self
fn from(value: CommitmentProofBytes) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for CommitmentProofBytes
impl JsonSchema for CommitmentProofBytes
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§impl PartialEq for CommitmentProofBytes
impl PartialEq for CommitmentProofBytes
Source§impl Serialize for CommitmentProofBytes
impl Serialize for CommitmentProofBytes
Source§impl<'a> TryFrom<&'a CommitmentProofBytes> for MerkleProof
impl<'a> TryFrom<&'a CommitmentProofBytes> for MerkleProof
Source§type Error = DecodingError
type Error = DecodingError
The type returned in the event of a conversion error.
Source§impl TryFrom<MerkleProof> for CommitmentProofBytes
impl TryFrom<MerkleProof> for CommitmentProofBytes
Source§type Error = DecodingError
type Error = DecodingError
The type returned in the event of a conversion error.
Source§impl TryFrom<MerkleProof> for CommitmentProofBytes
impl TryFrom<MerkleProof> for CommitmentProofBytes
Source§type Error = DecodingError
type Error = DecodingError
The type returned in the event of a conversion error.
impl Eq for CommitmentProofBytes
impl StructuralPartialEq for CommitmentProofBytes
Auto Trait Implementations§
impl Freeze for CommitmentProofBytes
impl RefUnwindSafe for CommitmentProofBytes
impl Send for CommitmentProofBytes
impl Sync for CommitmentProofBytes
impl Unpin for CommitmentProofBytes
impl UnwindSafe for CommitmentProofBytes
Blanket Implementations§
Source§impl<T, U> AsByteSlice<T> for U
impl<T, U> AsByteSlice<T> for U
fn as_byte_slice(&self) -> &[u8] ⓘ
Source§impl<U> AsSliceOf for U
impl<U> AsSliceOf for U
fn as_slice_of<T>(&self) -> Result<&[T], Error>where
T: FromByteSlice,
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