Skip to main content

Module error

Module error 

Source
Expand description

Error type for mk-codec.

Variants mirror the rejection conditions enumerated in design/SPEC_mk_v0_1.md §4 (“Bytecode-Validity Rules”) and bip/bip-mnemonic-key.mediawiki §“Decoder validity rules”. All decoder-rejection paths in a future implementation MUST surface one of these variants. Pre-BIP-submission, every variant is required to map to at least one named negative test vector (tracked as decoder-error-variant-parity in design/FOLLOWUPS.md).

Enums§

Error
All errors mk-codec can produce.

Type Aliases§

Result
Result alias used throughout mk-codec.