diff --git a/yarn-project/circuit-types/src/logs/l1_payload/encrypted_log_payload.ts b/yarn-project/circuit-types/src/logs/l1_payload/encrypted_log_payload.ts index 02afcf98d377..13d777de888f 100644 --- a/yarn-project/circuit-types/src/logs/l1_payload/encrypted_log_payload.ts +++ b/yarn-project/circuit-types/src/logs/l1_payload/encrypted_log_payload.ts @@ -94,7 +94,7 @@ export class EncryptedLogPayload { * Produces the same output as `decryptAsOutgoing`. * * @param ciphertext - The ciphertext for the log - * @param addressSecret - The incoming viewing secret key, used to decrypt the logs + * @param addressSecret - The address secret, used to decrypt the logs * @returns The decrypted log payload */ public static decryptAsIncoming( diff --git a/yarn-project/pxe/src/synchronizer/synchronizer.ts b/yarn-project/pxe/src/synchronizer/synchronizer.ts index b2cfd71928eb..dfef4ccd49ec 100644 --- a/yarn-project/pxe/src/synchronizer/synchronizer.ts +++ b/yarn-project/pxe/src/synchronizer/synchronizer.ts @@ -371,15 +371,15 @@ export class Synchronizer { async #removeNullifiedNotes(notes: IncomingNoteDao[]) { // now group the decoded incoming notes by public key - const publicKeyToIncomingNotes: Map = new Map(); + const addressPointToIncomingNotes: Map = new Map(); for (const noteDao of notes) { - const notesForPublicKey = publicKeyToIncomingNotes.get(noteDao.addressPoint) ?? []; - notesForPublicKey.push(noteDao); - publicKeyToIncomingNotes.set(noteDao.addressPoint, notesForPublicKey); + const notesForAddressPoint = addressPointToIncomingNotes.get(noteDao.addressPoint) ?? []; + notesForAddressPoint.push(noteDao); + addressPointToIncomingNotes.set(noteDao.addressPoint, notesForAddressPoint); } // now for each group, look for the nullifiers in the nullifier tree - for (const [publicKey, notes] of publicKeyToIncomingNotes.entries()) { + for (const [publicKey, notes] of addressPointToIncomingNotes.entries()) { const nullifiers = notes.map(n => n.siloedNullifier); const relevantNullifiers: Fr[] = []; for (const nullifier of nullifiers) {