UNPKG

viem

Version:

TypeScript Interface for Ethereum

9 lines 402 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.generatePrivateKey = generatePrivateKey; const secp256k1_1 = require("@noble/curves/secp256k1"); const toHex_js_1 = require("../utils/encoding/toHex.js"); function generatePrivateKey() { return (0, toHex_js_1.toHex)(secp256k1_1.secp256k1.utils.randomPrivateKey()); } //# sourceMappingURL=generatePrivateKey.js.map