SPACECASH DAEMON ROADMAP

Extraction path from site-integrated devnet to independent protocol service.

Extracted Now

spacecash_core.protocol
Constants, canonical JSON, amount conversion, address derivation, payload hashes, block hashes, deterministic consensus spec hash, monetary policy hash, genesis plan hash, wallet policy hash, explicit append-only fork-choice policy, and producer policy defaults.
spacecash_core.ledger
SQLite schema migration, status, audit, mainnet readiness gates, block lookup, transaction lookup, transaction inclusion proofs, signed mempool queueing, mempool mining, node identity, local consensus policy, bootstrap peers, producer allowlists, chain snapshots with wallet public keys, peer registry, peer health checks, peer gossip discovery, signed checkpoint votes, quorum evaluation, fork-choice evaluation, sync previews, and guarded append-only imports.
tools/spacecash_cli.py
Standalone config/status/audit/block/tx/node/peer/sync inspection outside Flask.
tools/spacecash_smoke.py
Temporary-ledger smoke coverage for signed wallets, mempool mining, checkpoint quorum, snapshots, peer gossip, and audit.
tools/spacecash_candidate.py
Clean signed-only candidate ledger builder that proves automated readiness gates can pass without rewriting historical devnet state.
tools/spacecash_consensus_spec.py
Writes the current devnet consensus specification JSON and hash for release review, auditors, and operators.
tools/spacecash_monetary_policy.py
Writes the current supply, issuance, fee, and treasury policy JSON and hash for release review, auditors, and operators.
tools/spacecash_genesis_plan.py
Writes the current devnet-to-mainnet genesis and allocation boundary JSON and hash for release review, auditors, and operators.
tools/spacecash_genesis_allocation.py
Writes and verifies the launch allocation template, allocation hash, duplicate-address checks, supply total, and approval gate status.
tools/spacecash_gate_evidence.py
Writes and verifies the manual mainnet-gate evidence template for public testnet, external audit, legal/compliance, wallet custody, and production deployment signoff.
tools/spacecash_public_testnet_evidence.py
Writes and verifies public-testnet exit evidence for independent node operators, required scenario proofs, incident closure, and final report approval.
tools/spacecash_security_review_evidence.py
Writes and verifies external security-review closure evidence for audit scope, findings, remediation, accepted risks, and auditor signoff.
tools/spacecash_legal_compliance_evidence.py
Writes and verifies legal/compliance review evidence for use-case approval, distribution basis, disclosures, operational controls, jurisdictions, and final launch decision.
tools/spacecash_wallet_custody_evidence.py
Writes and verifies wallet recovery/custody approval evidence for recovery standard, address versioning, backup rotation, lost-key procedures, custody posture, and final signoff.
tools/spacecash_production_deployment_evidence.py
Writes and verifies production deployment approval evidence for source freeze, archived release bundle, HTTP hardening, monitoring, backup/restore, rollback, incident response, and post-deploy audit.
tools/spacecash_mainnet_decision.py
Aggregates the release manifest, checksum manifests, approved genesis allocation, manual gate evidence, and gate-specific evidence into one final mainnet decision check.
tools/spacecash_wallet_policy.py
Writes the current wallet recovery and custody policy JSON and hash for release review, auditors, and operators.
tools/spacecash_testnet_plan.py
Public-testnet package builder that writes a multi-validator candidate DB, node configs, operator checklist, daily report template, incident log, manual-gate evidence template, and SHA256 checksums.
tools/spacecash_testnet_rehearsal.py
Local multi-node rehearsal runner that starts temporary package nodes and archives health, readiness, manifest, audit, checkpoint, peer, gossip, and sync-preview evidence.
tools/spacecash_security_review_packet.py
External-review packet builder with source manifest, copied security docs, attack-surface notes, review matrix, findings log, remediation tracker, and SHA256 checksums.
tools/spacecash_release_bundle.py
Review artifact builder that writes the clean candidate DB, public-testnet package, rehearsal report, security-review packet, genesis allocation template/check, manual gate evidence template/check, release manifest, summaries, README, copied manual-gate docs, and SHA256 checksums into one directory.
tests/test_spacecash_core.py
Standard-library regression coverage for protocol metadata, signed mempool nonce behavior, checkpoint votes, append-only sync import, and producer-policy rejection.
tests/test_spacecash_daemon.py
HTTP daemon regression coverage for health, config, status, audit, signed product-payment settlement, receipt lookup, and mined nonce rejection.
tools/spacecash_release_manifest.py
Deterministic release manifest with critical source hashes, protocol metadata, and optional compile, consensus-spec, monetary-policy, genesis-plan, genesis-allocation, manual-gate-evidence, public-testnet-evidence, security-review-evidence, legal-compliance-evidence, wallet-custody-evidence, production-deployment-evidence, wallet-policy, unit, smoke, testnet, security-packet, and live audit checks.
docs/spacecash
Consensus spec, threat model, mainnet gate, manual gate, public testnet, audit scope, wallet custody, deployment, and legal/compliance documents track launch blockers and required review evidence.
northstar_catalog
Shared product lookup and SpaceCash eligibility checks for Prime and Chromatic catalog sources.
tools/spacecash_daemon.py
HTTP daemon exposing status, audit, wallet registration, faucet, transfer, redemption, catalog-backed product payment, signed mempool routes, chain snapshots, peer checks, sync previews/imports, receipt records, historical backfill, block, and transaction data without importing the site app.

