Repository navigation
Fix
base58CheckDecodenow returnsnilfor inputs that decode to fewer than 4 bytes (for example"","1","111"). Previously these hit aRangeprecondition failure and crashed the calling process.
Feat
base58Decodeandbase58CheckDecodeaccept an optionalmaxDecodedLength:. 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