@stellot/crypto
Version:
Crypto libraries for front and backend
13 lines (12 loc) • 485 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.randomScalar = void 0;
const bn_js_1 = __importDefault(require("bn.js"));
const randombytes_1 = __importDefault(require("randombytes"));
function randomScalar() {
return new bn_js_1.default(randombytes_1.default(32));
}
exports.randomScalar = randomScalar;