Documentation ¶
Index ¶
- Constants
- func FastAggregateVerify(pubkeys []*CachedPubkey, message [32]byte, signature BLSSignature) bool
- func Verify(pubkey *CachedPubkey, message [32]byte, signature BLSSignature) bool
- type BLSPubkey
- func (BLSPubkey) ByteLength() uint64
- func (p *BLSPubkey) Deserialize(dr *codec.DecodingReader) error
- func (BLSPubkey) FixedLength() uint64
- func (p BLSPubkey) HashTreeRoot(hFn tree.HashFn) tree.Root
- func (p BLSPubkey) MarshalText() ([]byte, error)
- func (p *BLSPubkey) Serialize(w *codec.EncodingWriter) error
- func (p BLSPubkey) String() string
- func (p *BLSPubkey) UnmarshalText(text []byte) error
- type BLSSignature
- func (BLSSignature) ByteLength() uint64
- func (s *BLSSignature) Deserialize(dr *codec.DecodingReader) error
- func (BLSSignature) FixedLength() uint64
- func (s BLSSignature) HashTreeRoot(hFn tree.HashFn) tree.Root
- func (p BLSSignature) MarshalText() ([]byte, error)
- func (s *BLSSignature) Serialize(w *codec.EncodingWriter) error
- func (p BLSSignature) String() string
- func (p *BLSSignature) UnmarshalText(text []byte) error
- type CachedPubkey
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) Deserialize ¶ added in v0.12.2
func (p *BLSPubkey) Deserialize(dr *codec.DecodingReader) error
func (BLSPubkey) FixedLength ¶ added in v0.12.2
func (BLSPubkey) HashTreeRoot ¶ added in v0.12.2
func (BLSPubkey) MarshalText ¶ added in v0.12.2
func (*BLSPubkey) Serialize ¶ added in v0.12.2
func (p *BLSPubkey) Serialize(w *codec.EncodingWriter) error
func (*BLSPubkey) UnmarshalText ¶ added in v0.12.2
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 }
Click to show internal directories.
Click to hide internal directories.