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.
13 lines (12 loc) • 355 B
TypeScript
import { IShares } from '../Threshold';
export interface EncryptShare {
operatorPublicKey: string;
privateKey: string;
publicKey: string;
}
export default class Encryption {
private readonly operatorPublicKeys;
private readonly shares;
constructor(operatorPublicKeys: string[], shares: IShares[]);
encrypt(): EncryptShare[];
}