mirror of https://github.com/zcash/orchard.git
Add `ValueSum::commit`
This commit is contained in:
parent
3faab98e9e
commit
a71287c51e
|
@ -174,6 +174,15 @@ impl ValueSum {
|
|||
sign,
|
||||
)
|
||||
}
|
||||
|
||||
/// Commits this value with the corresponding trapdoor `rcv` by $ValueCommit^Orchard$
|
||||
///
|
||||
/// Defined in [Zcash Protocol Spec § 5.4.8.3: Homomorphic Pedersen commitments (Sapling and Orchard)][concretehomomorphiccommit].
|
||||
///
|
||||
/// [concretehomomorphiccommit]: https://zips.z.cash/protocol/nu5.pdf#concretehomomorphiccommit
|
||||
pub fn commit(self, rcv: ValueCommitTrapdoor) -> ValueCommitment {
|
||||
ValueCommitment::derive(self, rcv)
|
||||
}
|
||||
}
|
||||
|
||||
impl Add for ValueSum {
|
||||
|
|
Loading…
Reference in New Issue