• Split secret into the given number of raw shares, threshold number of which can be used with combineRaw() to recover it.

    It is recommended to use split(), which produces robust shares with identifier and hash of secret.

    Parameters

    • secret: Uint8Array
    • threshold: number
    • totalShares: number
    • Optionalprng: RandomSource

    Returns Uint8Array[]