FROST P-256 TypeScript Library - v0.2.2-alpha.3
    Preparing search index...

    Class SecretShare<C>

    A secret share generated by performing a (t-out-of-n) secret sharing scheme, generated by a dealer performing generateWithDealer.

    n is the total number of shares and t is the threshold required to reconstruct the secret; in this case we use Shamir's secret sharing.

    As a solution to the secret polynomial f (a 'point'), the identifier is the x-coordinate, and the value is the y-coordinate.

    To derive a FROST keypair, the receiver of the SecretShare must call toKeyPackage(), which under the hood also performs validation.

    Type Parameters

    Index

    Constructors

    Properties

    identifier: Identifier<C>

    The participant identifier of this SecretShare

    signingShare: SigningShare<C>

    Secret Key (signing share)

    The commitments to be distributed among signers

    Methods

    • Verifies that a secret share is consistent with a verifiable secret sharing commitment, and returns the derived group info for the participant (their public verification share, and the group public key) if successful.

      This ensures that this participant's share has been generated using the same mechanism as all other signing participants. Note that participants MUST ensure that they have the same view as all other participants of the commitment!

      An implementation of vss_verify() from the spec. This also implements derive_group_info() from the spec (which is very similar), but only for this participant.

      Returns [VerifyingShare<C>, C["Element"]]

      A tuple of [VerifyingShare, verifying key element]

      If verification fails

    • Convert this SecretShare to a KeyPackage after verification.

      Returns KeyPackage<C>

      The KeyPackage

      If verification fails

    • Check equality with another SecretShare.

      Parameters

      Returns boolean

      True if equal

    • Clone this SecretShare.

      Returns SecretShare<C>

      A new SecretShare with the same values

    • Convert to string representation.

      Returns string

      Debug string