Enum noah_api::xfr::structs::AssetTypeAndAmountProof
source · pub enum AssetTypeAndAmountProof {
AssetMix(AssetMixProof),
ConfAmount(XfrRangeProof),
ConfAsset(Box<ChaumPedersenProofX>),
ConfAll(Box<(XfrRangeProof, ChaumPedersenProofX)>),
NoProof,
}Expand description
The amount and asset type part proof for confidential transfer.
Variants§
AssetMix(AssetMixProof)
Multi-asset with any degree of confidentiality
ConfAmount(XfrRangeProof)
The proof for confidential amounts in the single-asset case.
ConfAsset(Box<ChaumPedersenProofX>)
The proof for confidential asset type in the single-asset case.
ConfAll(Box<(XfrRangeProof, ChaumPedersenProofX)>)
Both proofs for fully confidential single-asset.
NoProof
No proof for a transparent transaction.
Trait Implementations§
source§impl Clone for AssetTypeAndAmountProof
impl Clone for AssetTypeAndAmountProof
source§fn clone(&self) -> AssetTypeAndAmountProof
fn clone(&self) -> AssetTypeAndAmountProof
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 AssetTypeAndAmountProof
impl Debug for AssetTypeAndAmountProof
source§impl<'de> Deserialize<'de> for AssetTypeAndAmountProof
impl<'de> Deserialize<'de> for AssetTypeAndAmountProof
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 PartialEq<AssetTypeAndAmountProof> for AssetTypeAndAmountProof
impl PartialEq<AssetTypeAndAmountProof> for AssetTypeAndAmountProof
source§fn eq(&self, other: &AssetTypeAndAmountProof) -> bool
fn eq(&self, other: &AssetTypeAndAmountProof) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for AssetTypeAndAmountProof
impl Serialize for AssetTypeAndAmountProof
impl Eq for AssetTypeAndAmountProof
impl StructuralEq for AssetTypeAndAmountProof
impl StructuralPartialEq for AssetTypeAndAmountProof
Auto Trait Implementations§
impl RefUnwindSafe for AssetTypeAndAmountProof
impl Send for AssetTypeAndAmountProof
impl Sync for AssetTypeAndAmountProof
impl Unpin for AssetTypeAndAmountProof
impl UnwindSafe for AssetTypeAndAmountProof
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more