Origin & Signature Layouts

Let B = originSize / 8 be the block length (bytes).

Origin

_hdr  ||  block0 || block1 || ... || blockN-1
  • Each block has length B.
  • X-mode constraint: B == digestLength(hash).

Signature

_hdr  ||  sigBytes
  • S-ladder: stores N blocks derived by iterative hashing (N × B bytes).
  • X-ladder: also N × B bytes, but content are tree roots (with block0 echoed for compatibility).

Sizes (same for Origin and Signature)

  • Total = hdrLen + N × B.

Example: N=5, originSize=256B=32. If hdrLen=8, then each package is 8 + 5×32 = 168 bytes.