@aztec/accounts 3.0.0-nightly.20251023 → 3.0.0-nightly.20251024
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/artifacts/EcdsaKAccount.json +20 -15
- package/artifacts/EcdsaRAccount.json +20 -15
- package/artifacts/SchnorrAccount.json +22 -16
- package/artifacts/SchnorrSingleKeyAccount.json +14 -10
- package/artifacts/SimulatedAccount.json +14 -10
- package/dest/schnorr/index.d.ts +1 -7
- package/dest/schnorr/index.d.ts.map +1 -1
- package/dest/schnorr/lazy.d.ts +2 -1
- package/dest/schnorr/lazy.d.ts.map +1 -1
- package/dest/schnorr/lazy.js +1 -1
- package/dest/single_key/index.d.ts +1 -1
- package/dest/single_key/index.d.ts.map +1 -1
- package/dest/single_key/lazy.d.ts +1 -1
- package/dest/single_key/lazy.d.ts.map +1 -1
- package/dest/stub/index.d.ts +2 -1
- package/dest/stub/index.d.ts.map +1 -1
- package/dest/stub/index.js +1 -1
- package/dest/stub/lazy.d.ts +2 -1
- package/dest/stub/lazy.d.ts.map +1 -1
- package/dest/stub/lazy.js +1 -1
- package/dest/testing/index.d.ts +1 -12
- package/dest/testing/index.d.ts.map +1 -1
- package/dest/testing/index.js +1 -1
- package/dest/testing/lazy.d.ts +1 -12
- package/dest/testing/lazy.d.ts.map +1 -1
- package/dest/testing/lazy.js +1 -1
- package/package.json +6 -6
- package/src/schnorr/index.ts +1 -1
- package/src/schnorr/lazy.ts +7 -2
- package/src/single_key/index.ts +1 -1
- package/src/single_key/lazy.ts +1 -1
- package/src/stub/index.ts +2 -1
- package/src/stub/lazy.ts +2 -1
- package/src/testing/index.ts +2 -2
- package/src/testing/lazy.ts +2 -2
package/dest/schnorr/index.d.ts
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
* The `@aztec/accounts/schnorr` export provides an account contract implementation that uses Schnorr signatures with a Grumpkin key for authentication, and a separate Grumpkin key for encryption.
|
|
3
|
-
* This is the suggested account contract type for most use cases within Aztec.
|
|
4
|
-
*
|
|
5
|
-
* @packageDocumentation
|
|
6
|
-
*/
|
|
7
|
-
import type { AztecAddress } from '@aztec/aztec.js';
|
|
1
|
+
import type { AztecAddress } from '@aztec/aztec.js/addresses';
|
|
8
2
|
import { Fr, GrumpkinScalar } from '@aztec/foundation/fields';
|
|
9
3
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
10
4
|
import { SchnorrBaseAccountContract } from './account_contract.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schnorr/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schnorr/index.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAM1D,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE,eAAO,MAAM,8BAA8B,kBAA2E,CAAC;AAEvH;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,0BAA0B;gBACxD,iBAAiB,EAAE,cAAc;IAIpC,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D;AAED;;;;;GAKG;AACH,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,EAAE,EACV,IAAI,EAAE,EAAE,EACR,iBAAiB,CAAC,EAAE,cAAc,GACjC,OAAO,CAAC,YAAY,CAAC,CAIvB"}
|
package/dest/schnorr/lazy.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Fr, GrumpkinScalar } from '@aztec/foundation/fields';
|
|
2
2
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
3
|
+
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
3
4
|
import { SchnorrBaseAccountContract } from './account_contract.js';
|
|
4
5
|
/**
|
|
5
6
|
* Lazily loads the contract artifact
|
|
@@ -21,5 +22,5 @@ export declare class SchnorrAccountContract extends SchnorrBaseAccountContract {
|
|
|
21
22
|
* @param salt - The contract address salt.
|
|
22
23
|
* @param signingPrivateKey - A specific signing private key that's not derived from the secret.
|
|
23
24
|
*/
|
|
24
|
-
export declare function getSchnorrAccountContractAddress(secret: Fr, salt: Fr, signingPrivateKey?: GrumpkinScalar): Promise<
|
|
25
|
+
export declare function getSchnorrAccountContractAddress(secret: Fr, salt: Fr, signingPrivateKey?: GrumpkinScalar): Promise<AztecAddress>;
|
|
25
26
|
//# sourceMappingURL=lazy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/schnorr/lazy.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/schnorr/lazy.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,EAAE,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;;GAGG;AACH,wBAAsB,iCAAiC,8BAQtD;AAED;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,0BAA0B;gBACxD,iBAAiB,EAAE,cAAc;IAIpC,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D;AAED;;;;;GAKG;AACH,wBAAsB,gCAAgC,CACpD,MAAM,EAAE,EAAE,EACV,IAAI,EAAE,EAAE,EACR,iBAAiB,CAAC,EAAE,cAAc,GACjC,OAAO,CAAC,YAAY,CAAC,CAIvB"}
|
package/dest/schnorr/lazy.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This is the suggested account contract type for most use cases within Aztec.
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
|
-
*/ import { getAccountContractAddress } from '@aztec/aztec.js';
|
|
6
|
+
*/ import { getAccountContractAddress } from '@aztec/aztec.js/account';
|
|
7
7
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
8
8
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
9
9
|
import { SchnorrBaseAccountContract } from './account_contract.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import type { GrumpkinScalar } from '@aztec/aztec.js';
|
|
7
|
+
import type { GrumpkinScalar } from '@aztec/aztec.js/fields';
|
|
8
8
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
9
9
|
import { SingleKeyBaseAccountContract } from './account_contract.js';
|
|
10
10
|
export declare const SchnorrSingleKeyAccountContractArtifact: ContractArtifact;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/single_key/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/single_key/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAK1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAErE,eAAO,MAAM,uCAAuC,kBAEnD,CAAC;AAEF;;;;GAIG;AACH,qBAAa,wBAAyB,SAAQ,4BAA4B;gBAC5D,iBAAiB,EAAE,cAAc;IAIpC,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import type { GrumpkinScalar } from '@aztec/aztec.js';
|
|
7
|
+
import type { GrumpkinScalar } from '@aztec/aztec.js/fields';
|
|
8
8
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
9
9
|
import { SingleKeyBaseAccountContract } from './account_contract.js';
|
|
10
10
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/single_key/lazy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/single_key/lazy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAG1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAErE;;;GAGG;AACH,wBAAsB,mCAAmC,8BAQxD;AAED;;;;GAIG;AACH,qBAAa,wBAAyB,SAAQ,4BAA4B;gBAC5D,iBAAiB,EAAE,cAAc;IAIpC,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D"}
|
package/dest/stub/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseAccount, type ChainInfo
|
|
1
|
+
import { BaseAccount, type ChainInfo } from '@aztec/aztec.js/account';
|
|
2
|
+
import type { CompleteAddress } from '@aztec/aztec.js/addresses';
|
|
2
3
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
3
4
|
import { StubBaseAccountContract } from './account_contract.js';
|
|
4
5
|
export declare const StubAccountContractArtifact: ContractArtifact;
|
package/dest/stub/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stub/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/stub/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAM1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,eAAO,MAAM,2BAA2B,kBAAyE,CAAC;AAElH;;;GAGG;AACH,qBAAa,mBAAoB,SAAQ,uBAAuB;;IAKrD,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,eAQvF"}
|
package/dest/stub/index.js
CHANGED
package/dest/stub/lazy.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseAccount, type ChainInfo
|
|
1
|
+
import { BaseAccount, type ChainInfo } from '@aztec/aztec.js/account';
|
|
2
|
+
import type { CompleteAddress } from '@aztec/aztec.js/addresses';
|
|
2
3
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
3
4
|
import { StubBaseAccountContract } from './account_contract.js';
|
|
4
5
|
/**
|
package/dest/stub/lazy.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/stub/lazy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/stub/lazy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAI1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE;;;GAGG;AACH,wBAAsB,8BAA8B,8BAQnD;AAED;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,uBAAuB;;IAKrD,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,eAQvF"}
|
package/dest/stub/lazy.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseAccount } from '@aztec/aztec.js';
|
|
1
|
+
import { BaseAccount } from '@aztec/aztec.js/account';
|
|
2
2
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
3
3
|
import { DefaultAccountInterface } from '../defaults/account_interface.js';
|
|
4
4
|
import { StubBaseAccountContract } from './account_contract.js';
|
package/dest/testing/index.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `@aztec/accounts/testing` export provides utility methods for testing, in particular in a Sandbox environment.
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
import { Fr } from '@aztec/aztec.js';
|
|
7
1
|
import { type InitialAccountData } from './configuration.js';
|
|
8
2
|
export { INITIAL_TEST_ACCOUNT_SALTS, INITIAL_TEST_ENCRYPTION_KEYS, INITIAL_TEST_SECRET_KEYS, INITIAL_TEST_SIGNING_KEYS, type InitialAccountData, } from './configuration.js';
|
|
9
3
|
/**
|
|
@@ -13,10 +7,5 @@ export declare function getInitialTestAccountsData(): Promise<InitialAccountData
|
|
|
13
7
|
/**
|
|
14
8
|
* Generate a fixed amount of random schnorr account contract instance.
|
|
15
9
|
*/
|
|
16
|
-
export declare function generateSchnorrAccounts(numberOfAccounts: number): Promise<
|
|
17
|
-
secret: Fr;
|
|
18
|
-
signingKey: import("@aztec/aztec.js").Fq;
|
|
19
|
-
salt: Fr;
|
|
20
|
-
address: import("@aztec/aztec.js").AztecAddress;
|
|
21
|
-
}[]>;
|
|
10
|
+
export declare function generateSchnorrAccounts(numberOfAccounts: number): Promise<Promise<InitialAccountData[]>>;
|
|
22
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/testing/index.ts"],"names":[],"mappings":"AASA,OAAO,EAKL,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,KAAK,kBAAkB,GACxB,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAa1E;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAa9G"}
|
package/dest/testing/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The `@aztec/accounts/testing` export provides utility methods for testing, in particular in a Sandbox environment.
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
|
-
*/ import { Fr } from '@aztec/aztec.js';
|
|
5
|
+
*/ import { Fr } from '@aztec/aztec.js/fields';
|
|
6
6
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
7
7
|
import { getSchnorrAccountContractAddress } from '../schnorr/index.js';
|
|
8
8
|
import { INITIAL_TEST_ACCOUNT_SALTS, INITIAL_TEST_ENCRYPTION_KEYS, INITIAL_TEST_SECRET_KEYS, INITIAL_TEST_SIGNING_KEYS } from './configuration.js';
|
package/dest/testing/lazy.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The `@aztec/accounts/testing/lazy` export provides utility methods for testing, in particular in a Sandbox environment.
|
|
3
|
-
*
|
|
4
|
-
* @packageDocumentation
|
|
5
|
-
*/
|
|
6
|
-
import { Fr } from '@aztec/aztec.js';
|
|
7
1
|
import { type InitialAccountData } from './configuration.js';
|
|
8
2
|
export { INITIAL_TEST_ACCOUNT_SALTS, INITIAL_TEST_SECRET_KEYS } from './configuration.js';
|
|
9
3
|
/**
|
|
@@ -13,10 +7,5 @@ export declare function getInitialTestAccountsData(): Promise<InitialAccountData
|
|
|
13
7
|
/**
|
|
14
8
|
* Generate a fixed amount of random schnorr account contract instance.
|
|
15
9
|
*/
|
|
16
|
-
export declare function generateSchnorrAccounts(numberOfAccounts: number): Promise<
|
|
17
|
-
secret: Fr;
|
|
18
|
-
signingKey: import("@aztec/aztec.js").Fq;
|
|
19
|
-
salt: Fr;
|
|
20
|
-
address: import("@aztec/aztec.js").AztecAddress;
|
|
21
|
-
}[]>;
|
|
10
|
+
export declare function generateSchnorrAccounts(numberOfAccounts: number): Promise<InitialAccountData[]>;
|
|
22
11
|
//# sourceMappingURL=lazy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/testing/lazy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/testing/lazy.ts"],"names":[],"mappings":"AASA,OAAO,EAKL,KAAK,kBAAkB,EACxB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,0BAA0B,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAC;AAE1F;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAa1E;AAED;;GAEG;AACH,wBAAsB,uBAAuB,CAAC,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAarG"}
|
package/dest/testing/lazy.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* The `@aztec/accounts/testing/lazy` export provides utility methods for testing, in particular in a Sandbox environment.
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
|
-
*/ import { Fr } from '@aztec/aztec.js';
|
|
5
|
+
*/ import { Fr } from '@aztec/aztec.js/fields';
|
|
6
6
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
7
7
|
import { getSchnorrAccountContractAddress } from '../schnorr/lazy.js';
|
|
8
8
|
import { INITIAL_TEST_ACCOUNT_SALTS, INITIAL_TEST_ENCRYPTION_KEYS, INITIAL_TEST_SECRET_KEYS, INITIAL_TEST_SIGNING_KEYS } from './configuration.js';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@aztec/accounts",
|
|
3
3
|
"homepage": "https://github.com/AztecProtocol/aztec-packages/tree/master/yarn-project/accounts",
|
|
4
4
|
"description": "Implementation of sample account contracts for Aztec Network",
|
|
5
|
-
"version": "3.0.0-nightly.
|
|
5
|
+
"version": "3.0.0-nightly.20251024",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
"./defaults": "./dest/defaults/index.js",
|
|
@@ -82,11 +82,11 @@
|
|
|
82
82
|
]
|
|
83
83
|
},
|
|
84
84
|
"dependencies": {
|
|
85
|
-
"@aztec/aztec.js": "3.0.0-nightly.
|
|
86
|
-
"@aztec/entrypoints": "3.0.0-nightly.
|
|
87
|
-
"@aztec/ethereum": "3.0.0-nightly.
|
|
88
|
-
"@aztec/foundation": "3.0.0-nightly.
|
|
89
|
-
"@aztec/stdlib": "3.0.0-nightly.
|
|
85
|
+
"@aztec/aztec.js": "3.0.0-nightly.20251024",
|
|
86
|
+
"@aztec/entrypoints": "3.0.0-nightly.20251024",
|
|
87
|
+
"@aztec/ethereum": "3.0.0-nightly.20251024",
|
|
88
|
+
"@aztec/foundation": "3.0.0-nightly.20251024",
|
|
89
|
+
"@aztec/stdlib": "3.0.0-nightly.20251024",
|
|
90
90
|
"tslib": "^2.4.0"
|
|
91
91
|
},
|
|
92
92
|
"devDependencies": {
|
package/src/schnorr/index.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import type { AztecAddress } from '@aztec/aztec.js';
|
|
8
7
|
import { getAccountContractAddress } from '@aztec/aztec.js/account';
|
|
8
|
+
import type { AztecAddress } from '@aztec/aztec.js/addresses';
|
|
9
9
|
import { Fr, GrumpkinScalar } from '@aztec/foundation/fields';
|
|
10
10
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
11
11
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
package/src/schnorr/lazy.ts
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import { getAccountContractAddress } from '@aztec/aztec.js';
|
|
7
|
+
import { getAccountContractAddress } from '@aztec/aztec.js/account';
|
|
8
8
|
import { Fr, GrumpkinScalar } from '@aztec/foundation/fields';
|
|
9
9
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
10
10
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
11
|
+
import type { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
11
12
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
12
13
|
|
|
13
14
|
import { SchnorrBaseAccountContract } from './account_contract.js';
|
|
@@ -47,7 +48,11 @@ export class SchnorrAccountContract extends SchnorrBaseAccountContract {
|
|
|
47
48
|
* @param salt - The contract address salt.
|
|
48
49
|
* @param signingPrivateKey - A specific signing private key that's not derived from the secret.
|
|
49
50
|
*/
|
|
50
|
-
export async function getSchnorrAccountContractAddress(
|
|
51
|
+
export async function getSchnorrAccountContractAddress(
|
|
52
|
+
secret: Fr,
|
|
53
|
+
salt: Fr,
|
|
54
|
+
signingPrivateKey?: GrumpkinScalar,
|
|
55
|
+
): Promise<AztecAddress> {
|
|
51
56
|
const signingKey = signingPrivateKey ?? deriveSigningKey(secret);
|
|
52
57
|
const accountContract = new SchnorrAccountContract(signingKey);
|
|
53
58
|
return await getAccountContractAddress(accountContract, secret, salt);
|
package/src/single_key/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import type { GrumpkinScalar } from '@aztec/aztec.js';
|
|
7
|
+
import type { GrumpkinScalar } from '@aztec/aztec.js/fields';
|
|
8
8
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
9
9
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
10
10
|
import type { NoirCompiledContract } from '@aztec/stdlib/noir';
|
package/src/single_key/lazy.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*/
|
|
7
|
-
import type { GrumpkinScalar } from '@aztec/aztec.js';
|
|
7
|
+
import type { GrumpkinScalar } from '@aztec/aztec.js/fields';
|
|
8
8
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
9
9
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
10
10
|
|
package/src/stub/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseAccount, type ChainInfo
|
|
1
|
+
import { BaseAccount, type ChainInfo } from '@aztec/aztec.js/account';
|
|
2
|
+
import type { CompleteAddress } from '@aztec/aztec.js/addresses';
|
|
2
3
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
3
4
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
4
5
|
import type { NoirCompiledContract } from '@aztec/stdlib/noir';
|
package/src/stub/lazy.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseAccount, type ChainInfo
|
|
1
|
+
import { BaseAccount, type ChainInfo } from '@aztec/aztec.js/account';
|
|
2
|
+
import type { CompleteAddress } from '@aztec/aztec.js/addresses';
|
|
2
3
|
import type { ContractArtifact } from '@aztec/stdlib/abi';
|
|
3
4
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
4
5
|
|
package/src/testing/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
|
-
import { Fr } from '@aztec/aztec.js';
|
|
6
|
+
import { Fr } from '@aztec/aztec.js/fields';
|
|
7
7
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
8
8
|
|
|
9
9
|
import { getSchnorrAccountContractAddress } from '../schnorr/index.js';
|
|
@@ -44,7 +44,7 @@ export function getInitialTestAccountsData(): Promise<InitialAccountData[]> {
|
|
|
44
44
|
/**
|
|
45
45
|
* Generate a fixed amount of random schnorr account contract instance.
|
|
46
46
|
*/
|
|
47
|
-
export async function generateSchnorrAccounts(numberOfAccounts: number) {
|
|
47
|
+
export async function generateSchnorrAccounts(numberOfAccounts: number): Promise<Promise<InitialAccountData[]>> {
|
|
48
48
|
const secrets = Array.from({ length: numberOfAccounts }, () => Fr.random());
|
|
49
49
|
return await Promise.all(
|
|
50
50
|
secrets.map(async secret => {
|
package/src/testing/lazy.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @packageDocumentation
|
|
5
5
|
*/
|
|
6
|
-
import { Fr } from '@aztec/aztec.js';
|
|
6
|
+
import { Fr } from '@aztec/aztec.js/fields';
|
|
7
7
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
8
8
|
|
|
9
9
|
import { getSchnorrAccountContractAddress } from '../schnorr/lazy.js';
|
|
@@ -38,7 +38,7 @@ export function getInitialTestAccountsData(): Promise<InitialAccountData[]> {
|
|
|
38
38
|
/**
|
|
39
39
|
* Generate a fixed amount of random schnorr account contract instance.
|
|
40
40
|
*/
|
|
41
|
-
export async function generateSchnorrAccounts(numberOfAccounts: number) {
|
|
41
|
+
export async function generateSchnorrAccounts(numberOfAccounts: number): Promise<InitialAccountData[]> {
|
|
42
42
|
const secrets = Array.from({ length: numberOfAccounts }, () => Fr.random());
|
|
43
43
|
return await Promise.all(
|
|
44
44
|
secrets.map(async secret => {
|