pub fn pedersen_commit(x: i64, r: u64, params: &PedersenParams) -> CommitmentExpand description
Compute the Pedersen commitment g^x * h^r mod p.
The secret value x is taken modulo (p-1) to handle negative values.
pub fn pedersen_commit(x: i64, r: u64, params: &PedersenParams) -> CommitmentCompute the Pedersen commitment g^x * h^r mod p.
The secret value x is taken modulo (p-1) to handle negative values.