Documentation ¶
Index ¶
- func New(crypt *crypto.Crypto) crypto.Threshold
- func ParseParams(aux []byte) (algo crypto.ThresholdAlgo, data []byte)
- func SerializeParams(algo crypto.ThresholdAlgo, data []byte) []byte
- type ThresholdInstance
- func (instance *ThresholdInstance) Distribute(key interface{}, nodes []node.Node, k int) (shares [][]byte, algo crypto.ThresholdAlgo, err error)
- func (instance *ThresholdInstance) NewProcess(tbs []byte, algo crypto.ThresholdAlgo, hash gocrypto.Hash) (crypto.ThresholdProcess, error)
- func (instance *ThresholdInstance) Sign(aux []byte, m []byte, peerId, selfId uint64) (sig []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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)
Click to show internal directories.
Click to hide internal directories.