Alpha · Multi-validator consensus not yet live · Patent Pending

4/4 node endpoints reachable · SIMULATED in staging (no real node contacted)
DEMOProtocol status: record-level verification. Cryptographic consensus checks (BFT rounds, BLS signature validation, anti-replay) are simulated — awaiting validator engine.

Ledger Acceptance Tests

HCP Ledger Test Suite

10 acceptance tests covering double-spend, replay, signatures, state roots, receipts, and smart contracts.

1

Asset Transfer — Happy Path

Create Wallet A and Wallet B. Register Asset X owned by Wallet A. Transfer to Wallet B. Verify ownership change, state root, and receipt.

2

Double Spend — NOT_CURRENT_OWNER

expects: NOT_CURRENT_OWNER

After Test 1, try to transfer Asset X again from Wallet A. Expect NOT_CURRENT_OWNER rejection.

3

Replay Attack — REPLAYED_NONCE

expects: REPLAYED_NONCE

Submit same transaction with same nonce twice from same wallet. Expect REPLAYED_NONCE on second attempt.

4

Once-Only Redemption — ALREADY_REDEEMED

expects: ALREADY_REDEEMED

Create redeemable Asset Y. Redeem once (success). Try again. Expect ALREADY_REDEEMED.

5

Invalid Signature Rejection

expects: INVALID_SIGNATURE

Submit transaction with empty signature. Verify rejected before finality with INVALID_SIGNATURE.

6

Rate Limit / Quota Enforcement

expects: INSUFFICIENT_CREDITS

Simulate exhausted usage credits. Verify transaction rejected with insufficient quota error.

7

State Root Generation

Finalize a transaction batch. Generate and store state root with Merkle root, batch height, and validator signature bundle.

8

Validator Signature Threshold

Verify finality receipt shows 4/4 validator signatures and confirms threshold is met.

9

External Anchor Reference

Create anchor checkpoint record for a finalized state root. Verify anchor status and reference URL stored.

10

Smart Contract One-Time Redemption

expects: ALREADY_REDEEMED

Simulate contract-call ticket redemption. First call succeeds. Second call fails with ALREADY_REDEEMED.

Staging · simulated settlement · not network finality