From 62ce03da6f64a6ca3e6c29735d306bd79f307eb2 Mon Sep 17 00:00:00 2001 From: Or Bachar Date: Thu, 21 Nov 2019 15:01:37 +0200 Subject: [PATCH] generateKeyPairBySeed --- src/plugins/eos.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/eos.ts b/src/plugins/eos.ts index 779df1f..4610925 100644 --- a/src/plugins/eos.ts +++ b/src/plugins/eos.ts @@ -26,9 +26,14 @@ export function getKeyPairBySeed(seed): IKeyPair { } export interface IEosPlugin extends IPlugin { signTransactionBySignatureProvider(...args): any; + generateKeyPairBySeed(seed: string): IKeyPair; } export const plugin: IEosPlugin = { + generateKeyPairBySeed(seed: string) { + return getKeyPairBySeed(seed); + }, + createWalletByMnemonic(mnemonic) { const seed = bip39.mnemonicToSeed(mnemonic); const keyPair = getKeyPairBySeed(seed);