bls_signer

package
v0.0.5-rc.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	KeyBLS
}

type AggregatePublicKey

type AggregatePublicKey = blst.P1Aggregate

type AggregateSignature

type AggregateSignature = blst.P2Aggregate

type KeyBLS

type KeyBLS struct {
	PublicKey PublicKey
	SecretKey SecretKey
}

func NewKeyBLS

func NewKeyBLS() KeyBLS

func (*KeyBLS) Sign

func (k *KeyBLS) Sign(msg []byte) *Signature

func (*KeyBLS) Verify

func (k *KeyBLS) Verify(sig Signature, msg []byte) bool

type PublicKey

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

func NewPubKey

func NewPubKey(pubKey blst.P1Affine) PublicKey

func PublicKeyFromBytes

func PublicKeyFromBytes(b []byte) PublicKey

func (*PublicKey) Serialize

func (k *PublicKey) Serialize() []byte

Serialize a public key into a LittleEndian byte slice.

type SecretKey

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

func NewSecretKey

func NewSecretKey(sk *blst.SecretKey) SecretKey

func SecretKeyFromBytes

func SecretKeyFromBytes(b []byte) SecretKey

func (*SecretKey) Serialize

func (k *SecretKey) Serialize() []byte

Serialize a secret key into a LittleEndian byte slice.

type Signature

type Signature = blst.P2Affine

Jump to

Keyboard shortcuts

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