@aztec/aztec.js 3.0.0-nightly.20251026 → 3.0.0-nightly.20251031

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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Aztec.js
2
2
 
3
- Aztec.js is a library that provides APIs for managing accounts and interacting with contracts on the Aztec network. It communicates with the [Private eXecution Environment (PXE)](https://docs.aztec.network/developers/reference/aztecjs/pxe) through a `PXE` implementation, allowing developers to easily register new accounts, deploy contracts, view functions, and send transactions.
3
+ Aztec.js is a library that provides APIs for managing accounts and interacting with contracts on the Aztec network. It communicates with the [Private eXecution Environment (PXE)](https://docs.aztec.network/developers/foundational-topics/pxe) through a `PXE` implementation, allowing developers to easily register new accounts, deploy contracts, view functions, and send transactions.
4
4
 
5
5
  ## Installing
6
6
 
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `contract` module provides utilities for deploying and interacting with contracts, based on a
3
3
  * `Wallet` instance and a compiled artifact. Refer to the {@link account} module for how to obtain a valid
4
- * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/guides/smart_contracts/how_to_compile_contract | Compiling contracts}
4
+ * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract | Compiling contracts}
5
5
  * section of the documentation for how to generate an artifact out of your Noir source code.
6
6
  *
7
7
  * The {@link Contract} class is the main class in this module, and provides static methods for deploying
@@ -30,7 +30,7 @@
30
30
  * has synchronized its changes.
31
31
  *
32
32
  * @remarks If you are using typescript, consider using the
33
- * {@link https://docs.aztec.network/developers/guides/smart_contracts/how_to_compile_contract#typescript-interfaces | autogenerated type-safe interfaces}
33
+ * {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract#use-generated-interfaces | autogenerated type-safe interfaces}
34
34
  * for interacting with your contracts.
35
35
  *
36
36
  * @packageDocumentation
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `contract` module provides utilities for deploying and interacting with contracts, based on a
3
3
  * `Wallet` instance and a compiled artifact. Refer to the {@link account} module for how to obtain a valid
4
- * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/guides/smart_contracts/how_to_compile_contract | Compiling contracts}
4
+ * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract | Compiling contracts}
5
5
  * section of the documentation for how to generate an artifact out of your Noir source code.
6
6
  *
7
7
  * The {@link Contract} class is the main class in this module, and provides static methods for deploying
@@ -30,7 +30,7 @@
30
30
  * has synchronized its changes.
31
31
  *
32
32
  * @remarks If you are using typescript, consider using the
