@defichain/jellyfish-wallet
Advanced tools
Comparing version 0.28.0 to 0.29.0
@@ -8,3 +8,3 @@ /// <reference types="node" /> | ||
* Accounts are numbered, the default account ("") being number 0. | ||
* Account are derived from root and the pubkey to be used is `44'/1129'/${account}'/0/0` | ||
* Account are derived from root and the pubkey to be used is `${account}/0/0` | ||
* | ||
@@ -11,0 +11,0 @@ * WalletAccount implementation uses NATIVE SEGWIT redeem script exclusively. |
@@ -19,3 +19,3 @@ "use strict"; | ||
* Accounts are numbered, the default account ("") being number 0. | ||
* Account are derived from root and the pubkey to be used is `44'/1129'/${account}'/0/0` | ||
* Account are derived from root and the pubkey to be used is `${account}/0/0` | ||
* | ||
@@ -22,0 +22,0 @@ * WalletAccount implementation uses NATIVE SEGWIT redeem script exclusively. |
@@ -14,6 +14,2 @@ "use strict"; | ||
/** | ||
* DFI CoinType | ||
*/ | ||
const COIN_TYPE = 1129; | ||
/** | ||
* Jellyfish managed wallet. | ||
@@ -37,3 +33,3 @@ * WalletHdNode instance is provided by WalletHdNodeProvider. | ||
get(account) { | ||
const path = `44'/${COIN_TYPE}'/${account}'/0/0`; | ||
const path = `${account}/0/0`; | ||
const node = this.nodeProvider.derive(path); | ||
@@ -40,0 +36,0 @@ return this.accountProvider.provide(node); |
{ | ||
"private": false, | ||
"name": "@defichain/jellyfish-wallet", | ||
"version": "0.28.0", | ||
"version": "0.29.0", | ||
"description": "A collection of TypeScript + JavaScript tools and libraries for DeFi Blockchain developers to build decentralized finance on Bitcoin", | ||
@@ -41,7 +41,7 @@ "keywords": [ | ||
"dependencies": { | ||
"@defichain/jellyfish-address": "^0.28.0", | ||
"@defichain/jellyfish-crypto": "^0.28.0", | ||
"@defichain/jellyfish-network": "^0.28.0", | ||
"@defichain/jellyfish-transaction": "^0.28.0" | ||
"@defichain/jellyfish-address": "^0.29.0", | ||
"@defichain/jellyfish-crypto": "^0.29.0", | ||
"@defichain/jellyfish-network": "^0.29.0", | ||
"@defichain/jellyfish-transaction": "^0.29.0" | ||
} | ||
} |
@@ -10,4 +10,5 @@ [](https://www.npmjs.com/package/@defichain/jellyfish-wallet/v/latest) | ||
Jellyfish wallet is a managed wallet, where account can get discovered from an HD seed. Accounts in jellyfish-wallet, | ||
has only one address for simplicity. Accounts path are derived from seed with path: `44'/1129'/{ACCOUNT}/0/0`. It uses a | ||
provider model where the node and account is agnostic and provided on demand to the managed wallet. | ||
has only one address for simplicity. Accounts path are derived from seed with path: `{ACCOUNT}/0/0`. Non-hardened path | ||
is used to allow encrypted wallet implementation where only xpubkey is required. It uses a provider model where the node | ||
and account is agnostic and provided on demand to the managed wallet. | ||
@@ -14,0 +15,0 @@ Being a managed wallet design it uses must use conventional defaults and options must be kept to none. Address must stay |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
35
22877
25
333
0
+ Added@defichain/jellyfish-address@0.29.1(transitive)
+ Added@defichain/jellyfish-crypto@0.29.1(transitive)
+ Added@defichain/jellyfish-network@0.29.1(transitive)
+ Added@defichain/jellyfish-transaction@0.29.1(transitive)
- Removed@defichain/jellyfish-address@0.28.0(transitive)
- Removed@defichain/jellyfish-crypto@0.28.0(transitive)
- Removed@defichain/jellyfish-network@0.28.0(transitive)
- Removed@defichain/jellyfish-transaction@0.28.0(transitive)