We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d1a5e3 commit ddd07bbCopy full SHA for ddd07bb
wormhole/circuit/src/nullifier.rs
@@ -28,7 +28,12 @@ pub const SALT_BYTES_LEN: usize = 8;
28
pub const NULLIFIER_SALT: &str = "~nullif~";
29
30
// Compile-time check: require NULLIFIER_SALT to have exactly SALT_BYTES_LEN bytes
31
-const _: [(); SALT_BYTES_LEN] = [(); NULLIFIER_SALT.len()];
+const _: () = {
32
+ assert!(
33
+ NULLIFIER_SALT.len() == SALT_BYTES_LEN,
34
+ "invalid NULLIFIER_SALT length"
35
+ );
36
+};
37
pub const SECRET_BYTES_LEN: usize = 32;
38
pub const SECRET_NUM_TARGETS: usize = DIGEST_NUM_FIELD_ELEMENTS;
39
pub const SALT_NUM_TARGETS: usize = 3;
0 commit comments