test

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateMembershipKeys

func AggregateMembershipKeys(privs []bls.PrivateKey, pubs []bls.PublicKey, aggPub bls.PublicKey, coefs []big.Int) []bls.Signature

AggregateMembershipKeys prepares private "membership keys" for participating in threshold signature:

MKi = (A1⋅pk1)×H(P, i) + (A2⋅pk2)×H(P, i) + ...

func GenRandomBytes

func GenRandomBytes(size int) (blk []byte)

GenRandomBytes generates byte array with random data

func GenerateRandomKeys

func GenerateRandomKeys(total int) ([]bls.PrivateKey, []bls.PublicKey)

GenerateRandomKeys creates an array of random private and their corresponding public keys

Types

This section is empty.

Jump to

Keyboard shortcuts

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