← スキル一覧に戻る

aztec-accounts
by critesjosh
Claude Code plugin for Aztec smart contract development
⭐ 2🍴 0📅 2026年1月22日
SKILL.md
name: aztec-accounts description: Manage Aztec accounts including Schnorr account creation, deployment, and recovery from credentials. Use when creating accounts, deploying wallets, or recovering existing accounts. allowed-tools: Read, Grep, Glob, Edit, Write, Bash
Aztec Accounts Skill
Create, deploy, and manage Aztec accounts with proper key management.
Subskills
- Schnorr Accounts - Creating and deploying Schnorr accounts
- Account Recovery - Recovering accounts from saved credentials
Quick Start: Create and Deploy Account
import { Fr, GrumpkinScalar } from "@aztec/aztec.js/fields";
import { AztecAddress } from "@aztec/stdlib/aztec-address";
import { AccountManager } from "@aztec/aztec.js/wallet";
import { SponsoredFeePaymentMethod } from "@aztec/aztec.js/fee/testing";
// 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:
| Type | Description | Use Case |
|---|---|---|
| Schnorr | ECDSA-compatible | Most common, recommended |
| ECDSA | Ethereum-style | Ethereum 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, GrumpkinScalar } from "@aztec/aztec.js/fields";
// Account management
import { AccountManager } from "@aztec/aztec.js/wallet";
import { AztecAddress } from "@aztec/stdlib/aztec-address";
// Wallet
import { TestWallet } from "@aztec/test-wallet/server";
// Fee payment
import { SponsoredFeePaymentMethod } from "@aztec/aztec.js/fee/testing";
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です