mirror of
https://github.com/luxfi/chains.git
synced 2026-07-27 03:39:41 +00:00
The G-Chain block Bytes()/ID path used json.Marshal(blockWire{...}); now a
fixed-offset ZAP object (ParentID 32B, Height u64, Timestamp i64, Payload bytes).
blockID = hash(canonical ZAP wire), deterministic across nodes/restarts, trailing
bytes rejected. Dropped encoding/json from block.go. Round-trip + determinism +
trailing-byte tests green.
Co-authored-by: Hanzo Dev <dev@hanzo.ai>