react-native-crypto

This commit is contained in:
Andrey Shovkoplyas 2019-11-06 16:03:47 +01:00
parent b6979a3432
commit 9f8525d812
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
3 changed files with 191 additions and 1655 deletions

1823
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -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"
}
}

View File

@ -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');
}