@aztec/standard-contracts 0.0.1-commit.3100065 → 0.0.1-commit.350e0a4d

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,5 @@
1
- import type { Fr } from '@aztec/foundation/curves/bn254';
2
1
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
3
2
  export declare const STANDARD_HANDSHAKE_REGISTRY_ADDRESS: AztecAddress;
4
- export declare const STANDARD_HANDSHAKE_REGISTRY_CLASS_ID: Fr;
5
- export declare const STANDARD_HANDSHAKE_REGISTRY_SALT: Fr;
6
- /**
7
- * Request kind under which the HandshakeRegistry asks for a recipient's interactive-handshake signature through the
8
- * `resolveCustomRequest` hook. Mirrors `INTERACTIVE_HANDSHAKE_REQUEST_KIND` in the registry contract.
9
- */
10
- export declare const INTERACTIVE_HANDSHAKE_REQUEST_KIND: Fr;
11
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGFuZHNoYWtlLXJlZ2lzdHJ5L2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJQSxPQUFPLEtBQUssRUFBRSxFQUFFLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN6RCxPQUFPLEtBQUssRUFBRSxZQUFZLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUloRSxlQUFPLE1BQU0sbUNBQW1DLEVBQUUsWUFBd0QsQ0FBQztBQUMzRyxlQUFPLE1BQU0sb0NBQW9DLElBQTRDLENBQUM7QUFDOUYsZUFBTyxNQUFNLGdDQUFnQyxJQUF5QyxDQUFDO0FBRXZGOzs7R0FHRztBQUlILGVBQU8sTUFBTSxrQ0FBa0MsRUFBRSxFQUUvQyxDQUFDIn0=
3
+ export declare const STANDARD_HANDSHAKE_REGISTRY_CLASS_ID: import("@aztec/foundation/schemas").Fr;
4
+ export declare const STANDARD_HANDSHAKE_REGISTRY_SALT: import("@aztec/foundation/schemas").Fr;
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaGFuZHNoYWtlLXJlZ2lzdHJ5L2NvbnN0YW50cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHQSxPQUFPLEtBQUssRUFBRSxZQUFZLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUloRSxlQUFPLE1BQU0sbUNBQW1DLEVBQUUsWUFBd0QsQ0FBQztBQUMzRyxlQUFPLE1BQU0sb0NBQW9DLHdDQUE0QyxDQUFDO0FBQzlGLGVBQU8sTUFBTSxnQ0FBZ0Msd0NBQXlDLENBQUMifQ==
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/handshake-registry/constants.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAIhE,eAAO,MAAM,mCAAmC,EAAE,YAAwD,CAAC;AAC3G,eAAO,MAAM,oCAAoC,IAA4C,CAAC;AAC9F,eAAO,MAAM,gCAAgC,IAAyC,CAAC;AAEvF;;;GAGG;AAIH,eAAO,MAAM,kCAAkC,EAAE,EAE/C,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/handshake-registry/constants.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAIhE,eAAO,MAAM,mCAAmC,EAAE,YAAwD,CAAC;AAC3G,eAAO,MAAM,oCAAoC,wCAA4C,CAAC;AAC9F,eAAO,MAAM,gCAAgC,wCAAyC,CAAC"}
@@ -1,17 +1,7 @@
1
1
  // Lightweight metadata leaf export for browser bundles: importing from
2
2
  // `@aztec/standard-contracts/handshake-registry/constants` avoids dragging in the
3
3
  // `HandshakeRegistry.json` static import.
4
- import { sha256ToField } from '@aztec/foundation/crypto/sha256';
5
4
  import { StandardContractAddress, StandardContractClassId, StandardContractSalt } from '../standard_contract_data.js';
6
5
  export const STANDARD_HANDSHAKE_REGISTRY_ADDRESS = StandardContractAddress.HandshakeRegistry;
7
6
  export const STANDARD_HANDSHAKE_REGISTRY_CLASS_ID = StandardContractClassId.HandshakeRegistry;
8
7
  export const STANDARD_HANDSHAKE_REGISTRY_SALT = StandardContractSalt.HandshakeRegistry;
9
- /**
10
- * Request kind under which the HandshakeRegistry asks for a recipient's interactive-handshake signature through the
11
- * `resolveCustomRequest` hook. Mirrors `INTERACTIVE_HANDSHAKE_REQUEST_KIND` in the registry contract.
12
- */ // TODO: remove this mirrored constant and read the value from the HandshakeRegistry artifact once the contract
13
- // global can be `#[abi]`-exported. Fixed upstream but not yet released:
14
- // https://github.com/noir-lang/noir/pull/12714 and https://github.com/noir-lang/noir/issues/12620.
15
- export const INTERACTIVE_HANDSHAKE_REQUEST_KIND = sha256ToField([
16
- Buffer.from('HANDSHAKE_REGISTRY::INTERACTIVE_HANDSHAKE_REQUEST')
17
- ]);
@@ -1,6 +1,6 @@
1
1
  import type { StandardContract } from '../standard_contract.js';
2
- export { INTERACTIVE_HANDSHAKE_REQUEST_KIND, STANDARD_HANDSHAKE_REGISTRY_ADDRESS, STANDARD_HANDSHAKE_REGISTRY_CLASS_ID, STANDARD_HANDSHAKE_REGISTRY_SALT, } from './constants.js';
2
+ export { STANDARD_HANDSHAKE_REGISTRY_ADDRESS, STANDARD_HANDSHAKE_REGISTRY_CLASS_ID, STANDARD_HANDSHAKE_REGISTRY_SALT, } from './constants.js';
3
3
  export declare const HandshakeRegistryArtifact: import("@aztec/stdlib/abi").ContractArtifact;
4
4
  /** Returns the standard deployment of the handshake registry. */
5
5
  export declare function getStandardHandshakeRegistry(): Promise<StandardContract>;
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9oYW5kc2hha2UtcmVnaXN0cnkvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS0EsT0FBTyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUVoRSxPQUFPLEVBQ0wsa0NBQWtDLEVBQ2xDLG1DQUFtQyxFQUNuQyxvQ0FBb0MsRUFDcEMsZ0NBQWdDLEdBQ2pDLE1BQU0sZ0JBQWdCLENBQUM7QUFFeEIsZUFBTyxNQUFNLHlCQUF5Qiw4Q0FBc0UsQ0FBQztBQUk3RyxpRUFBaUU7QUFDakUsd0JBQWdCLDRCQUE0QixJQUFJLE9BQU8sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUt4RSJ9
6
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9oYW5kc2hha2UtcmVnaXN0cnkvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBS0EsT0FBTyxLQUFLLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSx5QkFBeUIsQ0FBQztBQUVoRSxPQUFPLEVBQ0wsbUNBQW1DLEVBQ25DLG9DQUFvQyxFQUNwQyxnQ0FBZ0MsR0FDakMsTUFBTSxnQkFBZ0IsQ0FBQztBQUV4QixlQUFPLE1BQU0seUJBQXlCLDhDQUFzRSxDQUFDO0FBSTdHLGlFQUFpRTtBQUNqRSx3QkFBZ0IsNEJBQTRCLElBQUksT0FBTyxDQUFDLGdCQUFnQixDQUFDLENBS3hFIn0=
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handshake-registry/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EACL,kCAAkC,EAClC,mCAAmC,EACnC,oCAAoC,EACpC,gCAAgC,GACjC,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,yBAAyB,8CAAsE,CAAC;AAI7G,iEAAiE;AACjE,wBAAgB,4BAA4B,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAKxE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/handshake-registry/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,OAAO,EACL,mCAAmC,EACnC,oCAAoC,EACpC,gCAAgC,GACjC,MAAM,gBAAgB,CAAC;AAExB,eAAO,MAAM,yBAAyB,8CAAsE,CAAC;AAI7G,iEAAiE;AACjE,wBAAgB,4BAA4B,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAKxE"}
@@ -3,7 +3,7 @@ import HandshakeRegistryJson from '../../artifacts/HandshakeRegistry.json' with
3
3
  type: 'json'
4
4
  };
5
5
  import { makeStandardContract } from '../make_standard_contract.js';
6
- export { INTERACTIVE_HANDSHAKE_REQUEST_KIND, STANDARD_HANDSHAKE_REGISTRY_ADDRESS, STANDARD_HANDSHAKE_REGISTRY_CLASS_ID, STANDARD_HANDSHAKE_REGISTRY_SALT } from './constants.js';
6
+ export { STANDARD_HANDSHAKE_REGISTRY_ADDRESS, STANDARD_HANDSHAKE_REGISTRY_CLASS_ID, STANDARD_HANDSHAKE_REGISTRY_SALT } from './constants.js';
7
7
  export const HandshakeRegistryArtifact = loadContractArtifact(HandshakeRegistryJson);
8
8
  let standardContract;
