blst

package
v0.0.0-...-979e23b Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package blst implements a go-wrapper around a library implementing the BLS12-381 curve and signature scheme. This package exposes a public API for verifying and aggregating BLS signatures used by Ethereum.

This implementation uses the library written by Supranational, blst.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateCompressedSignatures

func AggregateCompressedSignatures(multiSigs [][]byte) (common.Signature, error)

AggregateCompressedSignatures -- stub

func AggregateMultiplePubkeys

func AggregateMultiplePubkeys(pubs []common.PublicKey) common.PublicKey

AggregateMultiplePubkeys -- stub

func AggregateSignatures

func AggregateSignatures(_ []common.Signature) common.Signature

AggregateSignatures -- stub

func MultipleSignaturesFromBytes

func MultipleSignaturesFromBytes(multiSigs [][]byte) ([]common.Signature, error)

MultipleSignaturesFromBytes -- stub

func NewAggregateSignature

func NewAggregateSignature() common.Signature

NewAggregateSignature -- stub

func RandKey

func RandKey() (common.SecretKey, error)

RandKey -- stub

func VerifyCompressed

func VerifyCompressed(_, _, _ []byte) bool

VerifyCompressed -- stub

func VerifyMultipleSignatures

func VerifyMultipleSignatures(_ [][]byte, _ [][32]byte, _ []common.PublicKey) (bool, error)

VerifyMultipleSignatures -- stub

func VerifySignature

func VerifySignature(_ []byte, _ [32]byte, _ common.PublicKey) (bool, error)

VerifySignature -- stub

Types

type PublicKey

type PublicKey struct{}

PublicKey -- stub

func AggregatePublicKeys

func AggregatePublicKeys(_ [][]byte) (PublicKey, error)

AggregatePublicKeys -- stub

func PublicKeyFromBytes

func PublicKeyFromBytes(_ []byte) (PublicKey, error)

PublicKeyFromBytes -- stub

func (PublicKey) Aggregate

func (p PublicKey) Aggregate(_ common.PublicKey) common.PublicKey

Aggregate -- stub

func (PublicKey) Copy

func (p PublicKey) Copy() common.PublicKey

Copy -- stub

func (PublicKey) Equals

func (p PublicKey) Equals(_ common.PublicKey) bool

Equals -- stub

func (PublicKey) IsInfinite

func (p PublicKey) IsInfinite() bool

IsInfinite -- stub

func (PublicKey) Marshal

func (p PublicKey) Marshal() []byte

Marshal -- stub

type SecretKey

type SecretKey struct{}

SecretKey -- stub

func SecretKeyFromBytes

func SecretKeyFromBytes(_ []byte) (SecretKey, error)

SecretKeyFromBytes -- stub

func (SecretKey) IsZero

func (s SecretKey) IsZero() bool

IsZero -- stub

func (SecretKey) Marshal

func (s SecretKey) Marshal() []byte

Marshal -- stub

func (SecretKey) PublicKey

func (s SecretKey) PublicKey() common.PublicKey

PublicKey -- stub

func (SecretKey) Sign

func (s SecretKey) Sign(_ []byte) common.Signature

Sign -- stub

func (SecretKey) SignProof

func (s SecretKey) SignProof(_ []byte) common.Signature

SignProof -- stub

type Signature

type Signature struct{}

Signature -- stub

func SignatureFromBytes

func SignatureFromBytes(_ []byte) (Signature, error)

SignatureFromBytes -- stub

func (Signature) AggregateVerify

func (s Signature) AggregateVerify(_ []common.PublicKey, _ [][32]byte) bool

AggregateVerify -- stub

func (Signature) Copy

func (s Signature) Copy() common.Signature

Copy -- stub

func (Signature) Eth2FastAggregateVerify

func (s Signature) Eth2FastAggregateVerify(_ []common.PublicKey, _ [32]byte) bool

Eth2FastAggregateVerify -- stub

func (Signature) FastAggregateVerify

func (s Signature) FastAggregateVerify(_ []common.PublicKey, _ [32]byte) bool

FastAggregateVerify -- stub

func (Signature) Marshal

func (s Signature) Marshal() []byte

Marshal -- stub

func (Signature) Verify

func (s Signature) Verify(_ common.PublicKey, _ []byte) bool

Verify -- stub

func (Signature) VerifyProof

func (s Signature) VerifyProof(_ common.PublicKey, _ []byte) bool

VerifyProof -- stub

Jump to

Keyboard shortcuts

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