github.com/21-dot-dev/swift-secp256k1 breaking changes
github.com/21-dot-dev/swift-secp256k1 0.25.0 (November 10, 2026) is its newest release with breaking changes, 18 of them. The first: Removed keyagg_cache. Every breaking API change we have recorded in github.com/21-dot-dev/swift-secp256k1 on Swift Package Index: 29 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.25.1, released November 13, 2026. Source repository
github.com/21-dot-dev/swift-secp256k1 0.25.0 breaking changes
- Removed
keyagg_cache
The keyagg_cache byte surface is no longer public. Keys rebuilt from serialized bytes are verification-only. github.com - Renamed
ContiguousBytes.bytes
The property is renamed to byteArray and gated on CopyableBytes. The bytes name remains only as a deprecated alias on conforming types. github.com - Behavior changed
HashDigest.byteCount
byteCount is get-only, so code that assigns to it must change. github.com - Behavior changed
isValidSignature
Digests are no longer truncated to 32 bytes, so signatures made against short digests now fail verification. github.com - Behavior changed
MuSig.aggregate
Input keys are no longer sorted internally. Call MuSig.sortedPublicKeys first to reproduce the old result. github.com - Behavior changed
Nonce.generate
Nonce.generate throws incorrectParameterSize for messages that are not 32 bytes. github.com - Behavior changed
partialSignature
partialSignature(for:) throws incorrectParameterSize for other lengths instead of normalizing silently. A consumed SecureNonce must be regenerated after the throw. github.com - Behavior changed
Recovery.ECDSASignature.dataRepresentation
dataRepresentation is now the 65-byte r || s || recoveryId form. Bytes persisted by 0.24.0 may decode as different values. github.com - Behavior changed
Schnorr.PartialSignature
PartialSignature now uses the 32-byte musig partial sig serialization and adds publicKey and nonce members. github.com - Behavior changed
SharedSecret.description
description and string interpolation now report only the byte count, so code that parsed the rendered bytes must change. github.com - Behavior changed
Signing.ECDSASignature.dataRepresentation
dataRepresentation is now the 64-byte compact form, not the old C-struct layout. Do not reload bytes persisted by 0.24.0; migrate them via compactRepresentation. github.com - Signature changed
aggregateSignatures
Aggregation now requires the aggregate nonce and key aggregate, and throws invalidMuSigContribution for a foreign partial. github.com - Signature changed
HashDigest.init
HashDigest.init now throws incorrectParameterSize for any input that is not exactly 32 bytes. github.com - Signature changed
isValid
isValid(_:for:) takes some ContiguousBytes, so drop the & before the message argument. github.com - Signature changed
isValidSignature
Verification now takes the signing session inputs and throws invalidMuSigContribution for a foreign partial contribution. github.com - Signature changed
Recovery.PublicKey.init
The initializer now throws secp256k1Error.underlyingCryptoError instead of aborting, so callers must handle the error with try. github.com - Signature changed
Schnorr.signature
signature(message:) now requires exactly 32 bytes and throws otherwise. Use signature(customMessage:) for other lengths. github.com - Signature changed
XonlyKey.init
All three initializers throw on wrong length or invalid X coordinate. keyParity changed from Int32 to Bool, so update callers. github.com
github.com/21-dot-dev/swift-secp256k1 0.24.0 breaking changes
- Removed
libsecp256k1_zkp
The libsecp256k1_zkp product is no longer shipped; consumers of zkp-only C modules must pin 0.23.2 with the zkp trait. github.com - Removed
ZKP
The ZKP product, libsecp256k1_zkp product, zkp trait and SharedSourcesPlugin are gone. Switch vanilla consumers from ZKP to P256K; consumers of zkp-only C modules must pin exact 0.23.2 with the zkp trait. github.com - Behavior changed
P256K.MuSig
Both MuSig tweak methods now throw secp256k1Error.incorrectParameterSize on non-32-byte tweak inputs. github.com - Behavior changed
P256K.MuSig.Nonce.generate
msg32 is now [UInt8]? in both generate overloads, with nil meaning the message is not yet known. github.com - Behavior changed
P256K.MuSig.partialSignature
partialSignature(for:...) now throws secp256k1Error.incorrectParameterSize on non-32-byte digest inputs. github.com - Configuration changed
The shipped XCFramework is built on Xcode 27 and its interfaces need a Swift 6.3 or later toolchain to read; binary CocoaPods consumers must upgrade. github.com - Signature changed
P256K.MuSig.Nonce.generate
The sessionID parameter is replaced by sessionSecretRand of the new SessionSecretRand type, consumed by the call. msg32 is now optional. github.com
github.com/21-dot-dev/swift-secp256k1 0.22.0 breaking changes
- Signature changed
An argument label was fixed, so code calling the affected function with the old label must use the corrected label. github.com
github.com/21-dot-dev/swift-secp256k1 0.20.0 breaking changes
- Renamed
secp256k1
The primary module name changed from secp256k1 to P256K. Update import statements and code references to use P256K. github.com
github.com/21-dot-dev/swift-secp256k1 0.13.0 breaking changes
- Behavior changed
The package now requires Swift 5.8 or later, so projects on older Swift toolchains must upgrade before updating. github.com
github.com/21-dot-dev/swift-secp256k1 0.11.0 breaking changes
- Default changed
The release switches the default underlying library to ZKP. Code that relied on the previous default build may behave differently and should be checked. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.