mirror of https://github.com/status-im/bip39.git
react-native-crypto
This commit is contained in:
parent
b6979a3432
commit
9f8525d812
File diff suppressed because it is too large
Load Diff
16
package.json
16
package.json
|
@ -35,19 +35,7 @@
|
|||
"types"
|
||||
],
|
||||
"dependencies": {
|
||||
"@types/node": "11.11.6",
|
||||
"buffer": "^5.4.3",
|
||||
"create-hash": "^1.1.0",
|
||||
"stream": "^0.0.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/create-hash": "1.2.0",
|
||||
"node-fetch": "^1.6.3",
|
||||
"nyc": "^14.1.1",
|
||||
"prettier": "1.16.4",
|
||||
"proxyquire": "^1.7.10",
|
||||
"tape": "^4.6.2",
|
||||
"tslint": "5.14.0",
|
||||
"typescript": "3.3.4000"
|
||||
"react-native-crypto": "^2.2.0",
|
||||
"safe-buffer": "^5.2.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,12 +1,15 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const createHash = require("create-hash");
|
||||
const Buffer = require('buffer/').Buffer
|
||||
|
||||
const INVALID_MNEMONIC = 'Invalid mnemonic';
|
||||
const INVALID_ENTROPY = 'Invalid entropy';
|
||||
const INVALID_CHECKSUM = 'Invalid mnemonic checksum';
|
||||
const WORDLIST_REQUIRED = 'A wordlist is required but a default could not be found.\n' +
|
||||
'Please explicitly pass a 2048 word array explicitly.';
|
||||
|
||||
var createHash = require('react-native-crypto').createHash;
|
||||
var Buffer = require('safe-buffer').Buffer;
|
||||
|
||||
function normalize(str) {
|
||||
return (str || '').normalize('NFKD');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue