diff --git a/workshops/devconnect-2023/nethermind-and-progcrypto/contracts/voting/src/main.nr b/workshops/devconnect-2023/nethermind-and-progcrypto/contracts/voting/src/main.nr index bf05888..684c08a 100644 --- a/workshops/devconnect-2023/nethermind-and-progcrypto/contracts/voting/src/main.nr +++ b/workshops/devconnect-2023/nethermind-and-progcrypto/contracts/voting/src/main.nr @@ -30,7 +30,7 @@ contract EasyPrivateVoting { #[aztec(private)] // annotation to mark function as private and expose private context fn cast_vote(candidate: Field) { let secret = context.request_nullifier_secret_key(context.msg_sender()); // get secret key of caller of function - let nullifier = dep::std::hash::pedersen_hash([context.msg_sender().to_field(), secret.low, secret.high]); // compute nullifier with this secret key so others can't descrypt it + let nullifier = dep::std::hash::pedersen_hash([context.msg_sender().to_field(), secret.low, secret.high]); // compute nullifier with this secret key so others can't decrypt it context.push_new_nullifier(nullifier, 0); // push nullifier context.call_public_function( context.this_address(),