diff --git a/src/codex32/errors.py b/src/codex32/errors.py index 03fce90..f0c5cb9 100644 --- a/src/codex32/errors.py +++ b/src/codex32/errors.py @@ -18,14 +18,12 @@ def _error(name: str, base: type[CodexError], doc: str) -> type[CodexError]: UnknownProfile = _error("UnknownProfile", CodexError, "The HRP is not a registered profile.") InvalidChecksum = _error("InvalidChecksum", CodexError, "The outer checksum does not validate.") -InvalidHeader = _error("InvalidHeader", CodexError, "The six-symbol header is invalid.") -InvalidThreshold = _error("InvalidThreshold", InvalidHeader, "The threshold is not 0 or 2 through 9.") -InvalidIdentifier = _error("InvalidIdentifier", InvalidHeader, "The identifier is not four symbols.") -InvalidShareIndex = _error("InvalidShareIndex", InvalidHeader, "The share index conflicts with its header.") - -InvalidPayload = _error("InvalidPayload", CodexError, "The payload is not permitted by its profile.") -InvalidPadding = _error("InvalidPadding", InvalidPayload, "The discarded payload padding is invalid.") -InvalidBip39Checksum = _error("InvalidBip39Checksum", InvalidPayload, "The BIP39 checksum is invalid.") +InvalidThreshold = _error("InvalidThreshold", CodexError, "The threshold is not 0 or 2 through 9.") +InvalidIdentifier = _error("InvalidIdentifier", CodexError, "The identifier is not four symbols.") +InvalidShareIndex = _error("InvalidShareIndex", CodexError, "The share index conflicts with its header.") + +InvalidPadding = _error("InvalidPadding", CodexError, "The discarded payload padding is invalid.") +InvalidBip39Checksum = _error("InvalidBip39Checksum", CodexError, "The BIP39 checksum is invalid.") InvalidShareSet = _error("InvalidShareSet", CodexError, "Artifacts cannot form an interpolation set.") WrongShareCount = _error("WrongShareCount", InvalidShareSet, "The share count differs from its threshold.")