go-blockchain/crypto
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
..
common feat(crypto): Phase 2a scaffold — vendored C++ and CMake build 2026-02-20 18:21:44 +00:00
compat feat(crypto): Phase 2a scaffold — vendored C++ and CMake build 2026-02-20 18:21:44 +00:00
currency_core feat(crypto): Phase 2a scaffold — vendored C++ and CMake build 2026-02-20 18:21:44 +00:00
randomx feat(crypto): RandomX PoW hash via CGo bridge 2026-02-21 01:01:23 +00:00
upstream feat(crypto): Phase 2a scaffold — vendored C++ and CMake build 2026-02-20 18:21:44 +00:00
bridge.cpp feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00
bridge.h feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00
clsag.go feat(consensus): V2 Zarcanum signature and proof verification 2026-02-22 00:06:10 +00:00
CMakeLists.txt feat(crypto): RandomX PoW hash via CGo bridge 2026-02-21 01:01:23 +00:00
crypto.go feat(crypto): RandomX PoW hash via CGo bridge 2026-02-21 01:01:23 +00:00
crypto_test.go feat(crypto): wire BPP/BPPE/BGE proof verification with real testnet data 2026-02-21 18:37:08 +00:00
doc.go feat(crypto): CGo bridge smoke test — FastHash via Keccak-256 2026-02-20 18:22:25 +00:00
keygen.go feat(crypto): key derivation, one-time addresses, and key images 2026-02-20 18:28:43 +00:00
keyimage.go feat(crypto): key derivation, one-time addresses, and key images 2026-02-20 18:28:43 +00:00
pow.go feat(crypto): RandomX PoW hash via CGo bridge 2026-02-21 01:01:23 +00:00
pow_test.go feat(crypto): RandomX PoW hash via CGo bridge 2026-02-21 01:01:23 +00:00
proof.go feat(crypto): wire BPP/BPPE/BGE proof verification with real testnet data 2026-02-21 18:37:08 +00:00
PROVENANCE.md feat(crypto): Phase 2a scaffold — vendored C++ and CMake build 2026-02-20 18:21:44 +00:00
signature.go feat(crypto): standard and ring signature (NLSAG) generation/verification 2026-02-20 18:30:53 +00:00