Update zebra-chain/src/orchard/sinsemilla.rs

Co-authored-by: teor <teor@riseup.net>
This commit is contained in:
Deirdre Connolly 2021-03-18 10:22:30 -04:00 committed by Deirdre Connolly
parent dbd2ce6dd8
commit 81da8363a8
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ pub fn sinsemilla_hash(D: &[u8], M: &BitVec<Lsb0, u8>) -> pallas::Base {
#[allow(non_snake_case)]
pub fn sinsemilla_commit(r: pallas::Scalar, D: &[u8], M: &BitVec<Lsb0, u8>) -> pallas::Point {
sinsemilla_hash_to_point(&[D, b"-M"].concat(), M)
+ pallas_group_hash(&[D, b"r"].concat(), b"") * r
+ pallas_group_hash(&[D, b"-r"].concat(), b"") * r
}
/// SinsemillaShortCommit_r(D, M) := Extract_P(SinsemillaCommit_r(D, M))