UNPKG

shamirs-secret-sharing-ts

Version:

A simple implementation of Shamir's Secret Sharing configured to use a finite field in GF(2^8) with 128 bit padding

9 lines (8 loc) 469 B
/// <reference types="node" /> declare function pad(text: string, multiple?: number): string; declare function hex(buffer: any, encoding?: string): string; declare function bin(buffer: any, radix?: number): string; declare function encode(id: any, data: any): Buffer; declare function decode(buffer: any, encoding?: string): Buffer; declare function split(string: any, padding?: number, radix?: number): any[]; export { encode, decode, split, bin, hex, pad, };