9
9
  /** Returns the standard deployment of the handshake registry. */ export function getStandardHandshakeRegistry() {
package/dest/index.d.ts CHANGED
@@ -2,5 +2,4 @@ export * from './auth-registry/index.js';
2
2
  export * from './handshake-registry/index.js';
3
3
  export * from './multi-call-entrypoint/index.js';
4
4
  export * from './public-checks/index.js';
5
- export * from './publishable_standard_contracts.js';
6
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMscUNBQXFDLENBQUMifQ==
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDBCQUEwQixDQUFDO0FBQ3pDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxjQUFjLDBCQUEwQixDQUFDIn0=
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qCAAqC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC"}
package/dest/index.js CHANGED
@@ -2,4 +2,3 @@ export * from './auth-registry/index.js';
2
2
  export * from './handshake-registry/index.js';
3
3
  export * from './multi-call-entrypoint/index.js';
4
4
  export * from './public-checks/index.js';
5
- export * from './publishable_standard_contracts.js';
@@ -15,36 +15,36 @@ export const StandardContractSalt = {
15
15
  HandshakeRegistry: new Fr(1)
16
16
  };
17
17
  export const StandardContractAddress = {
18
- AuthRegistry: AztecAddress.fromStringUnsafe('0x00b6c13d47a52717bc54afe32169319be75fa5874cf6da3ba5691b0d5800e2fb'),
19
- MultiCallEntrypoint: AztecAddress.fromStringUnsafe('0x05dc8c4896e9171487c4d2566f6c7b1cab035334fbce5d745911806fe9f92cc8'),
20
- PublicChecks: AztecAddress.fromStringUnsafe('0x1c15687f7706028d89c219d7e97622eae4829cd1e5a3fdd50de6aa0b15882668'),
21
- HandshakeRegistry: AztecAddress.fromStringUnsafe('0x0193c31bd24d0347aa9ed889cd6d304832988625c2f21c411e7af9d703591aa5')
18
+ AuthRegistry: AztecAddress.fromStringUnsafe('0x04fe1d86b5ae0f926883c34905a3c25cb30924138823a9883e2813d4f8b86ad9'),
19
+ MultiCallEntrypoint: AztecAddress.fromStringUnsafe('0x21d17a596e8ae64c399cc7bffaf3f0346ae067a34948510f041dff8babed9e9a'),
20
+ PublicChecks: AztecAddress.fromStringUnsafe('0x2f96c5a68fc1d04b13b76167a254f0a1a906c2dc0b571fcbca107254f064b045'),
21
+ HandshakeRegistry: AztecAddress.fromStringUnsafe('0x090d0f9525c99184e3741290b2695c5e3af23f51e96061b74b953111b0d4f59d')
22
22
  };
23
23
  export const StandardContractClassId = {
24
- AuthRegistry: Fr.fromString('0x2e3c56291b67be9bcce25d7ffaf09d6828bca2ffb651d50ac8505e8aa9b39e72'),
25
- MultiCallEntrypoint: Fr.fromString('0x24b4ed54a73cf8b4303ed86ad92a9f9b28df3479b3fd15ed3e099caac5caa4cf'),
26
- PublicChecks: Fr.fromString('0x133c6531200de40d85981548fde05b5b999e5ac941dcba03291953d91794bb72'),
27
- HandshakeRegistry: Fr.fromString('0x13d3abc9b8e4486e0176f1697c2fe95a8051b69c18e2dd5622bd632c3dffe32b')
24
+ AuthRegistry: Fr.fromString('0x1d203dfe82143b105c236b42c42ede91728d4590e7c541f7d2423edeb68c31ae'),
25
+ MultiCallEntrypoint: Fr.fromString('0x127ebfb260048794535198012df8e2f7599a46651efbf738c406f4baa3b960ca'),
26
+ PublicChecks: Fr.fromString('0x087cada0973aa4e162f0830a61aed5a3f03d1e9578ce953aba213f2508d579a7'),
27
+ HandshakeRegistry: Fr.fromString('0x041a88db4c2b65a224ad9c9d96c8365d972a98f47e2549a1841ac9897b8b7dc0')
28
28
  };
29
29
  export const StandardContractClassIdPreimage = {
30
30
  AuthRegistry: {
31
- artifactHash: Fr.fromString('0x0de7abf9ed74757128e3a64ccfc6affc7de5022eca7fd7cc8b038239ba4e39d6'),
32
- privateFunctionsRoot: Fr.fromString('0x1b16157ab0b322bcaf3de5cb197b276c5e29ca3668a0c440668ca56aa7dfff77'),
31
+ artifactHash: Fr.fromString('0x2ebd3d6e0f9d8adc9dc0e7380d8cad794ee605f53223abbe436aaf58e5920a60'),
32
+ privateFunctionsRoot: Fr.fromString('0x211b33685bcb41a5d3a2a84d8ec021c7280392cb4aae5a778eafe5282dbba740'),
33
33
  publicBytecodeCommitment: Fr.fromString('0x0c7984b020afc901da3b5898b8f94d1d9a09ea2b37d6e0043409abc0b0332906')
34
34
  },
35
35
  MultiCallEntrypoint: {
36
- artifactHash: Fr.fromString('0x053e2bab9e0893c010a42efb34755857f5f4d2129bd7b670a9f7f87030e6ef4e'),
37
- privateFunctionsRoot: Fr.fromString('0x10228bc99b6715f15c866a1df0d9cb63c31920cb8e61a6b79058bf98658d7f39'),
36
+ artifactHash: Fr.fromString('0x3024d0152d222f9be0e5248e3cd2596217946bf32cb798f10d3e3f2480ac261f'),
37
+ privateFunctionsRoot: Fr.fromString('0x2cd2008a79f59c3f2caa996962b0b35889f5ee8fcf175282406a2a521550cc70'),
38
38
  publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e')
39
39
  },
40
40
  PublicChecks: {
41
- artifactHash: Fr.fromString('0x20d3811f41dc9c2f4fec24ecfdddf724175d7ef52c176078328ba65671f6aaa7'),
41
+ artifactHash: Fr.fromString('0x0c2fe9905f4bb8c1e30daaa23836b88d2abcca5e9332e8d916a36b04548752b0'),
42
42
  privateFunctionsRoot: Fr.fromString('0x202860adb1b8975971eeaf571aaaa88a27f4035290d58532ae7d60b0dfaad54c'),
43
43
  publicBytecodeCommitment: Fr.fromString('0x013c4f854a5c87c9daf86c5f9bc07a42c2a061f1d924a5b3564ec7edc8e18cb7')
44
44
  },
45
45
  HandshakeRegistry: {
46
46
  artifactHash: Fr.fromString('0x062da141c4114bcc93ac6cbe2fe30f0e8cbf820780b2225e958fe806d0e347a9'),
47
- privateFunctionsRoot: Fr.fromString('0x2fa128fc7f3b5aa6c4b9dc065f251c73bd947b65f2c00f784a68114de621228a'),
47
+ privateFunctionsRoot: Fr.fromString('0x16c4666c93705b44b4a164ec6bcbfd7ec0ff593922f4a0e3bc158b9e3a1f95c1'),
48
48
  publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e')
49
49
  }
50
50
  };
@@ -58,28 +58,28 @@ export const StandardContractPrivateFunctions = {
58
58
  AuthRegistry: [
59
59
  {
60
60
  selector: FunctionSelector.fromField(Fr.fromString('0x0000000000000000000000000000000000000000000000000000000079a3d418')),
61
- vkHash: Fr.fromString('0x2d46cdec4cc2afd813ba2b50106dba455821e4c7b3c10f1c7293bbc759dccf64')
61
+ vkHash: Fr.fromString('0x2979f430e7a6d4c2222a35a5e00f9c8c0e41c5ad9afa95d8d718f5c1f57ac4f2')
62
62
  }
63
63
  ],
64
64
  MultiCallEntrypoint: [
65
65
  {
66
66
  selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000f04908a9')),
67
- vkHash: Fr.fromString('0x0699bae67183ce084da1cd76ce05d18f45f796237f2baafaf7d4bfbf9663c433')
67
+ vkHash: Fr.fromString('0x1bc6ab9244a92fe2143e42a1856ea0b29415e0530eda89dd634a0b8630780593')
68
68
  }
69
69
  ],
70
70
  PublicChecks: [],
71
71
  HandshakeRegistry: [
72
72
  {
73
73
  selector: FunctionSelector.fromField(Fr.fromString('0x0000000000000000000000000000000000000000000000000000000019f8b409')),
74
- vkHash: Fr.fromString('0x0357aa2db339c32ac5157260db378af0053d904960b764c85498547df9b94c90')
74
+ vkHash: Fr.fromString('0x0f230529c03e4877eeabfc0c659a1133e53f2d954b1d0f6092558cb02952da3e')
75
75
  },
76
76
  {
77
77
  selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000db548fcf')),
78
- vkHash: Fr.fromString('0x00281e870a222de82b949de3d569793275c258a50b137f48b8f3c8982319b0e2')
78
+ vkHash: Fr.fromString('0x2aa20cf767e6af6f99f4ceedcbdda34c2cd8a8e0763fb273810cf5abd7873b70')
79
79
  },
80
80
  {
81
81
  selector: FunctionSelector.fromField(Fr.fromString('0x00000000000000000000000000000000000000000000000000000000f1ff839b')),
82
- vkHash: Fr.fromString('0x049120d4c9a12a2286c83df31064637b53746ea13868b0756174dcb3e036bb9d')
82
+ vkHash: Fr.fromString('0x05eef6388f1678ef7a24ed7829a15abf8fb76922ed73477114ff4828e2772535')
83
83
  }
84
84
  ]
85
85
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aztec/standard-contracts",
3
3
  "homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/standard-contracts",
4
4
  "description": "Standard non-protocol contracts for the Aztec Network",
5
- "version": "0.0.1-commit.3100065",
5
+ "version": "0.0.1-commit.350e0a4d",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": "./dest/index.js",
@@ -74,8 +74,8 @@
74
74
  ]
75
75
  },
