Make find_group_hash() pub(super)

This commit is contained in:
Deirdre Connolly 2020-08-28 00:15:25 -04:00 committed by Deirdre Connolly
parent 7a92496244
commit 99b4a400af
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ fn jubjub_group_hash(d: [u8; 8], m: &[u8]) -> Option<jubjub::ExtendedPoint> {
/// https://zips.z.cash/protocol/protocol.pdf#concretegrouphashjubjub /// https://zips.z.cash/protocol/protocol.pdf#concretegrouphashjubjub
// TODO: move common functions like these out of the keys module into // TODO: move common functions like these out of the keys module into
// a more appropriate location // a more appropriate location
pub fn find_group_hash(d: [u8; 8], m: &[u8]) -> jubjub::ExtendedPoint { pub(super) fn find_group_hash(d: [u8; 8], m: &[u8]) -> jubjub::ExtendedPoint {
let mut tag = m.to_vec(); let mut tag = m.to_vec();
let i = tag.len(); let i = tag.len();
tag.push(0u8); tag.push(0u8);