Commands

python tools/spacecash_cli.py status
python tools/spacecash_cli.py node
python tools/spacecash_cli.py consensus-spec
python tools/spacecash_cli.py monetary-policy
python tools/spacecash_cli.py genesis-plan
python tools/spacecash_cli.py genesis-allocation
python tools/spacecash_cli.py security-review-evidence
python tools/spacecash_cli.py legal-compliance-evidence
python tools/spacecash_cli.py wallet-custody-evidence
python tools/spacecash_cli.py wallet-policy
python tools/spacecash_cli.py policy
python tools/spacecash_cli.py producers
python tools/spacecash_cli.py validators
python tools/spacecash_cli.py checkpoint-quorum
python tools/spacecash_cli.py bootstrap-peers
python tools/spacecash_cli.py chain-manifest
python tools/spacecash_cli.py audit
python tools/spacecash_cli.py readiness
python tools/spacecash_cli.py blocks --limit 10
python tools/spacecash_cli.py tx-proof SCTX-...
python tools/spacecash_cli.py mempool
python tools/spacecash_cli.py mempool-mine --limit 10
python tools/spacecash_cli.py peers
python tools/spacecash_cli.py peer-add http://127.0.0.1:8876 --label local
python tools/spacecash_cli.py peer-check http://127.0.0.1:8876 --snapshot
python tools/spacecash_cli.py peer-gossip --check
python tools/spacecash_cli.py peer-fork-choice http://127.0.0.1:8876
python tools/spacecash_cli.py peer-sync-preview http://127.0.0.1:8876
python tools/spacecash_cli.py peer-sync-import http://127.0.0.1:8876 --yes
python tools/spacecash_cli.py sync-candidates
python tools/spacecash_cli.py sync-imports
python tools/spacecash_cli.py checkpoint-votes
python tools/spacecash_cli.py peers-check
python tools/spacecash_cli.py orders
python tools/spacecash_cli.py orders-backfill --actor operator
python tools/spacecash_cli.py order-update SCOR-... --status approved
python -m unittest discover -s tests -v
python tools/spacecash_smoke.py
python tools/spacecash_consensus_spec.py --out _tmp\spacecash_consensus_spec.json
python tools/spacecash_monetary_policy.py --out _tmp\spacecash_monetary_policy.json
python tools/spacecash_genesis_plan.py --out _tmp\spacecash_genesis_plan.json
python tools/spacecash_genesis_allocation.py --template-out _tmp\spacecash_genesis_allocation_template.json
python tools/spacecash_genesis_allocation.py --verify _tmp\spacecash_genesis_allocation_template.json
python tools/spacecash_gate_evidence.py --template-out _tmp\spacecash_manual_gate_evidence_template.json
python tools/spacecash_gate_evidence.py --verify _tmp\spacecash_manual_gate_evidence_template.json
python tools/spacecash_public_testnet_evidence.py --template-out _tmp\spacecash_public_testnet_evidence_template.json
python tools/spacecash_public_testnet_evidence.py --verify _tmp\spacecash_public_testnet_evidence_template.json
python tools/spacecash_security_review_evidence.py --template-out _tmp\spacecash_security_review_evidence_template.json
python tools/spacecash_security_review_evidence.py --verify _tmp\spacecash_security_review_evidence_template.json
python tools/spacecash_legal_compliance_evidence.py --template-out _tmp\spacecash_legal_compliance_evidence_template.json
python tools/spacecash_legal_compliance_evidence.py --verify _tmp\spacecash_legal_compliance_evidence_template.json
python tools/spacecash_wallet_custody_evidence.py --template-out _tmp\spacecash_wallet_custody_evidence_template.json
python tools/spacecash_wallet_custody_evidence.py --verify _tmp\spacecash_wallet_custody_evidence_template.json
python tools/spacecash_wallet_policy.py --out _tmp\spacecash_wallet_policy.json
python tools/spacecash_candidate.py --db _tmp\spacecash_candidate.sqlite3 --validators 3 --quorum 2 --force
python tools/spacecash_testnet_plan.py --out-dir _tmp\spacecash_testnet_plan --force
python tools/spacecash_testnet_rehearsal.py --out-dir _tmp\spacecash_testnet_rehearsal --force
python tools/spacecash_security_review_packet.py --out-dir _tmp\spacecash_security_review_packet --force
python tools/spacecash_release_manifest.py --check-compile --check-consensus-spec --check-monetary-policy --check-genesis-plan --check-genesis-allocation --check-manual-gate-evidence --check-public-testnet-evidence --check-security-review-evidence --check-legal-compliance-evidence --check-wallet-custody-evidence --check-wallet-policy --run-units --audit-live --include-readiness --run-smoke --run-candidate --run-testnet-plan --run-testnet-rehearsal --run-security-packet
python tools/spacecash_release_bundle.py --out-dir _tmp\spacecash_release_bundle --force
python tools/spacecash_daemon.py --port 8876
Production deployment evidence
CLI: python tools/spacecash_cli.py production-deployment-evidence. Template/check: python tools/spacecash_production_deployment_evidence.py --template-out _tmp\spacecash_production_deployment_evidence_template.json and python tools/spacecash_production_deployment_evidence.py --verify _tmp\spacecash_production_deployment_evidence_template.json. Manifest flag: --check-production-deployment-evidence.
Mainnet decision evidence
CLI: python tools/spacecash_cli.py mainnet-decision. Template/check: python tools/spacecash_mainnet_decision.py --template-out _tmp\spacecash_mainnet_decision_template.json and python tools/spacecash_mainnet_decision.py --verify _tmp\spacecash_mainnet_decision_template.json. Manifest flag: --check-mainnet-decision.

