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"
|
"types"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/node": "11.11.6",
|
"react-native-crypto": "^2.2.0",
|
||||||
"buffer": "^5.4.3",
|
"safe-buffer": "^5.2.0"
|
||||||
"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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,15 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
const createHash = require("create-hash");
|
|
||||||
const Buffer = require('buffer/').Buffer
|
|
||||||
const INVALID_MNEMONIC = 'Invalid mnemonic';
|
const INVALID_MNEMONIC = 'Invalid mnemonic';
|
||||||
const INVALID_ENTROPY = 'Invalid entropy';
|
const INVALID_ENTROPY = 'Invalid entropy';
|
||||||
const INVALID_CHECKSUM = 'Invalid mnemonic checksum';
|
const INVALID_CHECKSUM = 'Invalid mnemonic checksum';
|
||||||
const WORDLIST_REQUIRED = 'A wordlist is required but a default could not be found.\n' +
|
const WORDLIST_REQUIRED = 'A wordlist is required but a default could not be found.\n' +
|
||||||
'Please explicitly pass a 2048 word array explicitly.';
|
'Please explicitly pass a 2048 word array explicitly.';
|
||||||
|
|
||||||
|
var createHash = require('react-native-crypto').createHash;
|
||||||
|
var Buffer = require('safe-buffer').Buffer;
|
||||||
|
|
||||||
function normalize(str) {
|
function normalize(str) {
|
||||||
return (str || '').normalize('NFKD');
|
return (str || '').normalize('NFKD');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue