Skip to content

0.2.0

Latest

Choose a tag to compare

@KINGH242 KINGH242 released this 06 Nov 21:33

Fix

  • base58CheckDecode now returns nil for inputs that decode to fewer than 4 bytes (for example "", "1", "111"). Previously these hit a Range precondition failure and crashed the calling process.

Feat

  • base58Decode and base58CheckDecode accept an optional maxDecodedLength:. Decoding cost grows quadratically with input length, so pass a limit when decoding strings from users or the network. Oversized input is rejected before any decoding work. Omitting the parameter keeps the previous behavior.
let payload = Base58.base58CheckDecode(userInput, maxDecodedLength: 21)

Docs

  • Fixed README examples that referenced nonexistent Base58.encode/decode.
  • Corrected crypto backend docs (CryptoKit on Apple platforms, swift-crypto elsewhere), Swift 6.0 requirement, and package URL.

CI

  • Workflow token restricted to contents: read; third-party actions pinned to commit SHAs; checkout no longer persists credentials.

Full changelog: 0.1.5...0.2.0

🤖 Generated with Claude Code