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

    Interface SplitOptions

    Options for splitSecret; rng is rand's option, secure by default.

    interface SplitOptions {
        threshold: number | bigint;
        shareCount: number | bigint;
    }

    Hierarchy

    • RngOptions
      • SplitOptions
    Index
    threshold: number | bigint

    Shares needed to recover; 1 ≤ threshold ≤ shareCount. A safe-integer number or a bigint.

    shareCount: number | bigint

    Shares produced; at most MAX_SHARE_COUNT. A safe-integer number or a bigint.