---
title: "@scure/bip32 2.4.0 Breaking Changes on npm | Since.dev"
description: "What each @scure/bip32 release removed, renamed or changed: 16 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@scure/bip32
last_updated: 2026-12-04
---

# @scure/bip32 breaking changes

@scure/bip32 2.4.0 (August 28, 2026) is its newest release with breaking changes, 12 of them. The first: Removed \_\_TESTS. Every breaking API change we have recorded in @scure/bip32 on npm: 16 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.4.0`, released August 28, 2026. [Source repository](https://github.com/paulmillr/scure-bip32)

Its 2.0.0 release requires Node.js 20.19 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.0](#v-2-0-0) to [2.4.0](#v-2-4-0): 13 breaking changes in 2 versions.

## @scure/bip32 2.4.0 breaking changes

@scure/bip32 2.4.0, released August 28, 2026: 12 breaking changes.

- **Removed** `__TESTS`  

\_\_TESTS was removed in @scure/bip32 2.4.0 [npmjs.com](https://www.npmjs.com/package/@scure/bip32/v/2.4.0)
- **Behavior changed** `chainCode`  

chainCode now returns a copy of the buffer rather than the live internal buffer, so code that mutated or relied on the shared buffer must change. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.4.0)
- **Behavior changed** `derive`  

derive(path) now throws before deriving if the path would exceed the maximum serializable depth of 255. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.4.0)
- **Behavior changed** `deriveChild`  

deriveChild no longer swallows all errors; only specific errors are retried, and other errors now propagate to the caller. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.4.0)
- **Behavior changed** `fromExtendedKey`  

fromExtendedKey now throws for checksum-valid payloads that are not exactly 78 bytes, which it previously accepted. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.4.0)
- **Behavior changed** `HDKey`  

The HDKey constructor now throws RangeError for depth outside 0..255 or non-integer depth, and rejects invalid uint32 index or parentFingerprint and chainCode not exactly 32 bytes. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.4.0)
- **Behavior changed** `identifier`  

identifier now returns a copy of the buffer rather than the live internal buffer, so code that mutated or relied on the shared buffer must change. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.4.0)
- **Behavior changed** `privateKey`  

privateKey now returns a copy of the buffer rather than the live internal buffer, so code that mutated or relied on the shared buffer must change. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.4.0)
- **Behavior changed** `pubKeyHash`  

pubKeyHash now returns a copy of the buffer rather than the live internal buffer, so code that mutated or relied on the shared buffer must change. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.4.0)
- **Behavior changed** `publicKey`  

publicKey now returns a copy of the buffer rather than the live internal buffer, so code that mutated or relied on the shared buffer must change. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.4.0)
- **Signature changed** `HDKey.deriveChild`  

Was deriveChild(index: number, \_I?: Uint8Array): HDKey; now deriveChild(index: number): HDKey. [npmjs.com](https://www.npmjs.com/package/@scure/bip32/v/2.4.0)
- **Signature changed** `HDKey.fromJSON`  

Was static fromJSON(json: {xpriv: string;}): HDKey; now static fromJSON(json: {xpriv: string;} | {xpub: string;}): HDKey. [npmjs.com](https://www.npmjs.com/package/@scure/bip32/v/2.4.0)

## @scure/bip32 2.2.0 breaking changes

@scure/bip32 2.2.0, released April 21, 2026: 1 breaking change.

- **Signature changed** `HDKey.deriveChild`  

Was deriveChild(index: number): HDKey; now deriveChild(index: number, \_I?: Uint8Array): HDKey. [npmjs.com](https://www.npmjs.com/package/@scure/bip32/v/2.2.0)

## @scure/bip32 2.0.0 breaking changes

@scure/bip32 2.0.0, released August 25, 2025: 3 breaking changes.

- **Behavior changed**  

Keys with a depth over 255 are now prohibited to match the BIP32 spec. Code that creates or loads such keys will no longer work. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.0.0)
- **Behavior changed**  

The package now ships only as ESM. Code that loads it with CommonJS require must switch to ESM import syntax. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.0.0)
- **Behavior changed**  

Node.js v20.19 is now the minimum supported version. Older Node.js versions must be upgraded before using this release. [github.com](https://github.com/paulmillr/scure-bip32/releases/tag/2.0.0)

## Related packages

- [@scure/base](https://since.dev/packages/npm/@scure/base.md)
- [@scure/bip39](https://since.dev/packages/npm/@scure/bip39.md)

## 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.
