Skip to content

v0.17.0

Choose a tag to compare

@github-actions github-actions released this 09 May 11:44
· 17 commits to main since this release
409365e

Added

  • yabase/intid gains checksum-bearing _check variants for the
    Crockford Base32 and Base58Check codecs, removing the
    Int → BitArray → encode_check / decode_check → BitArray → Int
    dance every caller previously reimplemented. New helpers:
    encode_int_base32_crockford_check,
    decode_int_base32_crockford_check[_bounded],
    encode_int_base58check,
    decode_int_base58check[_bounded]. The decoders surface
    Error(InvalidChecksum) on a mistyped input — the whole reason
    callers reach for the checksummed variant. Base58Check is fixed at
    version byte 0 (Bitcoin mainnet P2PKH); callers who need a
    different version still drop to yabase/base58check directly. (#73)
  • yabase/intid and the top-level yabase module now re-export
    CodecError
    as a public type alias, so callers who only
    import yabase/intid (or only import yabase) can type-annotate a
    wrapper around decode_int_* / encode / decode without reaching
    into yabase/core/error. The alias preserves type identity (it
    resolves to the same CodecError the underlying functions already
    return), so existing code keeps working unchanged. (#74)