@aztec/accounts 0.86.0 → 0.87.0
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 +464 -411
- package/artifacts/EcdsaRAccount.json +590 -537
- package/artifacts/SchnorrAccount.json +654 -563
- package/artifacts/SchnorrSingleKeyAccount.json +341 -293
- package/dest/ecdsa/ecdsa_k/account_contract.d.ts +1 -3
- package/dest/ecdsa/ecdsa_k/account_contract.d.ts.map +1 -1
- package/dest/ecdsa/ecdsa_k/index.d.ts +0 -2
- package/dest/ecdsa/ecdsa_k/index.d.ts.map +1 -1
- package/dest/ecdsa/ecdsa_k/index.js +1 -1
- package/dest/ecdsa/ecdsa_k/lazy.d.ts +0 -2
- package/dest/ecdsa/ecdsa_k/lazy.d.ts.map +1 -1
- package/dest/ecdsa/ecdsa_r/account_contract.d.ts +1 -3
- package/dest/ecdsa/ecdsa_r/account_contract.d.ts.map +1 -1
- package/dest/ecdsa/ecdsa_r/index.d.ts +0 -2
- package/dest/ecdsa/ecdsa_r/index.d.ts.map +1 -1
- package/dest/ecdsa/ecdsa_r/index.js +1 -1
- package/dest/ecdsa/ecdsa_r/lazy.d.ts +0 -2
- package/dest/ecdsa/ecdsa_r/lazy.d.ts.map +1 -1
- package/dest/ecdsa/ssh_ecdsa_r/account_contract.d.ts +1 -3
- package/dest/ecdsa/ssh_ecdsa_r/account_contract.d.ts.map +1 -1
- package/dest/ecdsa/ssh_ecdsa_r/index.d.ts +0 -2
- package/dest/ecdsa/ssh_ecdsa_r/index.d.ts.map +1 -1
- package/dest/ecdsa/ssh_ecdsa_r/lazy.d.ts +0 -2
- package/dest/ecdsa/ssh_ecdsa_r/lazy.d.ts.map +1 -1
- package/dest/schnorr/index.js +1 -1
- package/dest/single_key/index.js +1 -1
- package/dest/utils/ssh_agent.d.ts +1 -4
- package/dest/utils/ssh_agent.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/ecdsa/ecdsa_k/index.ts +1 -1
- package/src/ecdsa/ecdsa_r/index.ts +1 -1
- package/src/schnorr/index.ts +1 -1
- package/src/single_key/account_contract.ts +4 -1
- package/src/single_key/index.ts +1 -1
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
import type { AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
4
2
|
import { CompleteAddress } from '@aztec/stdlib/contract';
|
|
5
3
|
import { DefaultAccountContract } from '../../defaults/account_contract.js';
|
|
@@ -14,7 +12,7 @@ export declare abstract class EcdsaKBaseAccountContract extends DefaultAccountCo
|
|
|
14
12
|
constructor(signingPrivateKey: Buffer);
|
|
15
13
|
getDeploymentFunctionAndArgs(): Promise<{
|
|
16
14
|
constructorName: string;
|
|
17
|
-
constructorArgs: Buffer[];
|
|
15
|
+
constructorArgs: Buffer<ArrayBufferLike>[];
|
|
18
16
|
}>;
|
|
19
17
|
getAuthWitnessProvider(_address: CompleteAddress): AuthWitnessProvider;
|
|
20
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account_contract.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_k/account_contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account_contract.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_k/account_contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAInE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E;;;;;GAKG;AACH,8BAAsB,yBAA0B,SAAQ,sBAAsB;IAChE,OAAO,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,MAAM;IAIvC,4BAA4B;;;;IAQlC,sBAAsB,CAAC,QAAQ,EAAE,eAAe,GAAG,mBAAmB;CAGvE"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
/**
|
|
4
2
|
* The `@aztec/accounts/ecdsa` export provides an ECDSA account contract implementation, that uses an ECDSA private key for authentication, and a Grumpkin key for encryption.
|
|
5
3
|
* Consider using this account type when working with integrations with Ethereum wallets.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_k/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_k/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAI3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAElE,eAAO,MAAM,6BAA6B,EAAE,gBAE3C,CAAC;AAEF;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,yBAAyB;gBACtD,iBAAiB,EAAE,MAAM;IAI5B,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D;AACD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,EACb,iBAAiB,EAAE,MAAM,EACzB,IAAI,CAAC,EAAE,IAAI,GACV,OAAO,CAAC,cAAc,CAAC,CAEzB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAElH"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/ import { AccountManager } from '@aztec/aztec.js/account';
|
|
7
7
|
import { getWallet } from '@aztec/aztec.js/wallet';
|
|
8
8
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
9
|
-
import EcdsaKAccountContractJson from '../../../artifacts/EcdsaKAccount.json'
|
|
9
|
+
import EcdsaKAccountContractJson from '../../../artifacts/EcdsaKAccount.json' with {
|
|
10
10
|
type: 'json'
|
|
11
11
|
};
|
|
12
12
|
import { EcdsaKBaseAccountContract } from './account_contract.js';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
/**
|
|
4
2
|
* The `@aztec/accounts/ecdsa` export provides an ECDSA account contract implementation, that uses an ECDSA private key for authentication, and a Grumpkin key for encryption.
|
|
5
3
|
* Consider using this account type when working with integrations with Ethereum wallets.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_k/lazy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_k/lazy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAElE;;;GAGG;AACH,wBAAsB,gCAAgC,8BAQrD;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,yBAAyB;gBACtD,iBAAiB,EAAE,MAAM;IAI5B,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D;AACD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,EACb,iBAAiB,EAAE,MAAM,EACzB,IAAI,CAAC,EAAE,IAAI,GACV,OAAO,CAAC,cAAc,CAAC,CAEzB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAElH"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
import type { AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
4
2
|
import { CompleteAddress } from '@aztec/stdlib/contract';
|
|
5
3
|
import { DefaultAccountContract } from '../../defaults/account_contract.js';
|
|
@@ -14,7 +12,7 @@ export declare abstract class EcdsaRBaseAccountContract extends DefaultAccountCo
|
|
|
14
12
|
constructor(signingPrivateKey: Buffer);
|
|
15
13
|
getDeploymentFunctionAndArgs(): Promise<{
|
|
16
14
|
constructorName: string;
|
|
17
|
-
constructorArgs: Buffer[];
|
|
15
|
+
constructorArgs: Buffer<ArrayBufferLike>[];
|
|
18
16
|
}>;
|
|
19
17
|
getAuthWitnessProvider(_address: CompleteAddress): AuthWitnessProvider;
|
|
20
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account_contract.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_r/account_contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account_contract.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_r/account_contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAInE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAE5E;;;;;GAKG;AACH,8BAAsB,yBAA0B,SAAQ,sBAAsB;IAChE,OAAO,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,MAAM;IAIvC,4BAA4B;;;;IAQlC,sBAAsB,CAAC,QAAQ,EAAE,eAAe,GAAG,mBAAmB;CAGvE"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
/**
|
|
4
2
|
* The `@aztec/accounts/ecdsa` export provides an ECDSA account contract implementation, that uses an ECDSA private key for authentication, and a Grumpkin key for encryption.
|
|
5
3
|
* Consider using this account type when working with integrations with Ethereum wallets.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_r/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_r/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAI3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAElE,eAAO,MAAM,6BAA6B,EAAE,gBAE3C,CAAC;AAEF;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,yBAAyB;gBACtD,iBAAiB,EAAE,MAAM;IAI5B,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D;AACD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,EACb,iBAAiB,EAAE,MAAM,EACzB,IAAI,CAAC,EAAE,IAAI,GACV,OAAO,CAAC,cAAc,CAAC,CAEzB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAElH"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/ import { AccountManager } from '@aztec/aztec.js/account';
|
|
7
7
|
import { getWallet } from '@aztec/aztec.js/wallet';
|
|
8
8
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
9
|
-
import EcdsaRAccountContractJson from '../../../artifacts/EcdsaRAccount.json'
|
|
9
|
+
import EcdsaRAccountContractJson from '../../../artifacts/EcdsaRAccount.json' with {
|
|
10
10
|
type: 'json'
|
|
11
11
|
};
|
|
12
12
|
import { EcdsaRBaseAccountContract } from './account_contract.js';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
/**
|
|
4
2
|
* The `@aztec/accounts/ecdsa` export provides an ECDSA account contract implementation, that uses an ECDSA private key for authentication, and a Grumpkin key for encryption.
|
|
5
3
|
* Consider using this account type when working with integrations with Ethereum wallets.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_r/lazy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ecdsa_r/lazy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAE3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAElE;;;GAGG;AACH,wBAAsB,gCAAgC,8BAQrD;AAED;;;;GAIG;AACH,qBAAa,qBAAsB,SAAQ,yBAAyB;gBACtD,iBAAiB,EAAE,MAAM;IAI5B,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D;AACD;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,EACb,iBAAiB,EAAE,MAAM,EACzB,IAAI,CAAC,EAAE,IAAI,GACV,OAAO,CAAC,cAAc,CAAC,CAEzB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAElH"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
import type { AuthWitnessProvider } from '@aztec/aztec.js/account';
|
|
4
2
|
import { CompleteAddress } from '@aztec/stdlib/contract';
|
|
5
3
|
import { DefaultAccountContract } from '../../defaults/account_contract.js';
|
|
@@ -17,7 +15,7 @@ export declare abstract class EcdsaRSSHBaseAccountContract extends DefaultAccoun
|
|
|
17
15
|
constructor(signingPublicKey: Buffer);
|
|
18
16
|
getDeploymentFunctionAndArgs(): Promise<{
|
|
19
17
|
constructorName: string;
|
|
20
|
-
constructorArgs: Buffer[];
|
|
18
|
+
constructorArgs: Buffer<ArrayBufferLike>[];
|
|
21
19
|
}>;
|
|
22
20
|
getAuthWitnessProvider(_address: CompleteAddress): AuthWitnessProvider;
|
|
23
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account_contract.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ssh_ecdsa_r/account_contract.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account_contract.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ssh_ecdsa_r/account_contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAInE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAI5E;;;;;;;;GAQG;AACH,8BAAsB,4BAA6B,SAAQ,sBAAsB;IACnE,OAAO,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,MAAM;IAI5C,4BAA4B;;;;IAO5B,sBAAsB,CAAC,QAAQ,EAAE,eAAe,GAAG,mBAAmB;CAGvE"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
/**
|
|
4
2
|
* The `@aztec/accounts/ecdsa` export provides an ECDSA account contract implementation, that uses an ECDSA private key for authentication, and a Grumpkin key for encryption.
|
|
5
3
|
* Consider using this account type when working with integrations with Ethereum wallets.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ssh_ecdsa_r/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ssh_ecdsa_r/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAG3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAErE;;;;;;;GAOG;AACH,qBAAa,wBAAyB,SAAQ,4BAA4B;gBAC5D,iBAAiB,EAAE,MAAM;IAI5B,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,EACb,gBAAgB,EAAE,MAAM,EACxB,IAAI,CAAC,EAAE,IAAI,GACV,OAAO,CAAC,cAAc,CAAC,CAEzB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAEpH"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
1
|
/**
|
|
4
2
|
* The `@aztec/accounts/ecdsa` export provides an ECDSA account contract implementation, that uses an ECDSA private key for authentication, and a Grumpkin key for encryption.
|
|
5
3
|
* Consider using this account type when working with integrations with Ethereum wallets.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ssh_ecdsa_r/lazy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../../src/ecdsa/ssh_ecdsa_r/lazy.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,KAAK,aAAa,EAAa,MAAM,wBAAwB,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAC;AAG3D,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAErE;;;;;;;GAOG;AACH,qBAAa,wBAAyB,SAAQ,4BAA4B;gBAC5D,iBAAiB,EAAE,MAAM;IAI5B,mBAAmB,IAAI,OAAO,CAAC,gBAAgB,CAAC;CAG1D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,EACb,gBAAgB,EAAE,MAAM,EACxB,IAAI,CAAC,EAAE,IAAI,GACV,OAAO,CAAC,cAAc,CAAC,CAEzB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAEpH"}
|
package/dest/schnorr/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { getWallet } from '@aztec/aztec.js/wallet';
|
|
8
8
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
9
9
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
10
|
-
import SchnorrAccountContractJson from '../../artifacts/SchnorrAccount.json'
|
|
10
|
+
import SchnorrAccountContractJson from '../../artifacts/SchnorrAccount.json' with {
|
|
11
11
|
type: 'json'
|
|
12
12
|
};
|
|
13
13
|
import { SchnorrBaseAccountContract } from './account_contract.js';
|
package/dest/single_key/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { getWallet } from '@aztec/aztec.js/wallet';
|
|
8
8
|
import { loadContractArtifact } from '@aztec/stdlib/abi';
|
|
9
9
|
import { deriveMasterIncomingViewingSecretKey } from '@aztec/stdlib/keys';
|
|
10
|
-
import SchnorrSingleKeyAccountContractJson from '../../artifacts/SchnorrSingleKeyAccount.json'
|
|
10
|
+
import SchnorrSingleKeyAccountContractJson from '../../artifacts/SchnorrSingleKeyAccount.json' with {
|
|
11
11
|
type: 'json'
|
|
12
12
|
};
|
|
13
13
|
import { SingleKeyBaseAccountContract } from './account_contract.js';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
3
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
4
1
|
import { Buffer } from 'buffer';
|
|
5
2
|
import net from 'net';
|
|
6
3
|
/**
|
|
@@ -31,6 +28,6 @@ export declare function getIdentities(): Promise<StoredKey[]>;
|
|
|
31
28
|
/**
|
|
32
29
|
* Sign data using a key stored in the SSH agent. The private signing key is identified by its corresponding public key.
|
|
33
30
|
*/
|
|
34
|
-
export declare function signWithAgent(keyType: Buffer, curveName: Buffer, publicKey: Buffer, data: Buffer): Promise<Buffer
|
|
31
|
+
export declare function signWithAgent(keyType: Buffer, curveName: Buffer, publicKey: Buffer, data: Buffer): Promise<Buffer<ArrayBufferLike>>;
|
|
35
32
|
export {};
|
|
36
33
|
//# sourceMappingURL=ssh_agent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ssh_agent.d.ts","sourceRoot":"","sources":["../../src/utils/ssh_agent.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ssh_agent.d.ts","sourceRoot":"","sources":["../../src/utils/ssh_agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,GAAG,MAAM,KAAK,CAAC;AAOtB;;GAEG;AACH,wBAAgB,cAAc,eAM7B;AAED;;GAEG;AACH,KAAK,SAAS,GAAG;IACf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAAC,SAAS,EAAE,CAAC,CAkDpD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,oCAwChG"}
|
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": "0.
|
|
5
|
+
"version": "0.87.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
8
8
|
"./dapp": "./dest/dapp/index.js",
|
|
@@ -75,22 +75,22 @@
|
|
|
75
75
|
]
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@aztec/aztec.js": "0.
|
|
79
|
-
"@aztec/entrypoints": "0.
|
|
80
|
-
"@aztec/ethereum": "0.
|
|
81
|
-
"@aztec/foundation": "0.
|
|
82
|
-
"@aztec/stdlib": "0.
|
|
78
|
+
"@aztec/aztec.js": "0.87.0",
|
|
79
|
+
"@aztec/entrypoints": "0.87.0",
|
|
80
|
+
"@aztec/ethereum": "0.87.0",
|
|
81
|
+
"@aztec/foundation": "0.87.0",
|
|
82
|
+
"@aztec/stdlib": "0.87.0",
|
|
83
83
|
"tslib": "^2.4.0"
|
|
84
84
|
},
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@jest/globals": "^29.5.0",
|
|
87
87
|
"@types/jest": "^29.5.0",
|
|
88
|
-
"@types/node": "^
|
|
88
|
+
"@types/node": "^22.15.17",
|
|
89
89
|
"jest": "^29.5.0",
|
|
90
90
|
"jest-mock-extended": "^3.0.3",
|
|
91
91
|
"ts-loader": "^9.4.4",
|
|
92
92
|
"ts-node": "^10.9.1",
|
|
93
|
-
"typescript": "^5.
|
|
93
|
+
"typescript": "^5.3.3"
|
|
94
94
|
},
|
|
95
95
|
"files": [
|
|
96
96
|
"dest",
|
|
@@ -99,6 +99,6 @@
|
|
|
99
99
|
"artifacts"
|
|
100
100
|
],
|
|
101
101
|
"engines": {
|
|
102
|
-
"node": ">=
|
|
102
|
+
"node": ">=20.10"
|
|
103
103
|
}
|
|
104
104
|
}
|
|
@@ -13,7 +13,7 @@ import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
|
13
13
|
import type { PXE } from '@aztec/stdlib/interfaces/client';
|
|
14
14
|
import type { NoirCompiledContract } from '@aztec/stdlib/noir';
|
|
15
15
|
|
|
16
|
-
import EcdsaKAccountContractJson from '../../../artifacts/EcdsaKAccount.json'
|
|
16
|
+
import EcdsaKAccountContractJson from '../../../artifacts/EcdsaKAccount.json' with { type: 'json' };
|
|
17
17
|
import { EcdsaKBaseAccountContract } from './account_contract.js';
|
|
18
18
|
|
|
19
19
|
export const EcdsaKAccountContractArtifact: ContractArtifact = loadContractArtifact(
|
|
@@ -13,7 +13,7 @@ import { AztecAddress } from '@aztec/stdlib/aztec-address';
|
|
|
13
13
|
import type { PXE } from '@aztec/stdlib/interfaces/client';
|
|
14
14
|
import type { NoirCompiledContract } from '@aztec/stdlib/noir';
|
|
15
15
|
|
|
16
|
-
import EcdsaRAccountContractJson from '../../../artifacts/EcdsaRAccount.json'
|
|
16
|
+
import EcdsaRAccountContractJson from '../../../artifacts/EcdsaRAccount.json' with { type: 'json' };
|
|
17
17
|
import { EcdsaRBaseAccountContract } from './account_contract.js';
|
|
18
18
|
|
|
19
19
|
export const EcdsaRAccountContractArtifact: ContractArtifact = loadContractArtifact(
|
package/src/schnorr/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ import type { PXE } from '@aztec/stdlib/interfaces/client';
|
|
|
14
14
|
import { deriveSigningKey } from '@aztec/stdlib/keys';
|
|
15
15
|
import type { NoirCompiledContract } from '@aztec/stdlib/noir';
|
|
16
16
|
|
|
17
|
-
import SchnorrAccountContractJson from '../../artifacts/SchnorrAccount.json'
|
|
17
|
+
import SchnorrAccountContractJson from '../../artifacts/SchnorrAccount.json' with { type: 'json' };
|
|
18
18
|
import { SchnorrBaseAccountContract } from './account_contract.js';
|
|
19
19
|
|
|
20
20
|
export const SchnorrAccountContractArtifact = loadContractArtifact(SchnorrAccountContractJson as NoirCompiledContract);
|
|
@@ -32,7 +32,10 @@ export abstract class SingleKeyBaseAccountContract extends DefaultAccountContrac
|
|
|
32
32
|
* by reconstructing the current address.
|
|
33
33
|
*/
|
|
34
34
|
class SingleKeyAuthWitnessProvider implements AuthWitnessProvider {
|
|
35
|
-
constructor(
|
|
35
|
+
constructor(
|
|
36
|
+
private privateKey: GrumpkinScalar,
|
|
37
|
+
private account: CompleteAddress,
|
|
38
|
+
) {}
|
|
36
39
|
|
|
37
40
|
async createAuthWit(messageHash: Fr): Promise<AuthWitness> {
|
|
38
41
|
const schnorr = new Schnorr();
|
package/src/single_key/index.ts
CHANGED
|
@@ -13,7 +13,7 @@ import type { PXE } from '@aztec/stdlib/interfaces/client';
|
|
|
13
13
|
import { deriveMasterIncomingViewingSecretKey } from '@aztec/stdlib/keys';
|
|
14
14
|
import type { NoirCompiledContract } from '@aztec/stdlib/noir';
|
|
15
15
|
|
|
16
|
-
import SchnorrSingleKeyAccountContractJson from '../../artifacts/SchnorrSingleKeyAccount.json'
|
|
16
|
+
import SchnorrSingleKeyAccountContractJson from '../../artifacts/SchnorrSingleKeyAccount.json' with { type: 'json' };
|
|
17
17
|
import { SingleKeyBaseAccountContract } from './account_contract.js';
|
|
18
18
|
|
|
19
19
|
export const SchnorrSingleKeyAccountContractArtifact = loadContractArtifact(
|