OpenParable
Skip to content
← Back to skills

Aztec Accounts

Apps & Automation
aztec-accounts

Aztec Accounts is an Agent Skill for apps & automation published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/development/aztec-accounts/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/aztec-accounts, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Aztec Accounts Skill

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

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)
await (await account.getDeployMethod()).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";