Add some personalization and a generator.
This commit is contained in:
parent
1a89b3a486
commit
4b6623cf44
|
@ -13,7 +13,8 @@ use super::lookup::*;
|
||||||
// TODO: ensure these match the spec
|
// TODO: ensure these match the spec
|
||||||
pub enum Personalization {
|
pub enum Personalization {
|
||||||
NoteCommitment,
|
NoteCommitment,
|
||||||
AnotherPersonalization
|
AnotherPersonalization,
|
||||||
|
MerkleTree(usize)
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Personalization {
|
impl Personalization {
|
||||||
|
@ -30,6 +31,8 @@ impl Personalization {
|
||||||
vec![false, false, false, false, false, false],
|
vec![false, false, false, false, false, false],
|
||||||
Personalization::AnotherPersonalization =>
|
Personalization::AnotherPersonalization =>
|
||||||
vec![false, false, false, false, false, true],
|
vec![false, false, false, false, false, true],
|
||||||
|
Personalization::MerkleTree(_) =>
|
||||||
|
vec![false, false, false, false, true, false],
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,8 @@ pub enum FixedGenerators {
|
||||||
ProvingPublicKey = 1,
|
ProvingPublicKey = 1,
|
||||||
ValueCommitmentValue = 2,
|
ValueCommitmentValue = 2,
|
||||||
ValueCommitmentRandomness = 3,
|
ValueCommitmentRandomness = 3,
|
||||||
Max = 4
|
NullifierPosition = 4,
|
||||||
|
Max = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct JubjubBls12 {
|
pub struct JubjubBls12 {
|
||||||
|
|
Loading…
Reference in New Issue