33
- * {@link https://docs.aztec.network/developers/guides/smart_contracts/how_to_compile_contract#typescript-interfaces | autogenerated type-safe interfaces}
33
+ * {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract#use-generated-interfaces | autogenerated type-safe interfaces}
34
34
  * for interacting with your contracts.
35
35
  *
36
36
  * @packageDocumentation
@@ -77,7 +77,7 @@ export type SimulateInteractionOptions = Omit<SendInteractionOptions, 'fee'> & {
77
77
  export type ProfileInteractionOptions = SimulateInteractionOptions & {
78
78
  /** Whether to return gates information or the bytecode/witnesses. */
79
79
  profileMode: 'gates' | 'execution-steps' | 'full';
80
- /** Whether to generate a ClientIVC proof or not */
80
+ /** Whether to generate a Chonk proof or not */
81
81
  skipProofGeneration?: boolean;
82
82
  };
83
83
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"interaction_options.d.ts","sourceRoot":"","sources":["../../src/contract/interaction_options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAk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AC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,cAAc,CAAC,CAMlG"}
@@ -1 +1 @@
1
- {"version":3,"file":"pub_key.d.ts","sourceRoot":"","sources":["../../src/utils/pub_key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,CAGhF"}
1
+ {"version":3,"file":"pub_key.d.ts","sourceRoot":"","sources":["../../src/utils/pub_key.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC,CAEhF"}
@@ -4,6 +4,5 @@ import { Grumpkin } from '@aztec/foundation/crypto';
4
4
  * @param privateKey - The private key.
5
5
  * @returns The generated public key.
6
6
  */ export function generatePublicKey(privateKey) {
7
- const grumpkin = new Grumpkin();
8
- return grumpkin.mul(grumpkin.generator(), privateKey);
7
+ return Grumpkin.mul(Grumpkin.generator, privateKey);
9
8
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aztec/aztec.js",
3
3
  "homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/aztec.js",
4
- "version": "3.0.0-nightly.20251026",
4
+ "version": "3.0.0-nightly.20251031",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  "./abi": "./dest/api/abi.js",
@@ -84,13 +84,13 @@
84
84
  ]
85
85
  },
86
86
  "dependencies": {
87
- "@aztec/constants": "3.0.0-nightly.20251026",
88
- "@aztec/entrypoints": "3.0.0-nightly.20251026",
89
- "@aztec/ethereum": "3.0.0-nightly.20251026",
90
- "@aztec/foundation": "3.0.0-nightly.20251026",
91
- "@aztec/l1-artifacts": "3.0.0-nightly.20251026",
92
- "@aztec/protocol-contracts": "3.0.0-nightly.20251026",
93
- "@aztec/stdlib": "3.0.0-nightly.20251026",
87
+ "@aztec/constants": "3.0.0-nightly.20251031",
88
+ "@aztec/entrypoints": "3.0.0-nightly.20251031",
89
+ "@aztec/ethereum": "3.0.0-nightly.20251031",
90
+ "@aztec/foundation": "3.0.0-nightly.20251031",
91
+ "@aztec/l1-artifacts": "3.0.0-nightly.20251031",
92
+ "@aztec/protocol-contracts": "3.0.0-nightly.20251031",
93
+ "@aztec/stdlib": "3.0.0-nightly.20251031",
94
94
  "axios": "^1.12.0",
95
95
  "tslib": "^2.4.0",
96
96
  "viem": "npm:@spalladino/viem@2.38.2-eip7594.0",
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * The `contract` module provides utilities for deploying and interacting with contracts, based on a
3
3
  * `Wallet` instance and a compiled artifact. Refer to the {@link account} module for how to obtain a valid
4
- * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/guides/smart_contracts/how_to_compile_contract | Compiling contracts}
4
+ * `Wallet` instance, and to the {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract | Compiling contracts}
5
5
  * section of the documentation for how to generate an artifact out of your Noir source code.
6
6
  *
7
7
  * The {@link Contract} class is the main class in this module, and provides static methods for deploying
@@ -30,7 +30,7 @@
30
30
  * has synchronized its changes.
31
31
  *
32
32
  * @remarks If you are using typescript, consider using the
33
- * {@link https://docs.aztec.network/developers/guides/smart_contracts/how_to_compile_contract#typescript-interfaces | autogenerated type-safe interfaces}
33
+ * {@link https://docs.aztec.network/developers/aztec-nr/how_to_compile_contract#use-generated-interfaces | autogenerated type-safe interfaces}
34
34
  * for interacting with your contracts.
35
35
  *
36
36
  * @packageDocumentation
@@ -87,7 +87,7 @@ export type SimulateInteractionOptions = Omit<SendInteractionOptions, 'fee'> & {
87
87
  export type ProfileInteractionOptions = SimulateInteractionOptions & {
88
88
  /** Whether to return gates information or the bytecode/witnesses. */
89
89
  profileMode: 'gates' | 'execution-steps' | 'full';
90
- /** Whether to generate a ClientIVC proof or not */
90
+ /** Whether to generate a Chonk proof or not */
91
91
  skipProofGeneration?: boolean;
92
92
  };
93
93
 
@@ -8,6 +8,5 @@ import type { PublicKey } from '@aztec/stdlib/keys';
8
8
  * @returns The generated public key.
9
9
  */
10
10
  export function generatePublicKey(privateKey: GrumpkinScalar): Promise<PublicKey> {
11
- const grumpkin = new Grumpkin();
12
- return grumpkin.mul(grumpkin.generator(), privateKey);
11
+ return Grumpkin.mul(Grumpkin.generator, privateKey);
13
12
  }