Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Function shamirSplit

    • Split a secret into N shares where any M can reconstruct it. Uses polynomial interpolation over a finite field.

      Secret = f(0), shares = f(1), f(2), ..., f(N) where f is a random polynomial of degree M-1.

      Parameters

      • secret: bigint
      • threshold: number
      • totalShares: number

      Returns ShamirShare[]