pub struct CommitmentSecrets {
pub value: u64,
pub value_blinding_factor: Tweak,
pub generator_blinding_factor: Tweak,
}Available on crate feature
std only.Expand description
Represents all secret data involved in making a PedersenCommitment where one of the generators is blinded.
A Pedersen commitment of the form P = vT' + r'G can be expressed as vT + (vr + r')G if T' = T + rG with:
v=valueTbeing a public key generated from acrate::Tagr=generator_blinding_factorr'=value_blinding_factor
Fields§
§value: u64The value that is committed to.
value_blinding_factor: TweakThe blinding factor used when committing to the value.
generator_blinding_factor: TweakThe blinding factor used when producing the Generator that is necessary to commit to the value.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CommitmentSecrets
impl RefUnwindSafe for CommitmentSecrets
impl Send for CommitmentSecrets
impl Sync for CommitmentSecrets
impl Unpin for CommitmentSecrets
impl UnwindSafe for CommitmentSecrets
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