76
76
  "dependencies": {
77
- "@aztec/foundation": "0.0.1-commit.3100065",
78
- "@aztec/stdlib": "0.0.1-commit.3100065",
77
+ "@aztec/foundation": "0.0.1-commit.350e0a4d",
78
+ "@aztec/stdlib": "0.0.1-commit.350e0a4d",
79
79
  "tslib": "^2.4.0"
80
80
  },
81
81
  "devDependencies": {
@@ -1,8 +1,6 @@
1
1
  // Lightweight metadata leaf export for browser bundles: importing from
2
2
  // `@aztec/standard-contracts/handshake-registry/constants` avoids dragging in the
3
3
  // `HandshakeRegistry.json` static import.
4
- import { sha256ToField } from '@aztec/foundation/crypto/sha256';
5
- import type { Fr } from '@aztec/foundation/curves/bn254';
6
4
  import type { AztecAddress } from '@aztec/stdlib/aztec-address';
7
5
 
8
6
  import { StandardContractAddress, StandardContractClassId, StandardContractSalt } from '../standard_contract_data.js';
@@ -10,14 +8,3 @@ import { StandardContractAddress, StandardContractClassId, StandardContractSalt
10
8
  export const STANDARD_HANDSHAKE_REGISTRY_ADDRESS: AztecAddress = StandardContractAddress.HandshakeRegistry;
11
9
  export const STANDARD_HANDSHAKE_REGISTRY_CLASS_ID = StandardContractClassId.HandshakeRegistry;
12
10
  export const STANDARD_HANDSHAKE_REGISTRY_SALT = StandardContractSalt.HandshakeRegistry;
13
-
14
- /**
15
- * Request kind under which the HandshakeRegistry asks for a recipient's interactive-handshake signature through the
16
- * `resolveCustomRequest` hook. Mirrors `INTERACTIVE_HANDSHAKE_REQUEST_KIND` in the registry contract.
17
- */
18
- // TODO: remove this mirrored constant and read the value from the HandshakeRegistry artifact once the contract
19
- // global can be `#[abi]`-exported. Fixed upstream but not yet released:
20
- // https://github.com/noir-lang/noir/pull/12714 and https://github.com/noir-lang/noir/issues/12620.
21
- export const INTERACTIVE_HANDSHAKE_REQUEST_KIND: Fr = sha256ToField([
22
- Buffer.from('HANDSHAKE_REGISTRY::INTERACTIVE_HANDSHAKE_REQUEST'),
23
- ]);
@@ -6,7 +6,6 @@ import { makeStandardContract } from '../make_standard_contract.js';
6
6
  import type { StandardContract } from '../standard_contract.js';
7
7
 
8
8
  export {
9
- INTERACTIVE_HANDSHAKE_REQUEST_KIND,
10
9
  STANDARD_HANDSHAKE_REGISTRY_ADDRESS,
11
10
  STANDARD_HANDSHAKE_REGISTRY_CLASS_ID,
12
11
  STANDARD_HANDSHAKE_REGISTRY_SALT,
package/src/index.ts CHANGED
@@ -2,4 +2,3 @@ export * from './auth-registry/index.js';
2
2
  export * from './handshake-registry/index.js';
3
3
  export * from './multi-call-entrypoint/index.js';
4
4
  export * from './public-checks/index.js';
5
- export * from './publishable_standard_contracts.js';
@@ -20,21 +20,21 @@ export const StandardContractSalt: Record<StandardContractName, Fr> = {
20
20
  };
21
21
 
22
22
  export const StandardContractAddress: Record<StandardContractName, AztecAddress> = {
23
- AuthRegistry: AztecAddress.fromStringUnsafe('0x00b6c13d47a52717bc54afe32169319be75fa5874cf6da3ba5691b0d5800e2fb'),
23
+ AuthRegistry: AztecAddress.fromStringUnsafe('0x04fe1d86b5ae0f926883c34905a3c25cb30924138823a9883e2813d4f8b86ad9'),
24
24
  MultiCallEntrypoint: AztecAddress.fromStringUnsafe(
25
- '0x05dc8c4896e9171487c4d2566f6c7b1cab035334fbce5d745911806fe9f92cc8',
25
+ '0x21d17a596e8ae64c399cc7bffaf3f0346ae067a34948510f041dff8babed9e9a',
26
26
  ),
27
- PublicChecks: AztecAddress.fromStringUnsafe('0x1c15687f7706028d89c219d7e97622eae4829cd1e5a3fdd50de6aa0b15882668'),
27
+ PublicChecks: AztecAddress.fromStringUnsafe('0x2f96c5a68fc1d04b13b76167a254f0a1a906c2dc0b571fcbca107254f064b045'),
28
28
  HandshakeRegistry: AztecAddress.fromStringUnsafe(
29
- '0x0193c31bd24d0347aa9ed889cd6d304832988625c2f21c411e7af9d703591aa5',
29
+ '0x090d0f9525c99184e3741290b2695c5e3af23f51e96061b74b953111b0d4f59d',
30
30
  ),
31
31
  };
32
32
 
33
33
  export const StandardContractClassId: Record<StandardContractName, Fr> = {
34
- AuthRegistry: Fr.fromString('0x2e3c56291b67be9bcce25d7ffaf09d6828bca2ffb651d50ac8505e8aa9b39e72'),
35
- MultiCallEntrypoint: Fr.fromString('0x24b4ed54a73cf8b4303ed86ad92a9f9b28df3479b3fd15ed3e099caac5caa4cf'),
36
- PublicChecks: Fr.fromString('0x133c6531200de40d85981548fde05b5b999e5ac941dcba03291953d91794bb72'),
37
- HandshakeRegistry: Fr.fromString('0x13d3abc9b8e4486e0176f1697c2fe95a8051b69c18e2dd5622bd632c3dffe32b'),
34
+ AuthRegistry: Fr.fromString('0x1d203dfe82143b105c236b42c42ede91728d4590e7c541f7d2423edeb68c31ae'),
35
+ MultiCallEntrypoint: Fr.fromString('0x127ebfb260048794535198012df8e2f7599a46651efbf738c406f4baa3b960ca'),
36
+ PublicChecks: Fr.fromString('0x087cada0973aa4e162f0830a61aed5a3f03d1e9578ce953aba213f2508d579a7'),
37
+ HandshakeRegistry: Fr.fromString('0x041a88db4c2b65a224ad9c9d96c8365d972a98f47e2549a1841ac9897b8b7dc0'),
38
38
  };
39
39
 
40
40
  export const StandardContractClassIdPreimage: Record<
@@ -42,23 +42,23 @@ export const StandardContractClassIdPreimage: Record<
42
42
  { artifactHash: Fr; privateFunctionsRoot: Fr; publicBytecodeCommitment: Fr }
43
43
  > = {
44
44
  AuthRegistry: {
45
- artifactHash: Fr.fromString('0x0de7abf9ed74757128e3a64ccfc6affc7de5022eca7fd7cc8b038239ba4e39d6'),
46
- privateFunctionsRoot: Fr.fromString('0x1b16157ab0b322bcaf3de5cb197b276c5e29ca3668a0c440668ca56aa7dfff77'),
45
+ artifactHash: Fr.fromString('0x2ebd3d6e0f9d8adc9dc0e7380d8cad794ee605f53223abbe436aaf58e5920a60'),
46
+ privateFunctionsRoot: Fr.fromString('0x211b33685bcb41a5d3a2a84d8ec021c7280392cb4aae5a778eafe5282dbba740'),
47
47
  publicBytecodeCommitment: Fr.fromString('0x0c7984b020afc901da3b5898b8f94d1d9a09ea2b37d6e0043409abc0b0332906'),
48
48
  },
49
49
  MultiCallEntrypoint: {
50
- artifactHash: Fr.fromString('0x053e2bab9e0893c010a42efb34755857f5f4d2129bd7b670a9f7f87030e6ef4e'),
51
- privateFunctionsRoot: Fr.fromString('0x10228bc99b6715f15c866a1df0d9cb63c31920cb8e61a6b79058bf98658d7f39'),
50
+ artifactHash: Fr.fromString('0x3024d0152d222f9be0e5248e3cd2596217946bf32cb798f10d3e3f2480ac261f'),
51
+ privateFunctionsRoot: Fr.fromString('0x2cd2008a79f59c3f2caa996962b0b35889f5ee8fcf175282406a2a521550cc70'),
52
52
  publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
53
53
  },
54
54
  PublicChecks: {
55
- artifactHash: Fr.fromString('0x20d3811f41dc9c2f4fec24ecfdddf724175d7ef52c176078328ba65671f6aaa7'),
55
+ artifactHash: Fr.fromString('0x0c2fe9905f4bb8c1e30daaa23836b88d2abcca5e9332e8d916a36b04548752b0'),
56
56
  privateFunctionsRoot: Fr.fromString('0x202860adb1b8975971eeaf571aaaa88a27f4035290d58532ae7d60b0dfaad54c'),
57
57
  publicBytecodeCommitment: Fr.fromString('0x013c4f854a5c87c9daf86c5f9bc07a42c2a061f1d924a5b3564ec7edc8e18cb7'),
58
58
  },
59
59
  HandshakeRegistry: {
60
60
  artifactHash: Fr.fromString('0x062da141c4114bcc93ac6cbe2fe30f0e8cbf820780b2225e958fe806d0e347a9'),
61
- privateFunctionsRoot: Fr.fromString('0x2fa128fc7f3b5aa6c4b9dc065f251c73bd947b65f2c00f784a68114de621228a'),
61
+ privateFunctionsRoot: Fr.fromString('0x16c4666c93705b44b4a164ec6bcbfd7ec0ff593922f4a0e3bc158b9e3a1f95c1'),
62
62
  publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
63
63
  },
64
64
  };
@@ -79,7 +79,7 @@ export const StandardContractPrivateFunctions: Record<
79
79
  selector: FunctionSelector.fromField(
80
80
  Fr.fromString('0x0000000000000000000000000000000000000000000000000000000079a3d418'),
81
81
  ),
82
- vkHash: Fr.fromString('0x2d46cdec4cc2afd813ba2b50106dba455821e4c7b3c10f1c7293bbc759dccf64'),
82
+ vkHash: Fr.fromString('0x2979f430e7a6d4c2222a35a5e00f9c8c0e41c5ad9afa95d8d718f5c1f57ac4f2'),
83
83
  },
84
84
  ],
85
85
  MultiCallEntrypoint: [
@@ -87,7 +87,7 @@ export const StandardContractPrivateFunctions: Record<
87
87
  selector: FunctionSelector.fromField(
88
88
  Fr.fromString('0x00000000000000000000000000000000000000000000000000000000f04908a9'),
89
89
  ),
90
- vkHash: Fr.fromString('0x0699bae67183ce084da1cd76ce05d18f45f796237f2baafaf7d4bfbf9663c433'),
90
+ vkHash: Fr.fromString('0x1bc6ab9244a92fe2143e42a1856ea0b29415e0530eda89dd634a0b8630780593'),
91
91
  },
92
92
  ],
