zebra_chain::sapling::commitment::pedersen_hashes

Function windowed_pedersen_commitment

source
pub fn windowed_pedersen_commitment(
    r: Fr,
    s: &BitVec<u8, Lsb0>,
) -> ExtendedPoint
Expand description

Construct a ‘windowed’ Pedersen commitment by reusing a Pederson hash construction, and adding a randomized point on the Jubjub curve.

WindowedPedersenCommit_r (s) :=
PedersenHashToPoint(“Zcash_PH”, s) + [r]FindGroupHash^J^(r)(“Zcash_PH”, “r”)

https://zips.z.cash/protocol/protocol.pdf#concretewindowedcommit