blst

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

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

This implementation uses the library written by Supranational, blst.

Only linux_amd64 is supported at the moment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateSignatures

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

AggregateSignatures -- 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

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) IsInfinite

func (s 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

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) 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

Jump to

Keyboard shortcuts

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