93
93
  PublicChecks: [],
@@ -96,19 +96,19 @@ export const StandardContractPrivateFunctions: Record<
96
96
  selector: FunctionSelector.fromField(
97
97
  Fr.fromString('0x0000000000000000000000000000000000000000000000000000000019f8b409'),
98
98
  ),
99
- vkHash: Fr.fromString('0x0357aa2db339c32ac5157260db378af0053d904960b764c85498547df9b94c90'),
99
+ vkHash: Fr.fromString('0x0f230529c03e4877eeabfc0c659a1133e53f2d954b1d0f6092558cb02952da3e'),
100
100
  },
101
101
  {
102
102
  selector: FunctionSelector.fromField(
103
103
  Fr.fromString('0x00000000000000000000000000000000000000000000000000000000db548fcf'),
104
104
  ),
105
- vkHash: Fr.fromString('0x00281e870a222de82b949de3d569793275c258a50b137f48b8f3c8982319b0e2'),
105
+ vkHash: Fr.fromString('0x2aa20cf767e6af6f99f4ceedcbdda34c2cd8a8e0763fb273810cf5abd7873b70'),
106
106
  },
107
107
  {
108
108
  selector: FunctionSelector.fromField(
109
109
  Fr.fromString('0x00000000000000000000000000000000000000000000000000000000f1ff839b'),
110
110
  ),
111
- vkHash: Fr.fromString('0x049120d4c9a12a2286c83df31064637b53746ea13868b0756174dcb3e036bb9d'),
111
+ vkHash: Fr.fromString('0x05eef6388f1678ef7a24ed7829a15abf8fb76922ed73477114ff4828e2772535'),
112
112
  },
