mirror of
https://github.com/Qortal/pirate-librustzcash.git
synced 2025-07-31 12:31:22 +00:00
pedersen_hash: adds tests for Daniel's vector
This commit is contained in:
@@ -5,6 +5,7 @@ use ff::{Field, PrimeField, PrimeFieldRepr};
|
||||
pub enum Personalization {
|
||||
NoteCommitment,
|
||||
MerkleTree(usize),
|
||||
Empty,
|
||||
}
|
||||
|
||||
impl Personalization {
|
||||
@@ -16,6 +17,9 @@ impl Personalization {
|
||||
|
||||
(0..6).map(|i| (num >> i) & 1 == 1).collect()
|
||||
}
|
||||
Personalization::Empty => {
|
||||
vec![true, true, true, false, false, false]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user