blssig

package
v0.0.0-...-475921b Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

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

func SignerWithKeyOnG1

func SignerWithKeyOnG1(pub gpbft.PubKey, privKey kyber.Scalar) *Signer

func (*Signer) Sign

func (s *Signer) Sign(sender gpbft.PubKey, msg []byte) ([]byte, error)

type Verifier

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

func VerifierWithKeyOnG1

func VerifierWithKeyOnG1() Verifier

func (Verifier) Aggregate

func (v Verifier) Aggregate(pubkeys []gpbft.PubKey, signatures [][]byte) ([]byte, error)

func (Verifier) Verify

func (v Verifier) Verify(pubKey gpbft.PubKey, msg, sig []byte) error

func (Verifier) VerifyAggregate

func (v Verifier) VerifyAggregate(msg []byte, signature []byte, pubkeys []gpbft.PubKey) error

Jump to

Keyboard shortcuts

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