Struct secp256k1_zkp::CommitmentSecrets [−][src]
pub struct CommitmentSecrets { pub value: u64, pub value_blinding_factor: Tweak, pub generator_blinding_factor: Tweak, }
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
=value
T
being a public key generated from a [Tag
]r
=generator_blinding_factor
r'
=value_blinding_factor
Fields
value: u64
The value that is committed to.
value_blinding_factor: Tweak
The blinding factor used when committing to the value.
generator_blinding_factor: Tweak
The blinding factor used when producing the Generator
that is necessary to commit to the value.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CommitmentSecrets
impl RefUnwindSafe for CommitmentSecrets
impl Send for CommitmentSecrets
impl Send for CommitmentSecrets
impl Sync for CommitmentSecrets
impl Sync for CommitmentSecrets
impl Unpin for CommitmentSecrets
impl Unpin for CommitmentSecrets
impl UnwindSafe for CommitmentSecrets
impl UnwindSafe for CommitmentSecrets