SDK
Reference algorithms and data structures to produce/verify Eternity Packages (EPs).
Canonicalization (EL‑C14N‑v2)
// Pseudocode function canonicalize(obj) -> bytes: // UTF‑8, sorted keys, minimal numbers, stable escapes ...
Rolling‑Merkle (EL‑RM2/v1)
// Pseudocode for chunked Merkle chunks = split(bytes, size=64KB) nodes = hash_chunks(chunks) while len(nodes)>1: nodes = pairwise_hash(nodes)
Proof bundle verify (BTC SPV)
// Given header, tx_branch[], tx_index root = reduce_merkle(tx_branch, tx_hash, tx_index) assert header.merkleRoot == root