bls

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const BLS_ACTIVE = true

Variables

This section is empty.

Functions

func FastAggregateVerify added in v0.10.1

func FastAggregateVerify(pubkeys []*CachedPubkey, message [32]byte, signature BLSSignature) bool

func Verify added in v0.10.1

func Verify(pubkey *CachedPubkey, message [32]byte, signature BLSSignature) bool

Types

type BLSPubkey added in v0.12.1

type BLSPubkey [48]byte

func (BLSPubkey) ByteLength added in v0.12.2

func (BLSPubkey) ByteLength() uint64

func (*BLSPubkey) Deserialize added in v0.12.2

func (p *BLSPubkey) Deserialize(dr *codec.DecodingReader) error

func (BLSPubkey) FixedLength added in v0.12.2

func (BLSPubkey) FixedLength() uint64

func (BLSPubkey) HashTreeRoot added in v0.12.2

func (p BLSPubkey) HashTreeRoot(hFn tree.HashFn) tree.Root

func (BLSPubkey) MarshalText added in v0.12.2

func (p BLSPubkey) MarshalText() ([]byte, error)

func (*BLSPubkey) Serialize added in v0.12.2

func (p *BLSPubkey) Serialize(w *codec.EncodingWriter) error

func (BLSPubkey) String added in v0.12.2

func (p BLSPubkey) String() string

func (*BLSPubkey) UnmarshalText added in v0.12.2

func (p *BLSPubkey) UnmarshalText(text []byte) error

type BLSSignature added in v0.12.1

type BLSSignature [96]byte

func (BLSSignature) ByteLength added in v0.12.2

func (BLSSignature) ByteLength() uint64

func (*BLSSignature) Deserialize added in v0.12.2

func (s *BLSSignature) Deserialize(dr *codec.DecodingReader) error

func (BLSSignature) FixedLength added in v0.12.2

func (BLSSignature) FixedLength() uint64

func (BLSSignature) HashTreeRoot added in v0.12.2

func (s BLSSignature) HashTreeRoot(hFn tree.HashFn) tree.Root

func (BLSSignature) MarshalText added in v0.12.2

func (p BLSSignature) MarshalText() ([]byte, error)

func (*BLSSignature) Serialize added in v0.12.2

func (s *BLSSignature) Serialize(w *codec.EncodingWriter) error

func (BLSSignature) String added in v0.12.2

func (p BLSSignature) String() string

func (*BLSSignature) UnmarshalText added in v0.12.2

func (p *BLSSignature) UnmarshalText(text []byte) error

type CachedPubkey added in v0.12.1

type CachedPubkey struct {
	Compressed BLSPubkey
	// contains filtered or unexported fields
}

func (*CachedPubkey) Pubkey added in v0.12.1

func (c *CachedPubkey) Pubkey() (*hbls.PublicKey, error)

Jump to

Keyboard shortcuts

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