UNPKG

ssv-keys

Version:

CLI 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.

81 lines (80 loc) 2.54 kB
{ "name": "ssv-keys", "version": "2.0.0", "description": "CLI 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.", "author": "SSV.Labs", "repository": "https://github.com/ssvlabs/ssv-keys", "license": "GNU General Public License v3.0", "keywords": [ "ssv", "ssv.labs", "keystore", "shares" ], "bin": { "ssv-keys": "./dist/cli.js" }, "engines": { "node": ">=22" }, "exports": { ".": { "import": "./dist/cli.mjs", "require": "./dist/cli.js" } }, "pkg": { "assets": [ "fonts/*.flf", "node_modules/*", "node_modules/lodash/**/*.js", "node_modules/crypto/**/*.js", "node_modules/lodash-es/**/*.js" ] }, "scripts": { "dev:cli": "npx tsx src/cli.ts", "dev:icli": "npx tsx src/cli-interactive.ts", "icli": "node ./dist/cli-interactive.js", "cli": "node ./dist/cli.js", "test": "vitest run", "lint": "eslint src/ --ext .js,.jsx,.ts,.tsx", "clean": "rm -rf dist build package", "ts-node": "ts-node", "build": "vite build", "build-all": "pnpm run clean && pnpm run build", "pre-commit": "pnpm run lint && pnpm run build-all", "build:ts": "tsc", "package-all": "pnpm run package-linux && pnpm run package-macos && pnpm run package-win", "package-linux": "pkg dist/cli-interactive.js --targets node22-linux-x64 --output bin/linux/ssv-keys-lin --compress GZip", "package-macos": "pkg dist/cli-interactive.js --targets node22-macos-x64 --output bin/macos/ssv-keys-mac --compress GZip", "package-win": "pnpm build && pkg dist/cli-interactive.js --targets node22-win-x64 --output bin/win/ssv-keys.exe --compress GZip" }, "devDependencies": { "@types/argparse": "2.0.17", "@types/node": "24.0.12", "@types/prompts": "2.4.9", "@typescript-eslint/eslint-plugin": "8.36.0", "@typescript-eslint/parser": "8.36.0", "@yao-pkg/pkg": "6.5.1", "eslint": "9.30.1", "husky": "9.1.7", "ts-node": "10.9.2", "tsx": "4.20.3", "typescript": "5.8.3", "vite": "7.0.3" }, "dependencies": { "@chainsafe/bls-keystore": "^3.1.0", "@ssv-labs/ssv-sdk": "0.1.0", "@types/node-forge": "^1.3.11", "argparse": "^2.0.1", "assert": "^2.1.0", "colors": "^1.4.0", "events": "^3.3.0", "moment": "^2.30.1", "node-forge": "^1.3.1", "prompts": "https://github.com/ssvlabs/prompts.git", "vitest": "^3.2.4" } }