Help us shape the future of Go! Take the 2026 Go Developer Survey

multibls

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendPriKey

func AppendPriKey(multiKey *PrivateKey, key *bls.SecretKey)

AppendPriKey appends a SecretKey to multibls PrivateKey

func AppendPubKey

func AppendPubKey(multiKey *PublicKey, key *bls.PublicKey)

AppendPubKey appends a PublicKey to multibls PublicKey

Types

type PrivateKey

type PrivateKey struct {
	PrivateKey []*bls.SecretKey
}

PrivateKey stores the bls secret keys that belongs to the node

func GetPrivateKey

func GetPrivateKey(key *bls.SecretKey) *PrivateKey

GetPrivateKey creates a multibls PrivateKey using bls.SecretKey

func (PrivateKey) GetPublicKey

func (multiKey PrivateKey) GetPublicKey() *PublicKey

GetPublicKey wrapper

type PublicKey

type PublicKey struct {
	PublicKey []*bls.PublicKey
}

PublicKey stores the bls public keys that belongs to the node

func GetPublicKey

func GetPublicKey(key *bls.PublicKey) *PublicKey

GetPublicKey creates a multibls PublicKey using bls.PublicKey

func (PublicKey) Contains

func (multiKey PublicKey) Contains(pubKey *bls.PublicKey) bool

Contains wrapper

func (*PublicKey) SerializeToHexStr

func (multiKey *PublicKey) SerializeToHexStr() string

SerializeToHexStr wrapper

Jump to

Keyboard shortcuts

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