Origin & Signature Layouts
Let B = originSize / 8 be the block length (bytes).
Origin
_hdr || block0 || block1 || ... || blockN-1
- Each
blockhas lengthB. -
X-mode constraint:
B == digestLength(hash).
Signature
_hdr || sigBytes
-
S-ladder: stores
Nblocks derived by iterative hashing (N × Bbytes). -
X-ladder: also
N × Bbytes, but content are tree roots (withblock0echoed for compatibility).
Sizes (same for Origin and Signature)
- Total =
hdrLen + N × B.
Example: N=5, originSize=256 → B=32. If hdrLen=8, then each package is 8 + 5×32 = 168 bytes.