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

10 lines (9 loc) 241 B
/// <reference types="node" /> /** * Reconstruct a secret from a distinct set of shares. * @public * @param {Array<String|Buffer>} shares * @return {Buffer} */ declare function combine(shares: any): Buffer; export { combine };