From e40d9f8a518c13d1ae5c5358c7faa2f872e94232 Mon Sep 17 00:00:00 2001 From: sklppy88 Date: Fri, 1 Nov 2024 09:56:34 +0000 Subject: [PATCH] init --- docs/docs/migration_notes.md | 6 ++++++ noir-projects/aztec-nr/address-note/src/address_note.nr | 1 - .../app_subscription_contract/src/subscription_note.nr | 1 - .../contracts/nft_contract/src/types/nft_note.nr | 2 +- .../contracts/spam_contract/src/types/token_note.nr | 2 +- 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/docs/migration_notes.md b/docs/docs/migration_notes.md index cc9f695d4e94..3121eba59583 100644 --- a/docs/docs/migration_notes.md +++ b/docs/docs/migration_notes.md @@ -18,6 +18,12 @@ This ensures every single test runs in a consistent environment and allows for c ``` This implies every contract has to be deployed before it can be tested (via `env.deploy` or `env.deploy_self`) and of course it has to be recompiled if its code was changed before TXE can use the modified bytecode. +### Address is now a point +The address now serves as someone's public key to encrypt incoming notes. An address point has a corresponding address secret, which is used to decrypt the notes encrypted with the address point. + +### Notes no longer store a hash of the nullifier public keys, and now store addresses +Because of removing key rotation, we can now store addresses as the owner of a note. Because of this and the above change, we can remove registering a recipient, because now we do not need any keys of the recipient. + ## 0.58.0 ### [l1-contracts] Inbox's MessageSent event emits global tree index Earlier `MessageSent` event in Inbox emitted a subtree index (index of the message in the subtree of the l2Block). But the nodes and Aztec.nr expects the index in the global L1_TO_L2_MESSAGES_TREE. So to make it easier to parse this, Inbox now emits this global index. diff --git a/noir-projects/aztec-nr/address-note/src/address_note.nr b/noir-projects/aztec-nr/address-note/src/address_note.nr index c3e5f3bc4f8f..bdaf172a402f 100644 --- a/noir-projects/aztec-nr/address-note/src/address_note.nr +++ b/noir-projects/aztec-nr/address-note/src/address_note.nr @@ -20,7 +20,6 @@ use dep::aztec::{ #[derive(Serialize)] pub struct AddressNote { address: AztecAddress, - // The nullifying public key hash is used with the nsk_app to ensure that the note can be privately spent. owner: AztecAddress, randomness: Field, } diff --git a/noir-projects/noir-contracts/contracts/app_subscription_contract/src/subscription_note.nr b/noir-projects/noir-contracts/contracts/app_subscription_contract/src/subscription_note.nr index b3525e741524..65f1cdbbab55 100644 --- a/noir-projects/noir-contracts/contracts/app_subscription_contract/src/subscription_note.nr +++ b/noir-projects/noir-contracts/contracts/app_subscription_contract/src/subscription_note.nr @@ -10,7 +10,6 @@ use dep::aztec::{ #[note] pub struct SubscriptionNote { - // The nullifying public key hash is used with the nsk_app to ensure that the note can be privately spent. owner: AztecAddress, expiry_block_number: Field, remaining_txs: Field, diff --git a/noir-projects/noir-contracts/contracts/nft_contract/src/types/nft_note.nr b/noir-projects/noir-contracts/contracts/nft_contract/src/types/nft_note.nr index 025127127a64..27edabea0c92 100644 --- a/noir-projects/noir-contracts/contracts/nft_contract/src/types/nft_note.nr +++ b/noir-projects/noir-contracts/contracts/nft_contract/src/types/nft_note.nr @@ -16,7 +16,7 @@ use dep::aztec::{ pub struct NFTNote { // ID of the token token_id: Field, - // The nullifying public key hash is used with the nsk_app to ensure that the note can be privately spent. + // The owner of the note owner: AztecAddress, // Randomness of the note to hide its contents randomness: Field, diff --git a/noir-projects/noir-contracts/contracts/spam_contract/src/types/token_note.nr b/noir-projects/noir-contracts/contracts/spam_contract/src/types/token_note.nr index 5b06e7fde184..cf83b3eabf01 100644 --- a/noir-projects/noir-contracts/contracts/spam_contract/src/types/token_note.nr +++ b/noir-projects/noir-contracts/contracts/spam_contract/src/types/token_note.nr @@ -19,7 +19,7 @@ trait OwnedNote { pub struct TokenNote { // The amount of tokens in the note amount: U128, - // The nullifying public key hash is used with the nsk_app to ensure that the note can be privately spent. + // The owner of the note owner: AztecAddress, // Randomness of the note to hide its contents randomness: Field,