edge-core-js
Advanced tools
Comparing version 0.9.12 to 0.9.13
# edge-core-js | ||
## 0.9.13 | ||
* Pass options to `EdgeCurrencyPlugin.createPrivateKeys`. | ||
## 0.9.12 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "edge-core-js", | ||
"version": "0.9.12", | ||
"version": "0.9.13", | ||
"description": "Edge account & wallet management library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -354,4 +354,9 @@ // @flow | ||
export type EdgeCreateCurrencyWalletOptions = { | ||
fiatCurrencyCode?: string, | ||
name?: string, | ||
fiatCurrencyCode?: string, | ||
// Used to tell the currency plugin what keys to create: | ||
keyOptions?: EdgeCreatePrivateKeyOptions, | ||
// Used to copy wallet keys between accounts: | ||
keys?: {} | ||
@@ -777,6 +782,17 @@ } | ||
export type EdgeBitcoinPrivateKeyOptions = { | ||
format?: string, | ||
coinType?: number, | ||
account?: number | ||
} | ||
export type EdgeCreatePrivateKeyOptions = {} | EdgeBitcoinPrivateKeyOptions | ||
export type EdgeCurrencyPlugin = { | ||
+pluginName: string, | ||
+currencyInfo: EdgeCurrencyInfo, | ||
createPrivateKey(walletType: string): Object, | ||
createPrivateKey( | ||
walletType: string, | ||
opts?: EdgeCreatePrivateKeyOptions | ||
): Object, | ||
derivePublicKey(walletInfo: EdgeWalletInfo): Object, | ||
@@ -783,0 +799,0 @@ makeEngine( |
@@ -489,3 +489,3 @@ // @flow | ||
const plugin = getCurrencyPlugin(ai.props.output.currency.plugins, type) | ||
const keys = opts.keys || plugin.createPrivateKey(type) | ||
const keys = opts.keys || plugin.createPrivateKey(type, opts.keyOptions) | ||
const walletInfo = makeStorageKeyInfo(ai, type, keys) | ||
@@ -492,0 +492,0 @@ const kit = makeKeysKit(ai, login, fixWalletInfo(walletInfo)) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
5149329
57661