Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
sklppy88 committed Nov 1, 2024
1 parent a776f1e commit e40d9f8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions docs/docs/migration_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion noir-projects/aztec-nr/address-note/src/address_note.nr
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e40d9f8

Please sign in to comment.