dilithiumt

package
v4.0.0-...-b8b0360 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AggregateCompressedSignatures

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

func AggregateMultiplePubkeys

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

func AggregatePublicKeys

func AggregatePublicKeys(pubs [][]byte) (common.PublicKey, error)

func AggregateSignatures

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

func MultipleSignaturesFromBytes

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

func NewAggregateSignature

func NewAggregateSignature() common.Signature

func PublicKeyFromBytes

func PublicKeyFromBytes(pubKey []byte) (common.PublicKey, error)

func RandKey

func RandKey() (common.SecretKey, error)

func SecretKeyFromBytes

func SecretKeyFromBytes(seed []byte) (common.SecretKey, error)

func SignatureFromBytes

func SignatureFromBytes(sig []byte) (common.Signature, error)

func UnaggregatedSignatures

func UnaggregatedSignatures(sigs []common.Signature) []byte

func VerifyMultipleSignatures

func VerifyMultipleSignatures(sigs [][]byte, msgs [][32]byte, pubKeys [][]common.PublicKey) (bool, error)

VerifyMultipleSignatures TODO: (cyyber) make multiple parallel verification using go routine

func VerifySignature

func VerifySignature(sig []byte, msg [32]byte, pubKey common.PublicKey) (bool, error)

Types

type PublicKey

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

func (*PublicKey) Aggregate

func (p *PublicKey) Aggregate(p2 common.PublicKey) common.PublicKey

func (*PublicKey) Copy

func (p *PublicKey) Copy() common.PublicKey

func (*PublicKey) Equals

func (p *PublicKey) Equals(p2 common.PublicKey) bool

func (*PublicKey) IsInfinite

func (p *PublicKey) IsInfinite() bool

func (*PublicKey) Marshal

func (p *PublicKey) Marshal() []byte

type Signature

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

Signature used in the BLS signature scheme.

func (*Signature) AggregateVerify

func (s *Signature) AggregateVerify(pubKeys []common.PublicKey, msgs [][32]byte) bool

func (*Signature) Copy

func (s *Signature) Copy() common.Signature

func (*Signature) Eth2FastAggregateVerify

func (s *Signature) Eth2FastAggregateVerify(pubKeys []common.PublicKey, msg [32]byte) bool

func (*Signature) FastAggregateVerify

func (s *Signature) FastAggregateVerify(pubKeys []common.PublicKey, msg [32]byte) bool

func (*Signature) Marshal

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

func (*Signature) Verify

func (s *Signature) Verify(pubKey common.PublicKey, msg []byte) bool

Jump to

Keyboard shortcuts

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