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.

27 lines (24 loc) 668 B
import os from 'os'; import path from 'path'; const defaultTargetPath = `${path.join(os.homedir(), 'ssv-keys')}${path.sep}`; export default { arg1: '-of', arg2: '--output-folder', options: { type: String, required: false, default: defaultTargetPath, help: `Target folder path to output the key shares file. Default: ${defaultTargetPath}` }, interactive: { options: { type: 'text', message: 'Please provide a target path to generate the output to', initial: defaultTargetPath, validate: (value: string) => { value = value.trim(); return !value ? 'Invalid target path' : true; } } } };