threshold

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(skBytes []byte, threshold uint64, count uint64) (map[spectypes.OperatorID]*bls.SecretKey, error)

Create receives a bls.SecretKey hex and count. Will split the secret key into count shares

func Init

func Init()

Init initializes BLS

func ReconstructSignatures

func ReconstructSignatures(signatures map[spectypes.OperatorID][]byte) (*bls.Sign, error)

ReconstructSignatures receives a map of user indexes and serialized bls.Sign. It then reconstructs the original threshold signature using lagrange interpolation

Types

This section is empty.

Jump to

Keyboard shortcuts

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