Expand description
Diffie-Hellman info, mask and amount for transaction before Bulletproof2
and only 8-bytes
hash for the amount in Bulletproof2
type.
Variants
Standard
Standard format, before Bulletproof2
.
Bulletproof
Fields
amount: Hash8
Amount value.
Bulletproof format.
Implementations
sourceimpl EcdhInfo
impl EcdhInfo
sourcepub fn open_commitment(
&self,
view_pair: &ViewPair,
tx_pubkey: &PublicKey,
index: usize,
candidate_commitment: &EdwardsPoint
) -> Option<Opening>
pub fn open_commitment(
&self,
view_pair: &ViewPair,
tx_pubkey: &PublicKey,
index: usize,
candidate_commitment: &EdwardsPoint
) -> Option<Opening>
Opens the commitment and verifies it against the given one.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for EcdhInfo
impl<'de> Deserialize<'de> for EcdhInfo
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for EcdhInfo
impl Send for EcdhInfo
impl Sync for EcdhInfo
impl Unpin for EcdhInfo
impl UnwindSafe for EcdhInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more