Skip to main content

Module consts

Module consts 

Source
Expand description

Locked constants for mk1 per design/SPEC_mk_v0_1.md v0.1.

All values are closure-locked (see docs/superpowers/specs/2026-04-29-mk1-open-questions-closure-design.md). Reproducer for the NUMS-derived target constants is documented in the BIP draft’s “Why new target constants?” section.

Constants§

CHUNKED_FRAGMENT_LONG_BYTES
Chunked-fragment long-code payload bytes per chunk.
CHUNKED_FRAGMENT_REGULAR_BYTES
Chunked-fragment regular-code payload bytes per chunk.
CROSS_CHUNK_HASH_BYTES
Cross-chunk integrity hash size in bytes.
GENERATOR_FAMILY
Family-stable generator string (closure Q-10) for vector-corpus SHA-256 anchoring. Patch-version bumps don’t roll the token; minor- or major-version bumps do.
HRP
HRP for mk1 strings (BIP 173 separator 1 follows: prefix is mk1).
MAX_CHUNKS
Maximum chunks per card.
MAX_PATH_COMPONENTS
Maximum components in an explicit-path encoding (closure Q-3).
MK_LONG_CONST
Top 75 bits of SHA-256(NUMS_DOMAIN). Long-code target residue.
MK_REGULAR_CONST
Top 65 bits of SHA-256(NUMS_DOMAIN). Regular-code target residue.
NUMS_DOMAIN
Domain string for NUMS-derived target constants (closure Q-1).
ORIGIN_FINGERPRINT_BYTES
Origin fingerprint size in bytes.
POLICY_ID_STUB_BYTES
Policy ID stub size in bytes (closure Q-2).
SINGLE_STRING_LONG_BYTES
Single-string long-code payload bytes.
SINGLE_STRING_REGULAR_BYTES
Single-string regular-code payload bytes.
XPUB_COMPACT_BYTES
Compact-73 xpub byte size (closure Q-7).