Skip to content

Validate a real Bitmark block forward (scripts + UTXO) via bitmarkd + Mongo oracle #1

@melvincarvalho

Description

@melvincarvalho

proof/validate-forward.mjs proves the unmodified @bitcoin-kernel/kernel engine validates a real Bitmark block forward — not just structurally, but verifying signatures against resolved prevouts — with only bitmark:mainnet + unwrap.js added.

Flow: bitmarkd getblock … false (raw) → unwrapcodec.decode → resolve every prevout via bitmarkd getrawtransactionvalidateBlockContext (scripts/sigs/fees/maturity/structure) → cross-check against the explorer's Mongo utxos index (values + spent heights) as the ground-truth oracle.

Verified on block 1,200,000 (X17, 3 txs): 94 prevouts resolved, all context rules pass including scripts (94 ECDSA sigs verified) — confirming Bitmark uses standard Bitcoin legacy sighash (no fork-id). Explorer agrees on 6/6 sampled prevouts (value + spent@1,200,000).

Scope: structure + scripts + UTXO. Multi-algo PoW difficulty stays external (the 8-algo wall); witness-commitment correctly skips (no segwit). Sources local bitmarkd + Mongo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions