Deviant BCH wallet — CashTokens + covenants (Katalogos v1 · chipnet)
Expand the chipnet Address Explorer from a hard-coded 7-wallet list to the full 15-wallet keystore, with an optional master-password gate for public deploys. Two operating modes, chosen at boot by whether `addresses.enc.json` sits next to the page: 1. Local / file:// — the inline WALLETS constant renders directly. Same frictionless behaviour as before, but the list now includes all 15 wallets plus per-wallet `cat` (category: operational | chipnet-test | bns | bns-infra) for a category-chip filter above the table. 2. Deployed — ship index.html + addresses.enc.json (spec chipnet-explorer-addresses/1: PBKDF2-SHA256/200k + AES-256-GCM, fresh 16-byte salt per build). On boot the page fetches the blob, wipes the inline WALLETS to prevent pre-unlock leak, and shows a full-viewport lock overlay. Master password decrypts in-browser via SubtleCrypto — never transmitted, never persisted. New signer: design/explorer/build-addresses-enc.mjs - --master-pw prompts (or reads CHIPNET_KEYSTORE_PASSWORD env) and encrypts. - Default source is the inline WALLETS parsed from index.html. - --from-keystore pulls straight from Keys/chipnet-keystore.json via the existing scripts/lib/chipnet-keystore.mjs loader. Crypto envelope matches the Faucet's v:3 mode (Parameters/dApp/Faucet/) and the chipnet-keystore/2-encrypted format — same PBKDF2 params, same AES-GCM authentication, same "fresh salt per build" discipline. Fourth consumer of the unified master-password integration (spec: Parameters/dApp/MASTER-KEY-INTEGRATION.md §6.1). Verified in browser preview (Parameters/dApp/Explorer/ on port 5185): - Overlay shows on load when addresses.enc.json is present - Inline WALLETS wiped correctly before unlock (Σ table shows 0) - Correct password → 15 addresses render with live balances + category chips - All four categories surface: operational · chipnet-test · bns-infra · bns Also gitignores both plaintext (addresses.json) and encrypted (addresses.enc.json) address lists — same discipline as the faucet seed. Copies design/explorer/index.html into Parameters/dApp/Explorer/index.html so both mirrors stay identical (the parallel session's convention: design/ is the source of truth, Parameters/ is the published copy). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| brand | ||
| contracts | ||
| design | ||
| docs | ||
| KnowledgeBase | ||
| Parameters | ||
| public | ||
| scripts | ||
| services | ||
| shells | ||
| site/deviant | ||
| snapshots | ||
| spike | ||
| src | ||
| telegram-orderbook | ||
| test | ||
| wiki | ||
| .calibration-sweep.json | ||
| .catalytic-sweep.json | ||
| .env.example | ||
| .gitignore | ||
| .kac-extract.txt | ||
| .sim-athenae.json | ||
| adaptive-data.json | ||
| bch-history.json | ||
| bch-market.json | ||
| BCH_Token_Economy_Concept_Paper.md | ||
| bch_wallet_architecture.svg | ||
| CLAUDE.md | ||
| deviant_technical_spec_v2.7.md | ||
| package-lock.json | ||
| package.json | ||
| project-context.md | ||
| README.md | ||
| tsconfig.json | ||
| usdm-historical.json | ||
Deviant
BCH two-tier token economy platform. Pre-implementation. See BCH_Token_Economy_Concept_Paper.md for the full design.
Status
Bootstrap snapshot — protocol swap mechanism is the validation target.
Project map
| Path | Purpose |
|---|---|
BCH_Token_Economy_Concept_Paper.md |
Architecture spec, all [PROPOSED] claims |
CLAUDE.md |
Working agreement for Claude sessions |
src/ |
TypeScript wallet + token logic |
contracts/ |
CashScript source for Architecture A contracts |
test/ |
Unit tests (regtest) + integration plan (chipnet, mainnet) |
scripts/ |
Code-scan, snapshot, compile helpers |
wiki/ |
Living docs: architecture, decisions, testing strategy, code map |
snapshots/ |
Numbered progress snapshots |
Quickstart
npm install
npm run compile:contracts # produces artifacts from contracts/*.cash
npm run test:regtest # runs regtest suite
npm run scan # regenerates wiki/code-map.md
npm run snapshot # appends a new snapshot
Build priorities (active)
- Protocol swap mechanism — most novel claim, needs validation first.
- CashScript enforcement on mainnet — not just theoretical verification.
- tokenId correlation across A/B tiers — edge cases expected.
See wiki/testing-strategy.md for the staged regtest → chipnet → mainnet plan.