Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/docs-developers/docs/cli/aztec_wallet_cli_reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,8 @@ Options:
Usage: wallet create-account [options]

Creates an aztec account that can be used for sending transactions. Registers
the account on the PXE and deploys an account contract. Uses a Schnorr
single-key account which uses the same key for encryption and authentication
(not secure for production usage).
the account on the PXE and deploys an account contract. Uses a Schnorr account
which uses an immutable key for authentication.

Options:
-f, --from <string> Alias or address of the account performing the deployment
Expand Down
1 change: 0 additions & 1 deletion docs/docs-developers/docs/resources/migration_notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ The `maxLogsHit` flag indicates whether the log limit was reached, meaning more
### [Aztec.nr] Removed `get_random_bytes`

The `get_random_bytes` unconstrained function has been removed from `aztec::utils::random`. If you were using it, you can replace it with direct calls to the `random` oracle from `aztec::oracle::random` and convert to bytes yourself.

### [Aztec.js] `simulate()`, `send()`, and deploy return types changed to always return objects

All SDK interaction methods now return structured objects that include offchain output alongside the primary result. This affects `.simulate()`, `.send()`, deploy `.send()`, and `Wallet.sendTx()`.
Expand Down
1 change: 0 additions & 1 deletion noir-projects/noir-contracts/Nargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ members = [
"contracts/account/ecdsa_r_account_contract",
"contracts/account/schnorr_account_contract",
"contracts/account/schnorr_hardcoded_account_contract",
"contracts/account/schnorr_single_key_account_contract",
"contracts/account/simulated_account_contract",
"contracts/app/amm_contract",
"contracts/app/app_subscription_contract",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion yarn-project/accounts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ npm install @aztec/accounts

- **Schnorr**: Uses an Grumpkin private key with Schnorr signatures for authentication, and a separate Grumpkin private key for encryption. Recommended for most use cases.
- **ECDSA**: Uses an ECDSA private key for authentication, and a Grumpkin private key for encryption. Recommended for building integrations with Ethereum wallets.
- **SingleKey**: Uses a single Grumpkin private key for both authentication and encryption. Recommended for testing purposes only.

## Usage

Expand Down
3 changes: 0 additions & 3 deletions yarn-project/accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"./ecdsa/lazy": "./dest/ecdsa/lazy.js",
"./schnorr": "./dest/schnorr/index.js",
"./schnorr/lazy": "./dest/schnorr/lazy.js",
"./single_key": "./dest/single_key/index.js",
"./single_key/lazy": "./dest/single_key/lazy.js",
"./stub": "./dest/stub/index.js",
"./stub/lazy": "./dest/stub/lazy.js",
"./testing": "./dest/testing/index.js",
Expand All @@ -25,7 +23,6 @@
"./src/defaults/index.ts",
"./src/ecdsa/index.ts",
"./src/schnorr/index.ts",
"./src/single_key/index.ts",
"./src/testing/index.ts"
],
"name": "Accounts",
Expand Down
2 changes: 1 addition & 1 deletion yarn-project/accounts/scripts/copy-contracts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -euo pipefail
mkdir -p ./artifacts

contracts=(schnorr_account_contract-SchnorrAccount ecdsa_k_account_contract-EcdsaKAccount ecdsa_r_account_contract-EcdsaRAccount schnorr_single_key_account_contract-SchnorrSingleKeyAccount simulated_account_contract-SimulatedAccount )
contracts=(schnorr_account_contract-SchnorrAccount ecdsa_k_account_contract-EcdsaKAccount ecdsa_r_account_contract-EcdsaRAccount simulated_account_contract-SimulatedAccount )

decl=$(cat <<EOF
import { type NoirCompiledContract } from '@aztec/stdlib/noir';
Expand Down
47 changes: 0 additions & 47 deletions yarn-project/accounts/src/single_key/account_contract.ts

This file was deleted.

32 changes: 0 additions & 32 deletions yarn-project/accounts/src/single_key/index.ts

This file was deleted.

40 changes: 0 additions & 40 deletions yarn-project/accounts/src/single_key/lazy.ts

This file was deleted.

2 changes: 1 addition & 1 deletion yarn-project/cli-wallet/src/cmds/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function injectCommands(
const createAccountCommand = program
.command('create-account')
.description(
'Creates an aztec account that can be used for sending transactions. Registers the account on the PXE and deploys an account contract. Uses a Schnorr single-key account which uses the same key for encryption and authentication (not secure for production usage).',
'Creates an aztec account that can be used for sending transactions. Registers the account on the PXE and deploys an account contract. Uses a Schnorr account which uses an immutable key for authentication.',
)
.summary('Creates an aztec account that can be used for sending transactions.')
.addOption(createAccountOption('Alias or address of the account performing the deployment', !db, db))
Expand Down
7 changes: 1 addition & 6 deletions yarn-project/end-to-end/src/e2e_account_contracts.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { EcdsaKAccountContract } from '@aztec/accounts/ecdsa';
import { SchnorrAccountContract } from '@aztec/accounts/schnorr';
import { SingleKeyAccountContract } from '@aztec/accounts/single_key';
import { type Account, type AccountContract, BaseAccount, getAccountContractAddress } from '@aztec/aztec.js/account';
import { AztecAddress, CompleteAddress } from '@aztec/aztec.js/addresses';
import { Fr, GrumpkinScalar } from '@aztec/aztec.js/fields';
Expand Down Expand Up @@ -99,11 +98,7 @@ const itShouldBehaveLikeAnAccountContract = (
};

describe('e2e_account_contracts', () => {
describe('schnorr single-key account', () => {
itShouldBehaveLikeAnAccountContract((encryptionKey: GrumpkinScalar) => new SingleKeyAccountContract(encryptionKey));
});

describe('schnorr multi-key account', () => {
describe('schnorr account', () => {
itShouldBehaveLikeAnAccountContract(() => new SchnorrAccountContract(GrumpkinScalar.random()));
});

Expand Down
Loading