Daemon Routes

GET /health
GET /config
GET /consensus/spec
GET /monetary/policy
GET /genesis/plan
GET /genesis/allocation/template
GET /genesis/allocation/check
GET /security/review/evidence/template
GET /security/review/evidence/check
GET /legal/compliance/evidence/template
GET /legal/compliance/evidence/check
GET /wallet/custody/evidence/template
GET /wallet/custody/evidence/check
GET /wallet/policy
GET /status
GET /node
GET /policy
GET /validators
GET /checkpoint/quorum
GET /checkpoint/votes
GET /chain/manifest
GET /chain/snapshot
GET /audit
GET /readiness
GET /blocks?limit=25
GET /block/<ref>
GET /tx/<txid>
GET /tx/<txid>/proof
GET /wallet/<address>
GET /mempool?status=pending
GET /mempool/<pending_id>
GET /peers
GET /bootstrap-peers
GET /sync-candidates
GET /sync-candidate/<candidate_id>
GET /sync-imports
GET /orders?wallet=<address>
GET /order/<receipt_id>
GET /order/<receipt_id>/events
POST /node/label
POST /policy/producers
POST /policy/producers/add
POST /validators
POST /validators/add
POST /validators/quorum
POST /checkpoint/payload
POST /checkpoint/vote
POST /bootstrap-peers
POST /bootstrap-peers/add
POST /bootstrap-peers/load
POST /chain/verify
POST /chain/fork-choice
POST /peers
POST /peers/record
POST /peers/check
POST /peers/check-all
POST /peers/gossip
POST /peers/fork-choice
POST /peers/sync-preview
POST /peers/sync-preview-all
POST /peers/sync-import
POST /wallet/new
POST /wallet/register
POST /faucet
POST /transfer
POST /redeem
POST /pay
POST /mempool/transfer
POST /mempool/redeem
POST /mempool/pay
POST /mempool/mine
POST /orders/backfill
POST /order/<receipt_id>/status
Deployment evidence routes
GET /deployment/evidence/template and GET /deployment/evidence/check.
Mainnet decision routes
GET /mainnet/decision/template and GET /mainnet/decision/check.

