diff --git a/src/ffi.rs b/src/ffi.rs index d909119..acbb1f1 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -418,13 +418,10 @@ pub fn nullifiers(args: i32, len: i32) -> i64 { let vks: [ViewKey; MAX_KEY] = core::array::from_fn(|i| key::derive_vk(&seed, i as _)); - 'outer: for note in notes { - // we iterate all the available view key until one can successfully - // decrypt the note. if any fails, returns false + for note in notes { for idx in 0..MAX_KEY { if vks[idx].owns(¬e) { nullifiers.push(note.gen_nullifier(&sks[idx])); - continue 'outer; } }