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

    Class PublicKeyPackage<C>

    Public data that contains all the signers' verifying shares as well as the group verifying key.

    Used for verification purposes before publishing a signature.

    Type Parameters

    Index

    Constructors

    • Create a new PublicKeyPackage instance.

      Type Parameters

      Parameters

      • ciphersuite: C

        The ciphersuite to use

      • verifyingShares: Map<string, VerifyingShare<C>>

        Map of identifier string to verifying share

      • verifyingKey: C["Element"]

        The group verifying key element

      • OptionalminSigners: number

        Minimum number of signers (threshold)

      Returns PublicKeyPackage<C>

    Properties

    verifyingShares: Map<string, VerifyingShare<C>>

    The verifying shares for all participants. Used to validate signature shares they generate.

    verifyingKey: C["Element"]

    The joint public key for the entire group

    minSigners: number | undefined

    The minimum number of signers (threshold) required for the group. Can be undefined for legacy packages.

    Methods

    • Computes the public key package given a list of participant identifiers and a VerifiableSecretSharingCommitment. This is useful in scenarios where the commitments are published somewhere and it's desirable to recreate the public key package from them.

      Type Parameters

      Parameters

      Returns Promise<PublicKeyPackage<C>>

      The computed PublicKeyPackage

      If computation fails

    • Computes the public key package given a map of participant identifiers and their VerifiableSecretSharingCommitment from a distributed key generation process.

      Type Parameters

      Parameters

      Returns Promise<PublicKeyPackage<C>>

      The computed PublicKeyPackage

      If computation fails

    • Return the maximum number of signers.

      Returns number

      The maximum number of signers

    • Check equality with another PublicKeyPackage.

      Parameters

      Returns boolean

      True if equal

    • Convert to string representation.

      Returns string

      Debug string