Struct noah_api::xfr::structs::OpenAssetRecord
source · pub struct OpenAssetRecord {
pub blind_asset_record: BlindAssetRecord,
pub amount: u64,
pub amount_blinds: (RistrettoScalar, RistrettoScalar),
pub asset_type: AssetType,
pub type_blind: RistrettoScalar,
}Expand description
A BlindAssetRecord with revealed commitment openings.
Fields§
§blind_asset_record: BlindAssetRecordThe blind version of the asset record.
amount: u64The amount.
amount_blinds: (RistrettoScalar, RistrettoScalar)The blinding factors for the amount, one for higher 32 bits, one for lower 32 bits.
asset_type: AssetTypeThe asset type.
type_blind: RistrettoScalarThe blinding factor for the asset type.
Implementations§
source§impl OpenAssetRecord
impl OpenAssetRecord
sourcepub fn get_record_type(&self) -> AssetRecordType
pub fn get_record_type(&self) -> AssetRecordType
Return the record type.
sourcepub fn get_asset_type(&self) -> &AssetType
pub fn get_asset_type(&self) -> &AssetType
Return the asset type.
sourcepub fn get_amount(&self) -> &u64
pub fn get_amount(&self) -> &u64
Return the amount.
sourcepub fn get_pub_key(&self) -> &PublicKey
pub fn get_pub_key(&self) -> &PublicKey
Return the public key.
Trait Implementations§
source§impl Clone for OpenAssetRecord
impl Clone for OpenAssetRecord
source§fn clone(&self) -> OpenAssetRecord
fn clone(&self) -> OpenAssetRecord
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 OpenAssetRecord
impl Debug for OpenAssetRecord
source§impl<'de> Deserialize<'de> for OpenAssetRecord
impl<'de> Deserialize<'de> for OpenAssetRecord
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<OpenAssetRecord> for OpenAssetRecord
impl PartialEq<OpenAssetRecord> for OpenAssetRecord
source§fn eq(&self, other: &OpenAssetRecord) -> bool
fn eq(&self, other: &OpenAssetRecord) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for OpenAssetRecord
impl Serialize for OpenAssetRecord
impl Eq for OpenAssetRecord
impl StructuralEq for OpenAssetRecord
impl StructuralPartialEq for OpenAssetRecord
Auto Trait Implementations§
impl RefUnwindSafe for OpenAssetRecord
impl Send for OpenAssetRecord
impl Sync for OpenAssetRecord
impl Unpin for OpenAssetRecord
impl UnwindSafe for OpenAssetRecord
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