mirror of
https://github.com/luxfi/zap.git
synced 2026-10-30 15:04:16 +00:00
There is one perfected typed ZAP layer and it lives at github.com/luxfi/zap/v1 — forwards-only, no backwards-compat baggage, never a breaking major. Mechanical, behavior-preserving: v2/ -> v1/ (git mv), package zapv2 -> zapv1, import path .../zap/v2 -> .../zap/v1 (incl. the codegen's emitted banner + import so generated files reference /v1). Codegen golden tests pass; typed layer vets clean. (Pre-existing CGO 'resolv' link failures in the root package are unrelated env noise.)
35 lines
1.2 KiB
JSON
35 lines
1.2 KiB
JSON
{
|
|
"lp": "lp-208",
|
|
"description": "DAG mempool — header + body (LP-208 §Wire schemas). Schema IDs 0xE0..0xE1 (per session handoff override; LP-208 file still shows 0xF0..0xF1 and needs to be updated to match).",
|
|
"schemas": [
|
|
{
|
|
"wire_name": "DAGHeader",
|
|
"go_name": "DAGHeaderSchema",
|
|
"kind": "0xE0",
|
|
"size": 69,
|
|
"package": "dagwire",
|
|
"out": "lp-208/dag_header_zap.go",
|
|
"fields": [
|
|
{ "name": "Round", "type": "uint64", "offset": 1 },
|
|
{ "name": "AuthorNodeID", "type": "bytes20", "offset": 9 },
|
|
{ "name": "BodyHash", "type": "bytes32", "offset": 29 },
|
|
{ "name": "ParentHashesOff","type": "uint32", "offset": 61 },
|
|
{ "name": "WitnessOff", "type": "uint32", "offset": 65 }
|
|
]
|
|
},
|
|
{
|
|
"wire_name": "DAGBody",
|
|
"go_name": "DAGBodySchema",
|
|
"kind": "0xE1",
|
|
"size": 45,
|
|
"package": "dagwire",
|
|
"out": "lp-208/dag_body_zap.go",
|
|
"fields": [
|
|
{ "name": "Round", "type": "uint64", "offset": 1 },
|
|
{ "name": "BatchHash", "type": "bytes32", "offset": 9 },
|
|
{ "name": "TxBytesOff", "type": "uint32", "offset": 41 }
|
|
]
|
|
}
|
|
]
|
|
}
|