113
113
  ],
114
114
  };
@@ -1,17 +0,0 @@
1
- import type { StandardContract } from './standard_contract.js';
2
- /**
3
- * Returns the standard contracts that are published on-chain (class registration + instance
4
- * publication) before their public functions can be called: AuthRegistry, PublicChecks, and
5
- * HandshakeRegistry. These are exactly the contracts guarded by the `ensure*Published` e2e setup
6
- * helpers.
7
- *
8
- * MultiCallEntrypoint is deliberately excluded: it is a client-side entrypoint used to encode
9
- * batched private calls and is never published for public execution.
10
- *
11
- * This is the single source of truth for the set of standard contracts that test environments seed
12
- * at genesis (registration/deployment nullifiers) and preload into the archiver contract store, so
13
- * the two stay consistent — preloading a class whose nullifier is not seeded would recreate the
14
- * publish-collision bug that genesis seeding avoids.
15
- */
16
- export declare function getPublishableStandardContracts(): Promise<StandardContract[]>;
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGlzaGFibGVfc3RhbmRhcmRfY29udHJhY3RzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcHVibGlzaGFibGVfc3RhbmRhcmRfY29udHJhY3RzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLE9BQU8sS0FBSyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sd0JBQXdCLENBQUM7QUFFL0Q7Ozs7Ozs7Ozs7Ozs7R0FhRztBQUNILHdCQUFnQiwrQkFBK0IsSUFBSSxPQUFPLENBQUMsZ0JBQWdCLEVBQUUsQ0FBQyxDQUU3RSJ9
@@ -1 +0,0 @@
1
- {"version":3,"file":"publishable_standard_contracts.d.ts","sourceRoot":"","sources":["../src/publishable_standard_contracts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE/D;;;;;;;;;;;;;GAaG;AACH,wBAAgB,+BAA+B,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAE7E"}
@@ -1,23 +0,0 @@
1
- import { getStandardAuthRegistry } from './auth-registry/index.js';
2
- import { getStandardHandshakeRegistry } from './handshake-registry/index.js';
3
- import { getStandardPublicChecks } from './public-checks/index.js';
4
- /**
5
- * Returns the standard contracts that are published on-chain (class registration + instance
6
- * publication) before their public functions can be called: AuthRegistry, PublicChecks, and
7
- * HandshakeRegistry. These are exactly the contracts guarded by the `ensure*Published` e2e setup
8
- * helpers.
9
- *
10
- * MultiCallEntrypoint is deliberately excluded: it is a client-side entrypoint used to encode
11
- * batched private calls and is never published for public execution.
12
- *
13
- * This is the single source of truth for the set of standard contracts that test environments seed
14
- * at genesis (registration/deployment nullifiers) and preload into the archiver contract store, so
15
- * the two stay consistent — preloading a class whose nullifier is not seeded would recreate the
16
- * publish-collision bug that genesis seeding avoids.
17
- */ export function getPublishableStandardContracts() {
18
- return Promise.all([
19
- getStandardAuthRegistry(),
20
- getStandardPublicChecks(),
21
- getStandardHandshakeRegistry()
22
- ]);
23
- }
@@ -1,22 +0,0 @@
1
- import { getStandardAuthRegistry } from './auth-registry/index.js';
2
- import { getStandardHandshakeRegistry } from './handshake-registry/index.js';
3
- import { getStandardPublicChecks } from './public-checks/index.js';
4
- import type { StandardContract } from './standard_contract.js';
5
-
6
- /**
7
- * Returns the standard contracts that are published on-chain (class registration + instance
8
- * publication) before their public functions can be called: AuthRegistry, PublicChecks, and
9
- * HandshakeRegistry. These are exactly the contracts guarded by the `ensure*Published` e2e setup
10
- * helpers.
11
- *
12
- * MultiCallEntrypoint is deliberately excluded: it is a client-side entrypoint used to encode
13
- * batched private calls and is never published for public execution.
14
- *
15
- * This is the single source of truth for the set of standard contracts that test environments seed
16
- * at genesis (registration/deployment nullifiers) and preload into the archiver contract store, so
17
- * the two stay consistent — preloading a class whose nullifier is not seeded would recreate the
18
- * publish-collision bug that genesis seeding avoids.
19
- */
20
- export function getPublishableStandardContracts(): Promise<StandardContract[]> {
21
- return Promise.all([getStandardAuthRegistry(), getStandardPublicChecks(), getStandardHandshakeRegistry()]);
22
- }