Skip to content

Releases: MetaMask/key-tree

10.0.1

27 Nov 10:02
2f91bdd
Compare
Choose a tag to compare

Fixed

  • Export CryptographicFunctions type (#202)

10.0.0

26 Nov 14:04
e1a4262
Compare
Choose a tag to compare

Added

  • Add network property to SLIP10Node, BIP44Node, and BIP44CoinTypeNode (#200)
    • The network property is only used to determine which BIP-32 extended key version to use.
    • For backwards compatibility, the property is optional, and defaults to mainnet.
  • Add option for custom cryptographic functions (#197)
    • It's now possible to specify custom functions (hmacSha512 and pbkdf2Sha512) to improve performance.
  • Add extendedKey property to SLIP10Node (#196)
    • This property can only be accessed on SLIP10Nodes using secp256k1.

Changed

  • BREAKING: Bump minimum Node version to 18.20 (#198)
  • Use WebCrypto API if available (#197)
  • Bump @metamask/utils from 9.0.0 to 9.3.0 (#191)

9.1.2

09 Jul 21:22
38dd0de
Compare
Choose a tag to compare

Changed

  • Bump @metamask/utils from ^8.3.0 to ^9.0.0 (#181)

9.1.1

21 May 15:58
ba27860
Compare
Choose a tag to compare

Fixed

  • Fix ESM imports (#177)

9.1.0

15 May 11:41
9b9a98f
Compare
Choose a tag to compare

Added

  • Add support for Cardano key derivation according to CIP3-Icarus (#158, #170, #171, #172)
  • Export getBIP44CoinTypeToAddressPathTuple function (#173)

Changed

  • Replace @noble/ed25519 and @noble/secp256k1 with @noble/curves (#154)
  • Bump several MetaMask dependencies (#151, #165, #167)

9.0.0

14 Jul 12:18
c81212b
Compare
Choose a tag to compare

Changed

  • BREAKING: Disallow importing from ./dist paths (#147)
  • Export mnemonicPhraseToBytes and createBip39KeyFromSeed (#149)

Fixed

  • Add support for Node.js with ESM (#147)
  • Remove postinstall script (#146)
    • This caused installation to fail.

8.0.0

12 Jul 10:11
8b04a9b
Compare
Choose a tag to compare

Changed

  • BREAKING: Build the package as both CJS and ESM (#140)
    • Distribution files have been moved from dist to dist/cjs (and dist/esm). If you are explicitly importing from dist, you have to update the import.
  • Bump @metamask/utils to 6.2.0 (#140)

7.1.1

20 Jun 17:01
be4fe27
Compare
Choose a tag to compare

Fixed

  • Fix isValidBIP32PathSegment to correctly check if BIP-32 path segment is <= 2^31-1 (#134)

7.1.0

20 Jun 08:33
32db371
Compare
Choose a tag to compare

Added

  • Add isValidBIP32PathSegment function (#131)

Changed

  • Bump @metamask/utils to 6.0.1 (#132)

7.0.0

10 Mar 10:49
d124726
Compare
Choose a tag to compare

Added

  • BREAKING: Add SLIP-10 (slip10:) path type (#124)
    • bip32: can no longer be used to derive ed25519 keys

Changed

  • Handle errors when resulting public or private key is invalid (#120)
    • Rather than throwing an error, a new key will be derived instead, as per the SLIP-10 or BIP-32 specification
  • Improve extended key validation (#121)
  • Validate that master private key and seed are within bounds (#118)
  • Allow zero private key for ed25519 (#122)
    • Previously a zero private key 0x000..000 would be rejected when using ed25519, but all private keys are valid for ed25519