go-blockchain/consensus
Claude a803fd1794
feat(consensus): V2 Zarcanum signature and proof verification
Add full V2 transaction verification pipeline: parse SignaturesRaw variant
vector into structured ZC signature data, verify CLSAG GGX ring signatures
per ZC input, verify BPP range proofs, and verify BGE asset surjection
proofs with correct ring construction (mul8 point arithmetic).

Fix three wire format bugs that caused V2 parsing failures:
- RefTypeGlobalIndex (tag 0x1A) uses 8-byte LE, not varint
- Raw uint64_t variant (tagUint64) uses 8-byte LE, not varint
- zarcanum_tx_data_v1 fee uses FIELD() → 8-byte LE, not VARINT_FIELD()

Add cn_point_sub to C++ bridge and Go wrapper for BGE ring construction.
Add GetZCRingOutputs to chain for fetching ZC ring member data.

Co-Authored-By: Charon <charon@lethean.io>
2026-02-22 00:06:10 +00:00
..
block.go feat(consensus): full block validation orchestrator 2026-02-21 00:53:51 +00:00
block_test.go feat(consensus): full block validation orchestrator 2026-02-21 00:53:51 +00:00
doc.go feat(consensus): scaffold package with error types 2026-02-21 00:39:41 +00:00
errors.go feat(consensus): scaffold package with error types 2026-02-21 00:39:41 +00:00
errors_test.go feat(consensus): scaffold package with error types 2026-02-21 00:39:41 +00:00
fee.go feat(consensus): fee extraction with overflow checks 2026-02-21 00:45:01 +00:00
fee_test.go feat(consensus): fee extraction with overflow checks 2026-02-21 00:45:01 +00:00
integration_test.go docs: Phase 7 consensus rules complete 2026-02-21 01:14:41 +00:00
pow.go feat(consensus): PoW difficulty check with RandomX 2026-02-21 01:04:16 +00:00
pow_test.go feat(consensus): PoW difficulty check with RandomX 2026-02-21 01:04:16 +00:00
reward.go feat(consensus): block reward with size penalty 2026-02-21 00:42:46 +00:00
reward_test.go feat(consensus): block reward with size penalty 2026-02-21 00:42:46 +00:00
tx.go feat(consensus): transaction semantic validation 2026-02-21 00:47:43 +00:00
tx_test.go feat(consensus): transaction semantic validation 2026-02-21 00:47:43 +00:00
v2sig.go feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00
v2sig_test.go feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00
verify.go feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00
verify_crypto_test.go feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00
verify_test.go feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00