How urriki1502/wam-privacy-wallet works
WAM Privacy Wallet is an explicitly experimental desktop-wallet scaffold, not a production wallet. Its principal documented flow is a user-operated Qt interface into local scan workflows, through a scan-only WSP adapter and bounded loopback RPC to a user-owned regtest node; scan backup and recovery are separate branches. Review-only PSBT/PayJoin and privacy-policy capabilities are also represented. The README documents the broad architecture; source excerpts clarify selected calls and boundaries. Unsampled subsystem internals and wiring are not assumed.
Main entry points: qualified_scan_session.py Qualified scan session · wsp1_scanner_only_rpc.py WSP scan RPC · read_rpc.py Read-only RPC · endpoint.py Local endpoint
Components 23
Desktop interface
- Qt desktop GUI
src/wam_privacy_wallet/gui/app.py - Regtest window
src/wam_privacy_wallet/gui/regtest_window.py - Regtest worker
src/wam_privacy_wallet/gui/regtest_worker.py
Scanning and recovery
- Private workflow
src/wam_privacy_wallet/application/qt_native_private_workflow.py - Qualified scan session
src/wam_privacy_wallet/application/qualified_scan_session.py - Scan coordinator
src/wam_privacy_wallet/application/wsp_scan_coordinator.py - WSP scan RPC
src/wam_privacy_wallet/integrations/wsp1_scanner_only_rpc.py - Encrypted scan backup
src/wam_privacy_wallet/application/encrypted_scan_backup.py - Checkpoint archive
src/wam_privacy_wallet/application/encrypted_checkpoint_archive.py - WSP source closure
src/wam_privacy_wallet/integrations/wsp1_source_closure.py - WSP source review
src/wam_privacy_wallet/integrations/wsp1_source_review.py
Local node access
- Local endpoint
src/wam_privacy_wallet/node/endpoint.py - Read-only RPC
src/wam_privacy_wallet/node/read_rpc.py - Chain identity
src/wam_privacy_wallet/node/attestation.py - Core profile gate
src/wam_privacy_wallet/node/core_profile.py
Privacy and review
- Signed PSBT review
src/wam_privacy_wallet/application/offline_signed_psbt_review.py - PayJoin review
src/wam_privacy_wallet/application/payjoin_proposal_review.py - PayJoin validator
src/wam_privacy_wallet/research_models/payjoin_safety/validator.py - PayJoin model
src/wam_privacy_wallet/research_models/payjoin_safety/model.py - Network privacy policy
src/wam_privacy_wallet/research_models/network_privacy/policy.py - Selected history export
src/wam_privacy_wallet/application/selected_history_export.py
Other components
- Wallet user
- User-owned WAM Core
Connections 23
- Wallet user → Qt desktop GUI: uses
- Qt desktop GUI → Regtest window: opens
src/wam_privacy_wallet/gui/app.py - Regtest window → Regtest worker: dispatches
src/wam_privacy_wallet/gui/regtest_worker.py - Regtest worker → Private workflow: runs
src/wam_privacy_wallet/gui/regtest_worker.py - Private workflow → Qualified scan session: coordinates
- Qualified scan session → Scan coordinator: coordinates
- Scan coordinator → WSP scan RPC: uses
src/wam_privacy_wallet/application/wsp_scan_coordinator.py - WSP scan RPC → Local endpoint: validates
src/wam_privacy_wallet/integrations/wsp1_scanner_only_rpc.py - WSP scan RPC → Read-only RPC: reads through
src/wam_privacy_wallet/integrations/wsp1_scanner_only_rpc.py - Read-only RPC → Local endpoint: uses
src/wam_privacy_wallet/node/read_rpc.py - Read-only RPC → User-owned WAM Core: reads RPC
- Chain identity → Local endpoint: checks
src/wam_privacy_wallet/node/attestation.py - Core profile gate → Chain identity: uses
src/wam_privacy_wallet/node/core_profile.py - Qualified scan session → Encrypted scan backup: backs up
- Qualified scan session → Checkpoint archive: archives
- WSP source closure → WSP source review: includes review
src/wam_privacy_wallet/integrations/wsp1_source_closure.py - Wallet user → Signed PSBT review: submits signed PSBT
- Signed PSBT review → WSP source closure: verifies source
src/wam_privacy_wallet/application/offline_signed_psbt_review.py - Wallet user → PayJoin review: requests review
- PayJoin review → PayJoin validator: validates proposal
src/wam_privacy_wallet/application/payjoin_proposal_review.py - PayJoin validator → PayJoin model: checks model
src/wam_privacy_wallet/research_models/payjoin_safety/validator.py - Wallet user → Network privacy policy: reviews plan
- Wallet user → Selected history export: approves export