File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,12 @@ impl GroupOrMerkleProof {
3939
4040#[ derive( Debug , Clone ) ]
4141pub 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
5050pub 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]
You can’t perform that action at this time.
0 commit comments