Boundary

This is still a local signed devnet. The daemon track is the engineering path toward node software, not a claim that SpaceCash is already a public consensus network or production cryptocurrency.

Cutover Phases

1. Read-only daemon: local inspection service is implemented in tools/spacecash_daemon.py.
2. Write daemon: wallet registration, faucet, transfer, generic redemption, and catalog-backed product payment are implemented outside Flask.
3. Fulfillment boundary: receipt records, historical receipt backfill, and review/contact/fulfillment status events are implemented; next move tax/shipping rules and final fulfillment automation out of app.py.
4. Mempool: signed queueing, pending inspection, balance reservation, and operator mining are implemented.
5. Block production: deterministic local block batches, ordered txid roots, Merkle transaction inclusion proofs, block versioning, and producer identity seals are implemented.
6. Node boundary: local node identity, chain manifests/snapshots with wallet public keys, snapshot verification, peer registry, bootstrap peer configuration, producer allowlist policy, peer gossip discovery, signed checkpoint vote quorum checks, hashed consensus spec, peer manifest fetch, peer snapshot checks, explicit append-only fork-choice evaluation, preview-only sync candidates, and guarded append-only imports with backups are implemented; next validate broader consensus rules through public testnet operations.
7. Wallet standard: encrypted browser wallet backup envelope, hashed wallet recovery/custody policy, and wallet custody evidence verifier are implemented; next complete reviewer-approved recovery phrase support, hardware wallet support, and custody operations policy.
8. Monetary policy: fixed devnet supply, treasury/faucet boundary, fee defaults, and tokenomics manual gates are hash-pinned for review; next approve public distribution, treasury governance, fee/burn policy, and legal disclosures.
9. Genesis boundary: historical devnet state, clean candidate state, and any future reviewed mainnet allocation are separated by a hash-pinned genesis plan and a machine-checkable allocation verifier; next approve distribution basis and treasury controls.
10. Security gate: machine-readable readiness gates, clean signed-only candidate ledger generation, genesis, allocation, monetary, and wallet policy hashing, manual gate evidence verification, public-testnet package and exit-evidence verification, external security-review evidence verification, legal/compliance evidence verification, wallet custody evidence verification, production deployment evidence verification, local multi-node testnet rehearsal, external security-review packet generation, reviewable release bundles with copied manual-gate docs, core regression tests, daemon product-payment route tests, repeatable smoke coverage, release manifests, threat model, and mainnet gate docs are implemented; next expand UI/import/deployment coverage, execute external review, and run a public testnet.
Protocol Explorer Audit JSON Readiness JSON