How urriki1502/wam-privacy works
WAM Privacy is a research and prototype repository, not a production wallet or mainnet integration. Its clearest user-to-result workflow is an in-memory authorization harness: bind a wallet coin-selection result to a normalized PayJoin transaction, validate the proposal, pass it through signer policy, and validate a network plan. Separate prototypes cover WAM adapters and shielded-note construction, proof context, serialization, wallet state, and Core-facing verification. The README documents these capabilities and review stages; edges between many shielded stages are omitted where sampled code does not establish runtime calls.
Main entry points: contract.py Stack authorization · note_action.rs Note action · bundle_action.rs Bundle action · hardened_bundle.rs Hardened bundle
Components 20
Wallet authorization
- Stack authorization
prototypes/privacy_stack/contract.py - Signer gate
prototypes/signer_abstraction/provider.py
Privacy policies
- Coin selection
prototypes/wallet_privacy/policy.py - PayJoin validation
prototypes/payjoin_safety/validator.py - Network policy
prototypes/network_privacy/policy.py
Shielded prototype
- Shielded state model
prototypes/shielded_model/model.py - Balance circuit
prototypes/zk_balance_halo2/src/lib.rs - Note action
prototypes/zk_balance_halo2/src/note_action.rs - Bundle action
prototypes/zk_balance_halo2/src/bundle_action.rs - Hardened bundle
prototypes/zk_balance_halo2/src/hardened_bundle.rs - Proof context
prototypes/zk_balance_halo2/src/context.rs - Serialization v2
prototypes/zk_balance_halo2/src/serialization_v2.rs - Note encryption
prototypes/zk_balance_halo2/src/note_encryption.rs - Transfer action
prototypes/zk_balance_halo2/src/transfer_action.rs - Anchored state
prototypes/zk_balance_halo2/src/anchor.rs - Core state
prototypes/zk_balance_halo2/src/core_state.rs - Shielded wallet state
prototypes/zk_balance_halo2/src/wallet_state.rs
Core adapters
- WAM adapter
prototypes/real_adapters/wam.py - Core verifier
integration/core/phase13b/privacy_verifier.cpp
Other components
- Wallet user
Connections 9
- Wallet user → Stack authorization: requests authorization
prototypes/privacy_stack/contract.py - Stack authorization → Coin selection: binds selection
prototypes/privacy_stack/contract.py - Stack authorization → PayJoin validation: validates proposal
- Stack authorization → Signer gate: authorizes signing
- Stack authorization → Network policy: checks route plan
- Note encryption → Note action: uses note fields
prototypes/zk_balance_halo2/src/note_encryption.rs - Bundle action → Note action: uses note action
prototypes/zk_balance_halo2/src/bundle_action.rs - Hardened bundle → Note action: uses note action
prototypes/zk_balance_halo2/src/hardened_bundle.rs - Serialization v2 → Proof context: binds context
prototypes/zk_balance_halo2/src/serialization_v2.rs