Crypto Lib
    Preparing search index...

    Function splitSecretWithCommitments

    • Helper: split a secret and generate Feldman commitments in one step.

      Parameters

      • secret: string

        Hex-encoded 32-byte secret.

      • n: number

        Total number of shares.

      • threshold: number

        Minimum shares for reconstruction.

      Returns { shares: Share[]; commitments: FeldmanCommitments; threshold: number }

      Shares and commitments for verifiable secret sharing.

      • shares: Share[]

        Generated shares for distribution.

      • commitments: FeldmanCommitments

        Feldman VSS commitments for share verification.

      • threshold: number

        Minimum shares required for reconstruction.