Skip to content

Commit c3a2a85

Browse files
authored
chore: re-pin handshake registry with owner-bound nullifiers (#24893)
1 parent f66808c commit c3a2a85

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

docs/docs-developers/docs/resources/migration_notes.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Aztec is in active development. Each version may introduce breaking changes that
99

1010
## TBD
1111

12+
### [Aztec.nr] Canonical HandshakeRegistry re-pinned at a new address
13+
14+
The canonical `HandshakeRegistry` has been re-pinned so that it includes the owner's address in its `PrivateMutable` initialization nullifiers, keeping the handshake state of accounts that share keys independent. The registry moves to a new address. Handshakes established with the previous registry instance are not visible to the new one and must be re-established. The other standard contracts keep their addresses.
15+
1216
### [Aztec.nr] Note property selectors are typed and use packed-layout indices
1317

1418
The selectors in the generated `properties()` used the field's position in the note struct declaration, which pointed at the wrong packed field for any note with an earlier field packing to more than one `Field` (a `Point`, an array, a nested struct). Selector indices are now the field's offset in the note's packed representation, so `select`/`sort` criteria constrain the field they name.

noir-projects/aztec-nr/aztec/src/standard_addresses.nr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ pub global STANDARD_PUBLIC_CHECKS_ADDRESS: AztecAddress = AztecAddress::from_fie
1414
);
1515

1616
pub global STANDARD_HANDSHAKE_REGISTRY_ADDRESS: AztecAddress = AztecAddress::from_field(
17-
0x086c3c67589e1141c70ed0ed8ae324c51d3bf7c5637043fd84c424ffb625831d,
17+
0x06127814dca78709650de6629637194f7381d2e05b35eb9d53a4746636c9aa9d,
1818
);
3.93 KB
Binary file not shown.

yarn-project/standard-contracts/src/standard_contract_data.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ export const StandardContractAddress: Record<StandardContractName, AztecAddress>
2626
),
2727
PublicChecks: AztecAddress.fromStringUnsafe('0x031b75e2c220f6a6f27da5d61f7b2a12756a127fd25b95fad5da1c5520994b18'),
2828
HandshakeRegistry: AztecAddress.fromStringUnsafe(
29-
'0x086c3c67589e1141c70ed0ed8ae324c51d3bf7c5637043fd84c424ffb625831d',
29+
'0x06127814dca78709650de6629637194f7381d2e05b35eb9d53a4746636c9aa9d',
3030
),
3131
};
3232

3333
export const StandardContractClassId: Record<StandardContractName, Fr> = {
3434
AuthRegistry: Fr.fromString('0x04182c4b482c8e60c386e473f6dbb6bb3e2ef18e5156f7c9db5ac46af81abdcf'),
3535
MultiCallEntrypoint: Fr.fromString('0x2f20566eaff9091697f8f5c43a19041267c7591d54074b57043eae90fca8ea64'),
3636
PublicChecks: Fr.fromString('0x04bc93d415c4d48acab6063b6410f74e1cc257ba8e519020f8773b4ce8ccd31e'),
37-
HandshakeRegistry: Fr.fromString('0x020ec1998d06036ddab4ba170e9b0d9b96e52beb58aa5ea83d72b22f589cbe6c'),
37+
HandshakeRegistry: Fr.fromString('0x2e04c07c83ee8107e921c3ae4ade010ee183860a89b7534ea3367efb561d2c3b'),
3838
};
3939

4040
export const StandardContractClassIdPreimage: Record<
@@ -57,8 +57,8 @@ export const StandardContractClassIdPreimage: Record<
5757
publicBytecodeCommitment: Fr.fromString('0x013c4f854a5c87c9daf86c5f9bc07a42c2a061f1d924a5b3564ec7edc8e18cb7'),
5858
},
5959
HandshakeRegistry: {
60-
artifactHash: Fr.fromString('0x2dd01b80cabc352f7d01799a6e5dd6255cc0d7f01fe42d270760d0bf0a0b5daf'),
61-
privateFunctionsRoot: Fr.fromString('0x0c80100ee31d91778c8f3d4453d056a58467b50f86d446f3209b96d87acb354e'),
60+
artifactHash: Fr.fromString('0x005a9c5db229999895a873e4c2bcaf6ca2523522b5c520c52c39b1bdb1b5faee'),
61+
privateFunctionsRoot: Fr.fromString('0x1bb83fa540ba6654ffe4a4c75ec9349180a2f0ecd0d3851ca28d665ab2926c73'),
6262
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
6363
},
6464
};
@@ -96,13 +96,13 @@ export const StandardContractPrivateFunctions: Record<
9696
selector: FunctionSelector.fromField(
9797
Fr.fromString('0x0000000000000000000000000000000000000000000000000000000019f8b409'),
9898
),
99-
vkHash: Fr.fromString('0x033a99c31fd390e320398efa03eb1a34d0db2f2e0201fbb0062aa915f406f3d7'),
99+
vkHash: Fr.fromString('0x195d78c4fa1f3f8accaa2dcc45115c5b0536e68cdd4c06f5999185554f7b73e4'),
100100
},
101101
{
102102
selector: FunctionSelector.fromField(
103103
Fr.fromString('0x00000000000000000000000000000000000000000000000000000000db548fcf'),
104104
),
105-
vkHash: Fr.fromString('0x12964f25be85fded4079591a3871e85d15967c75fd70f3d0edf10d72abfea59c'),
105+
vkHash: Fr.fromString('0x06ea812f1c792a864a36003312327d78995fdd894fbf48d54928a315e84df342'),
106106
},
107107
{
108108
selector: FunctionSelector.fromField(

0 commit comments

Comments
 (0)