UNPKG

ssv-keys

Version:

Tool for splitting a validator key into a predefined threshold of shares via Shamir-Secret-Sharing (SSS), and encrypt them with a set of operator keys.

30 lines (25 loc) 560 B
#!/usr/bin/env node const { nodeExternalsPlugin } = require('esbuild-node-externals'); const options = { tsconfig: 'tsconfig.json', logLevel: "info", entryPoints: [ "src/main.ts", "src/lib/JSEncrypt/jsencrypt.bundle.js" ], platform: 'node', minify: true, bundle: true, outdir: "dist/esbuild", sourcemap: "external", plugins: [ nodeExternalsPlugin({}), ], }; console.debug('Final build config: ', { options }); require("esbuild") .build(options) .catch((error) => { console.error(error); process.exit(1); });