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

    Interface ShamirShareInput

    A share handed to recoverSecret: its x-coordinate and the y-bytes. Both are wire.

    interface ShamirShareInput {
        index: number | bigint;
        data: Uint8Array;
    }

    Hierarchy (View Summary)

    Index
    index: number | bigint

    The x-coordinate: a safe non-negative integer number, or a bigint in [0, 2^64 - 1] for values a number cannot hold exactly. Recovery narrows it to its low eight bits, as the reference's as u8 does, so 256 names the same point as 0.

    data: Uint8Array

    The y-bytes; every share of one split has the secret's length.