@helium/crypto-react-native
Advanced tools
Comparing version 3.3.0 to 3.4.0
@@ -5,2 +5,3 @@ /// <reference types="node" /> | ||
constructor(words: Array<string>); | ||
static create(): Promise<Mnemonic>; | ||
static fromEntropy(entropy: Buffer): Mnemonic; | ||
@@ -7,0 +8,0 @@ toEntropy(): Buffer; |
@@ -12,2 +12,6 @@ "use strict"; | ||
} | ||
static async create() { | ||
const entropy = await utils_1.randomBytes(16); | ||
return Mnemonic.fromEntropy(entropy); | ||
} | ||
static fromEntropy(entropy) { | ||
@@ -14,0 +18,0 @@ if (entropy.length < 16) |
{ | ||
"name": "@helium/crypto-react-native", | ||
"version": "3.3.0", | ||
"version": "3.4.0", | ||
"description": "Cryptography utilities including mnemonics, keypairs and base58-check encoding for React Native", | ||
@@ -39,3 +39,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "bc6208340a7ac23ec96b1242731932d16927bfb4" | ||
"gitHead": "dacd186426fd39b9b69336fab6ee0ac3aa422248" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
64456
2364