Skip to content

Commit

Permalink
Make the change non-breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
JST5000 committed Jul 18, 2023
1 parent a8d3a93 commit 9d06e03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions packages/ripple-keypairs/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

### Breaking
- Fixed `deriveKeypair` ignoring the explicitly set `algorithm` for decoding the seed

## 1.3.0 (2023-06-13)
### Added
* Adds support for npm v9
Expand Down
6 changes: 3 additions & 3 deletions packages/xrpl/src/Wallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ export class Wallet {
seed: string,
opts: { masterAddress?: string; algorithm?: ECDSA } = {},
): Wallet {
const { publicKey, privateKey } = deriveKeypair(seed, {
algorithm: opts.algorithm ?? DEFAULT_ALGORITHM,
})
// TODO: Re-add { algorithm: opts.algorithm ?? DEFAULT_ALGORITHM } as an optional parameter
// To deriveKeypair as part of the next breaking version change to actually have an ed25519 default.
const { publicKey, privateKey } = deriveKeypair(seed)
return new Wallet(publicKey, privateKey, {
seed,
masterAddress: opts.masterAddress,
Expand Down

0 comments on commit 9d06e03

Please sign in to comment.