Versions in this module Expand all Collapse all v8 v8.0.0 Jun 13, 2022 Changes in this version + const KeySize + func IsErrorCode(err error, c ErrorCode) bool + func MakeHeaderForFilter(filter *FilterV1, prevHeader *chainhash.Hash) chainhash.Hash + type Error struct + Description string + ErrorCode ErrorCode + func (e Error) Error() string + type ErrorCode int + const ErrBTooBig + const ErrMisserialized + const ErrNTooBig + const ErrPTooBig + func (e ErrorCode) String() string + type FilterV1 struct + func FromBytesV1(P uint8, d []byte) (*FilterV1, error) + func NewFilterV1(P uint8, key [KeySize]byte, data [][]byte) (*FilterV1, error) + func (f *FilterV1) Bytes() []byte + func (f *FilterV1) Hash() chainhash.Hash + func (f *FilterV1) Match(key [KeySize]byte, data []byte) bool + func (f *FilterV1) MatchAny(key [KeySize]byte, data [][]byte) bool + func (f *FilterV1) N() uint32 + func (f *FilterV1) P() uint8 + type FilterV2 struct + func FromBytesV2(B uint8, M uint64, d []byte) (*FilterV2, error) + func NewFilterV2(B uint8, M uint64, key [KeySize]byte, data [][]byte) (*FilterV2, error) + func (f *FilterV2) B() uint8 + func (f *FilterV2) Bytes() []byte + func (f *FilterV2) Hash() chainhash.Hash + func (f *FilterV2) Match(key [KeySize]byte, data []byte) bool + func (f *FilterV2) MatchAny(key [KeySize]byte, data [][]byte) bool + func (f *FilterV2) N() uint32 Other modules containing this package github.com/Decred-Next/dcrnd