term

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Senator

type Senator struct {
	Id           int
	Address      common.Address
	PublicKey    crypto.PublicKey
	BlsPublicKey dkg.PartPub
}

type Term

type Term struct {
	Id                uint32        // term id starts from 0 (genesis)
	PartsNum          int           // participants number
	Threshold         int           // participants number for threshold signature
	Senators          []Senator     // all senators to discuss out a signature
	AllPartPublicKeys []dkg.PartPub // their little public keys
	PublicKey         kyber.Point   // the full public key. Only available after collected all others' dkgs
	ActivateHeight    uint64        // when the term is activated.
	Suite             *bn256.Suite  // curve.
}

Term holds all public info about the term.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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