epochkg

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

epochkg implements the epoch key generation given the result of a successful DKG generation with

puredkg

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EpochKG

type EpochKG struct {
	Eon             uint64
	NumKeypers      uint64
	Threshold       uint64
	Keyper          KeyperIndex
	SecretKeyShare  *shcrypto.EonSecretKeyShare
	PublicKey       *shcrypto.EonPublicKey
	PublicKeyShares []*shcrypto.EonPublicKeyShare

	SecretShares map[uint64][]*EpochSecretKeyShare
	SecretKeys   map[uint64]*shcrypto.EpochSecretKey
}

func NewEpochKG

func NewEpochKG(puredkgResult *puredkg.Result) *EpochKG

func (*EpochKG) ComputeEpochSecretKeyShare

func (epochkg *EpochKG) ComputeEpochSecretKeyShare(epoch uint64) *shcrypto.EpochSecretKeyShare

func (*EpochKG) HandleEpochSecretKeyShare

func (epochkg *EpochKG) HandleEpochSecretKeyShare(share *EpochSecretKeyShare) error

type EpochSecretKeyShare

type EpochSecretKeyShare struct {
	Eon    uint64
	Epoch  uint64
	Sender KeyperIndex
	Share  *shcrypto.EpochSecretKeyShare
}

type KeyperIndex

type KeyperIndex = uint64

Jump to

Keyboard shortcuts

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