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:19:47 -04:00 committed by Deirdre Connolly
parent 8461c2153e
commit ebe0c002a9
1 changed files with 4 additions and 1 deletions

View File

@ -63,8 +63,11 @@ fn S(j: [u8; 2]) -> pallas::Point {
/// MerkleCRH^Orchard Hash Function).
///
/// https://zips.z.cash/protocol/protocol.pdf#concretesinsemillahash
///
/// # Panics
///
/// If `M` is greater than `k*c = 2530` bits.
#[allow(non_snake_case)]
// XXX: M is a max of k*c = 2530 bits
pub fn sinsemilla_hash_to_point(D: &[u8], M: &BitVec<Lsb0, u8>) -> pallas::Point {
let k = 10;
let c = 253;