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.

22 lines (18 loc) 541 B
import { IOperator } from './IOperator'; import { IOperatorData } from './IOperatorData'; export interface IKeySharesData { ownerNonce?: number | null; ownerAddress?: string | null; publicKey?: string | null; operators?: IOperatorData[] | null; update(data: any): any; validate(): void; get operatorIds(): number[]; get operatorPublicKeys(): string[]; } export interface IKeySharesPartialData { ownerNonce?: number | null; ownerAddress?: string | null; publicKey?: string | null; operators?: IOperator[] | null; }