askill
aztec-accounts

aztec-accountsSafety 85Repository

Manage Aztec accounts including Schnorr account creation, deployment, and recovery from credentials. Use when creating accounts, deploying wallets, or recovering existing accounts.

8 stars
1.2k downloads
Updated 3/9/2026

Package Files

Loading files...
SKILL.md

Aztec Accounts Skill

Create, deploy, and manage Aztec accounts with proper key management.

Code Philosophy

You are writing application code, not library code. Application code should fail fast and loud. Do not add resilience patterns (retries, fallbacks, default values) unless explicitly requested. The developer's debugging experience is more important than the app "not crashing" — a crash with a clear error message is always better than silent misbehavior.

Subskills

Quick Start: Create and Deploy Account

import { Fr } from "@aztec/aztec.js/fields";
import { GrumpkinScalar } from "@aztec/foundation/curves/grumpkin";
import { AztecAddress } from "@aztec/stdlib/aztec-address";
import { AccountManager } from "@aztec/aztec.js/wallet";
import { SponsoredFeePaymentMethod } from "@aztec/aztec.js/fee";

// Generate new account keys
const secretKey = Fr.random();
const signingKey = GrumpkinScalar.random();
const salt = Fr.random();

// Create account manager
const account = await wallet.createSchnorrAccount(secretKey, salt, signingKey);
console.log(`Account address: ${account.address}`);

// Deploy account (required before use)
const deployMethod = await account.getDeployMethod();
await deployMethod.simulate({ from: AztecAddress.ZERO });
await deployMethod.send({
    from: AztecAddress.ZERO,
    fee: { paymentMethod: sponsoredPaymentMethod },
    wait: { timeout: 120000 }
});

Account Types

Aztec supports several account types:

TypeDescriptionUse Case
SchnorrECDSA-compatibleMost common, recommended
ECDSAEthereum-styleEthereum compatibility

Key Components

  • Secret Key (Fr) - Private key for encryption
  • Signing Key (GrumpkinScalar) - Private key for transaction signing
  • Salt (Fr) - Randomness for address derivation
  • Address - Derived deterministically from above

Important: Save Credentials

After creating an account, always save the credentials:

console.log(`SECRET=${secretKey.toString()}`);
console.log(`SIGNING_KEY=${signingKey.toString()}`);
console.log(`SALT=${salt.toString()}`);

Store these in your .env file for later recovery.

Key Imports

// Key types
import { Fr } from "@aztec/aztec.js/fields";
import { GrumpkinScalar } from "@aztec/foundation/curves/grumpkin";

// Account management
import { AccountManager } from "@aztec/aztec.js/wallet";
import { AztecAddress } from "@aztec/stdlib/aztec-address";

// Wallet
import { EmbeddedWallet } from "@aztec/wallets/embedded";

// Fee payment
import { SponsoredFeePaymentMethod } from "@aztec/aztec.js/fee";

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

74/100Analyzed 3/15/2026

Well-structured technical skill for Aztec account management with good code examples and clear sections. Covers Schnorr account creation, deployment, and key management with proper safety warnings. Slightly incomplete due to referenced subskills that may not exist, but provides solid foundation with actionable quick start. Tags are somewhat generic but present. Score reflects good technical depth and clarity offset by minor completeness gaps.

85
80
78
62
72

Metadata

Licenseunknown
Version-
Updated3/9/2026
Publishercritesjosh

Tags

ci-cdsecurity