| Up: runtime map | Account machine | Jurisdiction machine | Extensions |
core/protocol/ contains reusable deterministic encodings and money primitives. These modules do not own loops, sockets, databases, or UI state.
protocol/htlc/ - hashHtlcSecret, onion envelopes, hash-ladder encode/verify.protocol/payments/ - payment mode and delivery primitives.protocol/settlement/ - settlement value objects and deterministic helpers.protocol/dispute/ - dispute proof projections and compact argument encoding.hanko/ - signEntityHashes, verifyHankoForHash, quorum aggregation.Encoders are canonical: field order, numeric representation, and collection sorting are explicit. JSON may support debugging, but signed/hash inputs use one stable protocol representation.