UNPKG

elliptic-keychain

Version:

Library for creating elliptic curve keypairs and deriving child keys

18 lines (13 loc) 320 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); require('core-js/shim'); var _crypto = require('crypto'); function getEntropy(numberOfBytes) { if (!numberOfBytes) numberOfBytes = 32; return (0, _crypto.randomBytes)(numberOfBytes); } exports.default = { getEntropy: getEntropy };