Skip to content

Commit

Permalink
generateKeyPairBySeed
Browse files Browse the repository at this point in the history
  • Loading branch information
Or Bachar committed Nov 21, 2019
1 parent ba83fd5 commit 62ce03d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/plugins/eos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 62ce03d

Please sign in to comment.