bls

package
v1.14.2 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const SignatureLen = 96

SignatureLen is the length of a BLS signature

Variables

This section is empty.

Functions

func VerifyAgg added in v1.14.2

func VerifyAgg(sig []byte, msg []byte) bool

VerifyAgg verifies a BLS aggregate signature

Types

type AggregateSignature added in v1.14.2

type AggregateSignature struct {
	Signature *Signature
	Signers   []int
}

AggregateSignature represents an aggregated BLS signature

func (*AggregateSignature) Bytes added in v1.14.2

func (as *AggregateSignature) Bytes() []byte

Bytes returns the byte representation

type Signature

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

Signature represents a BLS signature

func (*Signature) Bytes added in v1.14.2

func (s *Signature) Bytes() []byte

Bytes returns the byte representation

type Verifier added in v1.14.2

type Verifier struct{}

Verifier verifies BLS signatures

func NewVerifier added in v1.14.2

func NewVerifier() *Verifier

NewVerifier creates a new BLS verifier

func (*Verifier) Verify added in v1.14.2

func (v *Verifier) Verify(msg []byte, sig *Signature) error

Verify verifies a BLS signature

Jump to

Keyboard shortcuts

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