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

    Class Error<C>

    An error related to FROST.

    Type Parameters

    Hierarchy

    • Error
      • Error
    Index

    Properties

    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 InvalidCoefficients error

      Type Parameters

      Returns Error<C>

    • Create a MalformedIdentifier error

      Type Parameters

      Returns Error<C>

    • Create a DuplicatedIdentifier error

      Type Parameters

      Returns Error<C>

    • Create an IncorrectNumberOfIdentifiers error

      Type Parameters

      Returns Error<C>

    • Create a MalformedSigningKey error

      Type Parameters

      Returns Error<C>

    • Create a MalformedVerifyingKey error

      Type Parameters

      Returns Error<C>

    • Create a MalformedSignature error

      Type Parameters

      Returns Error<C>

    • Create an IncorrectNumberOfShares error

      Type Parameters

      Returns Error<C>

    • Create an IdentityCommitment error

      Type Parameters

      Returns Error<C>

    • Create an IncorrectCommitment error

      Type Parameters

      Returns Error<C>

    • Create an IncorrectNumberOfCommitments error

      Type Parameters

      Returns Error<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 Error<C>

    • Create an IncorrectNumberOfPackages error

      Type Parameters

      Returns Error<C>

    • Create an InvalidProofOfKnowledge error

      Type Parameters

      Parameters

      • culprit: IdentifierLike<C>

        The identifier of the signer whose proof of knowledge validation failed

      Returns Error<C>

    • Create an InvalidCoefficient error

      Type Parameters

      Returns Error<C>

    • Create an IdentifierDerivationNotSupported error

      Type Parameters

      Returns Error<C>