Skip to content

Commit fe08bf8

Browse files
committed
fix: fix SemaphoreProof to be exposed by other crates
1 parent 76f420e commit fe08bf8

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/proof.rs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ impl GroupOrMerkleProof {
3939

4040
#[derive(Debug, Clone)]
4141
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,
42+
pub merkle_tree_depth: u16,
43+
pub merkle_tree_root: BigUint,
44+
pub message: BigUint,
45+
pub nullifier: BigUint,
46+
pub scope: BigUint,
47+
pub points: PackedGroth16Proof,
4848
}
4949

5050
pub struct Proof {}
@@ -231,6 +231,8 @@ mod tests {
231231
.unwrap();
232232

233233
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()));
234236
}
235237

236238
#[test]

0 commit comments

Comments
 (0)