---
title: "github.com/21-dot-dev/swift-secp256k1 (swift) | Since.dev"
description: "What each github.com/21-dot-dev/swift-secp256k1 release on Swift Package Index removed, renamed or changed, each with its source."
canonical_url: https://since.dev/packages/swift/github.com/21-dot-dev/swift-secp256k1
last_updated: 2026-12-04
---

# 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

Latest version `0.25.1`, released November 13, 2026. [Source repository](https://github.com/21-DOT-DEV/swift-secp256k1)

- From [0.11.0](#v-0-11-0) to [0.25.0](#v-0-25-0): 28 breaking changes in 5 versions.

## github.com/21-dot-dev/swift-secp256k1 0.25.0 breaking changes

github.com/21-dot-dev/swift-secp256k1 0.25.0, released November 10, 2026: 18 breaking changes.

- **Removed** `keyagg_cache`  

The keyagg_cache byte surface is no longer public. Keys rebuilt from serialized bytes are verification-only. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Behavior changed** `HashDigest.byteCount`  

byteCount is get-only, so code that assigns to it must change. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Behavior changed** `isValidSignature`  

Digests are no longer truncated to 32 bytes, so signatures made against short digests now fail verification. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Behavior changed** `MuSig.aggregate`  

Input keys are no longer sorted internally. Call MuSig.sortedPublicKeys first to reproduce the old result. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Behavior changed** `Nonce.generate`  

Nonce.generate throws incorrectParameterSize for messages that are not 32 bytes. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Behavior changed** `Schnorr.PartialSignature`  

PartialSignature now uses the 32-byte musig partial sig serialization and adds publicKey and nonce members. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Signature changed** `aggregateSignatures`  

Aggregation now requires the aggregate nonce and key aggregate, and throws invalidMuSigContribution for a foreign partial. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Signature changed** `HashDigest.init`  

HashDigest.init now throws incorrectParameterSize for any input that is not exactly 32 bytes. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Signature changed** `isValid`  

isValid(\_:for:) takes some ContiguousBytes, so drop the & before the message argument. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Signature changed** `isValidSignature`  

Verification now takes the signing session inputs and throws invalidMuSigContribution for a foreign partial contribution. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Signature changed** `Recovery.PublicKey.init`  

The initializer now throws secp256k1Error.underlyingCryptoError instead of aborting, so callers must handle the error with try. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **Signature changed** `Schnorr.signature`  

signature(message:) now requires exactly 32 bytes and throws otherwise. Use signature(customMessage:) for other lengths. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)
- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.25.0)

## github.com/21-dot-dev/swift-secp256k1 0.24.0 breaking changes

github.com/21-dot-dev/swift-secp256k1 0.24.0, released October 19, 2026: 7 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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.24.0)
- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.24.0)
- **Behavior changed** `P256K.MuSig`  

Both MuSig tweak methods now throw secp256k1Error.incorrectParameterSize on non-32-byte tweak inputs. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.24.0)
- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.24.0)
- **Behavior changed** `P256K.MuSig.partialSignature`  

partialSignature(for:...) now throws secp256k1Error.incorrectParameterSize on non-32-byte digest inputs. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.24.0)
- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.24.0)
- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.24.0)

## github.com/21-dot-dev/swift-secp256k1 0.22.0 breaking changes

github.com/21-dot-dev/swift-secp256k1 0.22.0, released March 5, 2026: 1 breaking change.

- **Signature changed**  

An argument label was fixed, so code calling the affected function with the old label must use the corrected label. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.22.0)

## github.com/21-dot-dev/swift-secp256k1 0.20.0 breaking changes

github.com/21-dot-dev/swift-secp256k1 0.20.0, released April 24, 2025: 1 breaking change.

- **Renamed** `secp256k1`  

The primary module name changed from secp256k1 to P256K. Update import statements and code references to use P256K. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.20.0)

## github.com/21-dot-dev/swift-secp256k1 0.13.0 breaking changes

github.com/21-dot-dev/swift-secp256k1 0.13.0: 1 breaking change.

- **Behavior changed**  

The package now requires Swift 5.8 or later, so projects on older Swift toolchains must upgrade before updating. [github.com](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.13.0)

## github.com/21-dot-dev/swift-secp256k1 0.11.0 breaking changes

github.com/21-dot-dev/swift-secp256k1 0.11.0: 1 breaking change.

- **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](https://github.com/21-DOT-DEV/swift-secp256k1/releases/tag/0.11.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
