Blockchain Commons Components TypeScript Library - v1.0.0-alpha.13
    Preparing search index...

    Function sskrGenerateSharesUsing

    • Generates SSKR shares using a custom random number generator.

      This function matches the Rust sskr_generate_using API by returning wrapped SSKRShare objects and allowing a custom RNG for deterministic testing.

      Parameters

      • spec: SSKRSpec

        The SSKRSpec instance defining group/member thresholds

      • masterSecret: SSKRSecret

        The SSKRSecret to be split into shares

      • rng: SimpleRng

        Random number generator (must have fillRandomData method)

      Returns SSKRShareCbor[][]

      Nested array of SSKRShare instances (groups × members)