threshold

package
v0.0.0-...-cd85d4b Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(crypt *crypto.Crypto) crypto.Threshold

func ParseParams

func ParseParams(aux []byte) (algo crypto.ThresholdAlgo, data []byte)

func SerializeParams

func SerializeParams(algo crypto.ThresholdAlgo, data []byte) []byte

Types

type ThresholdInstance

type ThresholdInstance struct {
	// contains filtered or unexported fields
}

func (*ThresholdInstance) Distribute

func (instance *ThresholdInstance) Distribute(key interface{}, nodes []node.Node, k int) (shares [][]byte, algo crypto.ThresholdAlgo, err error)

func (*ThresholdInstance) NewProcess

func (instance *ThresholdInstance) NewProcess(tbs []byte, algo crypto.ThresholdAlgo, hash gocrypto.Hash) (crypto.ThresholdProcess, error)

func (*ThresholdInstance) Sign

func (instance *ThresholdInstance) Sign(aux []byte, m []byte, peerId, selfId uint64) (sig []byte, err error)

Directories

Path Synopsis
dsa

Jump to

Keyboard shortcuts

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