We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SemaphoreProof
1 parent 76f420e commit fe08bf8Copy full SHA for fe08bf8
1 file changed
src/proof.rs
@@ -39,12 +39,12 @@ impl GroupOrMerkleProof {
39
40
#[derive(Debug, Clone)]
41
pub struct SemaphoreProof {
42
- merkle_tree_depth: u16,
43
- merkle_tree_root: BigUint,
44
- message: BigUint,
45
- nullifier: BigUint,
46
- scope: BigUint,
47
- points: PackedGroth16Proof,
+ pub merkle_tree_depth: u16,
+ pub merkle_tree_root: BigUint,
+ pub message: BigUint,
+ pub nullifier: BigUint,
+ pub scope: BigUint,
+ pub points: PackedGroth16Proof,
48
}
49
50
pub struct Proof {}
@@ -231,6 +231,8 @@ mod tests {
231
.unwrap();
232
233
assert_eq!(proof.merkle_tree_root, BigUint::from_bytes_le(&root));
234
+ assert_eq!(proof.message, to_big_uint(&MESSAGE.to_string()));
235
+ assert_eq!(proof.scope, to_big_uint(&SCOPE.to_string()));
236
237
238
#[test]
0 commit comments