@aztec/accounts 0.45.1 → 0.46.2
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 +4 -4
- package/artifacts/EcdsaAccount.json +1 -1
- package/artifacts/SchnorrAccount.json +1 -1
- package/artifacts/SchnorrSingleKeyAccount.json +1 -1
- package/dest/schnorr/account_contract.d.ts +2 -2
- package/dest/schnorr/account_contract.d.ts.map +1 -1
- package/dest/schnorr/account_contract.js +1 -1
- package/dest/schnorr/index.d.ts +3 -3
- package/dest/schnorr/index.d.ts.map +1 -1
- package/dest/schnorr/index.js +1 -1
- package/dest/single_key/account_contract.d.ts +2 -2
- package/dest/single_key/account_contract.d.ts.map +1 -1
- package/dest/single_key/account_contract.js +1 -1
- package/dest/single_key/index.d.ts +2 -2
- package/dest/single_key/index.d.ts.map +1 -1
- package/dest/single_key/index.js +1 -1
- package/package.json +8 -8
- package/src/schnorr/account_contract.ts +3 -3
- package/src/schnorr/index.ts +3 -3
- package/src/single_key/account_contract.ts +3 -3
- package/src/single_key/index.ts +2 -2
package/README.md
CHANGED
|
@@ -20,11 +20,11 @@ npm install @aztec/accounts
|
|
|
20
20
|
|
|
21
21
|
```typescript
|
|
22
22
|
import { getSchnorrAccount } from '@aztec/accounts/schnorr';
|
|
23
|
-
import {
|
|
23
|
+
import { GrumpkinScalar } from '@aztec/circuit-types';
|
|
24
24
|
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const wallet = getSchnorrAccount(pxe,
|
|
25
|
+
const encryptionSecretKey = GrumpkinScalar.random();
|
|
26
|
+
const signingSecretKey = GrumpkinScalar.random();
|
|
27
|
+
const wallet = getSchnorrAccount(pxe, encryptionSecretKey, signingSecretKey).waitDeploy();
|
|
28
28
|
console.log(`New account deployed at ${wallet.getAddress()}`);
|
|
29
29
|
```
|
|
30
30
|
|