FROST secp256k1-TR (Taproot) TypeScript Library - v0.2.2-alpha.3
    Preparing search index...

    Class FrostError<C>

    An error related to FROST.

    Type Parameters

    Hierarchy

    • Error
      • FrostError
    Index

    Properties

    type: FrostErrorType
    culpritIdentifiers: IdentifierLike<C>[]

    The identifier of signers whose share validation failed. Only populated for InvalidSignatureShare errors.

    culpritIdentifier: IdentifierLike<C> | null

    The identifier of the signer whose secret share or proof of knowledge validation failed. Only populated for InvalidSecretShare and InvalidProofOfKnowledge errors.

    fieldError: FieldError | null

    The underlying FieldError, if this error wraps one.

    groupError: GroupError | null

    The underlying GroupError, if this error wraps one.

    Methods

    • Return the identifiers of the participants that caused the error. Returns an empty array if not applicable for the error.

      This can be used to penalize participants that do not follow the protocol correctly, e.g. removing them from further signings.

      Returns IdentifierLike<C>[]

    • Create an InvalidSignatureShare error

      Type Parameters

      Parameters

      • culprits: IdentifierLike<C>[]

        The identifiers of the signers whose share validation failed

      Returns FrostError<C>

    • Create an InvalidSecretShare error

      Type Parameters

      Parameters

      • Optionalculprit: IdentifierLike<C> | null

        The identifier of the signer whose secret share validation failed, if known

      Returns FrostError<C>

    • Create an InvalidProofOfKnowledge error

      Type Parameters

      Parameters

      • culprit: IdentifierLike<C>

        The identifier of the signer whose proof of knowledge validation failed

      Returns FrostError<C>