node

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2022 License: Apache-2.0, BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Overview

package node is a front-end to the Distributed Schnorr Signature subsystem. Each node runs an instance of the DSSNode. It is responsible for exchanging the messages over the network, and to maintain DSS protocol instances.

DSS Instances are organized in series. Each series is represented by a base hash. DSS instances in a single series is indexed by state index. This is done to have a way to pre-generate the nonces for future signatures.

The main interaction with this subsystem is the following:

  1. Start the DSS instance (the most expensive part).
  2. Wait for DSS input to the ACS, provide the ACS output to the DSS.
  3. Provide the data to sign.
  4. Wait for a signature.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEnoughQuorum

func IsEnoughQuorum(n, t int) (bool, int)

Types

type DSSNode

type DSSNode interface {
	Start(key string, index int, dkShare tcrypto.DKShare, partCB func([]int), sigCB func([]byte)) error
	DecidedIndexProposals(key string, index int, decidedIndexProposals [][]int, messageToSign []byte) error
	StatusString(key string, index int) string
	Close()
}

func New

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL