Participant when the public key is in group G2

Hierarchy (view full)

Constructors

Properties

id: number

Id of this participant

protocolId: Uint8Array

Id of this execution of the DKG. Use different ids in different protocol executions.

publicKey?: Uint8Array

The public key of the participant

receivedFromInRound1Count?: number

Count of messages received from others in round 1

receivedFromInRound2?: Set<number>

Sender ids who sent message in round 2

round1Msg?: Round1Msg

Message to be sent in round 1

secretKey?: Uint8Array

The secret key of the participant

shares?: Share[]

Shares to be sent in round 2

threshold: number
thresholdPublicKey?: Uint8Array

The threshold public key and all participants will have the same public key

total: number

Methods

  • Returns ((roundState: Uint8Array) => [Uint8Array, Uint8Array[]])

      • (roundState): [Uint8Array, Uint8Array[]]
      • Parameters

        • roundState: Uint8Array

        Returns [Uint8Array, Uint8Array[]]

  • Returns the secret key, public key and the threshold key

    Parameters

    Returns [Uint8Array, Uint8Array, Uint8Array]

  • Returns ((roundState: Uint8Array, pkBase: Uint8Array) => [Uint8Array, Uint8Array, Uint8Array])

      • (roundState, pkBase): [Uint8Array, Uint8Array, Uint8Array]
      • Parameters

        • roundState: Uint8Array
        • pkBase: Uint8Array

        Returns [Uint8Array, Uint8Array, Uint8Array]

  • Returns ((roundState: Uint8Array, msg: Uint8Array, protocolId: Uint8Array, pkBase: Uint8Array) => Uint8Array)

      • (roundState, msg, protocolId, pkBase): Uint8Array
      • Parameters

        • roundState: Uint8Array
        • msg: Uint8Array
        • protocolId: Uint8Array
        • pkBase: Uint8Array

        Returns Uint8Array

  • Returns ((roundState: Uint8Array, senderId: number, share: Uint8Array, pkBase: Uint8Array) => Uint8Array)

      • (roundState, senderId, share, pkBase): Uint8Array
      • Parameters

        • roundState: Uint8Array
        • senderId: number
        • share: Uint8Array
        • pkBase: Uint8Array

        Returns Uint8Array

  • Returns ((participantId: number, threshold: number, total: number, protocolId: Uint8Array, pkBase: Uint8Array) => [Uint8Array, Uint8Array])

      • (participantId, threshold, total, protocolId, pkBase): [Uint8Array, Uint8Array]
      • Parameters

        • participantId: number
        • threshold: number
        • total: number
        • protocolId: Uint8Array
        • pkBase: Uint8Array

        Returns [Uint8Array, Uint8Array]

  • Returns ((pubkeys: [number, Uint8Array][], threshold: number) => Uint8Array)

      • (pubkeys, threshold): Uint8Array
      • Parameters

        • pubkeys: [number, Uint8Array][]
        • threshold: number

        Returns Uint8Array