---
title: "nkeys 0.6.0 Breaking Changes on crates.io | Since.dev"
description: "What each nkeys release removed, renamed or changed: 8 breaking changes in 2 versions on crates.io, each with its source."
canonical_url: https://since.dev/packages/crates/nkeys
last_updated: 2026-12-04
---

# nkeys breaking changes

nkeys 0.6.0 (November 30, 2026) is its newest release with breaking changes, 5 of them. The first: Behavior changed KeyPair.from_public_key. Every breaking API change we have recorded in nkeys on crates.io: 8 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `0.6.0`, released November 30, 2026. [Source repository](https://github.com/wasmcloud/nkeys)

Packages on crates.io run on Rust. [Rust end of life dates](https://since.dev/calendar/rust.md).

- From [0.5.0](#v-0-5-0) to [0.6.0](#v-0-6-0): 5 breaking changes in 1 version.

## nkeys 0.6.0 breaking changes

nkeys 0.6.0, released November 30, 2026: 5 breaking changes.

- **Behavior changed** `KeyPair.from_public_key`  

Curve public keys now return an IncorrectKeyType error instead of being treated as Ed25519. Use XKey for curve keys. [github.com](https://github.com/wasmCloud/nkeys/commit/bdafd6e7d15f12d4de31979043c3ba477bca4bff)
- **Behavior changed** `KeyPair.from_seed`  

Seeds for curve key types now return an IncorrectKeyType error instead of being treated as Ed25519. Use XKey for curve keys. [github.com](https://github.com/wasmCloud/nkeys/commit/bdafd6e7d15f12d4de31979043c3ba477bca4bff)
- **Behavior changed** `KeyPair.new_from_raw`  

Curve key types now return an IncorrectKeyType error from new_from_raw. Use XKey for curve keys. [github.com](https://github.com/wasmCloud/nkeys/commit/bdafd6e7d15f12d4de31979043c3ba477bca4bff)
- **Behavior changed** `KeyPairType.from_str`  

Unrecognized strings used to become KeyPairType::Module; they now return an IncorrectKeyType error listing valid names. Code relying on the old fallback must handle the error. [github.com](https://github.com/wasmCloud/nkeys/commit/a711a88ee6387f08bc7f6db245ccfed9bb981c05)
- **Signature changed** `nkeys::KeyPair::new`  

KeyPair::new returns Result\<KeyPair> and reports IncorrectKeyType for curve keys instead of panicking. Callers must handle the Result or use the type-specific constructors. [crates.io](https://crates.io/crates/nkeys/0.6.0)

## nkeys 0.5.0 breaking changes

nkeys 0.5.0, released November 30, 2026: 3 breaking changes.

- **Behavior changed**  

Signature verification is now strict and returns a VerifyError kind in nkeys 0.5.0 [github.com](https://github.com/wasmCloud/nkeys/releases/tag/v0.5.0)
- **Signature changed** `nkeys::XKey::new_with_rand`  

Was fn new_with_rand(rand: &mut (impl CryptoRng + RngCore)) -> Self; now fn new_with_rand(rand: &mut impl CryptoRng) -> Self. [crates.io](https://crates.io/crates/nkeys/0.5.0)
- **Signature changed** `nkeys::XKey::seal_with_rand`  

Was fn seal_with_rand(&self, input: &\[u8\], recipient: &Self, rand: impl CryptoRng + RngCore) -> Result\<Vec\<u8>>; now fn seal_with_rand(&self, input: &\[u8\], recipient: &Self, mut rand: impl CryptoRng) -> Result\<Vec\<u8>>. [crates.io](https://crates.io/crates/nkeys/0.5.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.
