@blockchaincommons/shamir - v1.0.0-beta.3
    Preparing search index...

      @blockchaincommons/shamir - v1.0.0-beta.3

      @blockchaincommons/shamir - Shamir's Secret Sharing over GF(2^8) with a four-byte HMAC checksum, the scheme SSKR is built on.

      splitSecret turns a 16–32 byte secret into shareCount ShamirShares, any threshold of which recoverSecret turns back. Validation and checksum failures throw ShamirError. Its codes include the reference's eight variants and InvalidParameter for a threshold, shareCount or share index that is not a usize (a safe non-negative integer number, or a bigint in [0, 2^64 - 1]) and for an argument of the wrong type. Randomness is drawn through @blockchaincommons/rand, so a generator's own error, including rand's RandError for a malformed generator, propagates unwrapped.

      ShamirError
      ShamirShareInput
      ShamirShare
      SplitOptions
      ShamirErrorCode
      ShamirParameter
      ShamirErrorDetails
      MIN_SECRET_LENGTH
      MAX_SECRET_LENGTH
      MAX_SHARE_COUNT
      splitSecret
      recoverSecret