UNPKG

@tevm/utils

Version:

A custom implementation of ethereumjs blockchain

35 lines 965 B
/** * A simple Bloom filter implementation originally from ethereumjs */ export declare class Bloom { bitvector: Uint8Array; /** * Represents a Bloom filter. * @throws {InvalidBytesSizeError} If the byte size of the bitvector is not 256. */ constructor(bitvector?: Uint8Array); /** * Adds an element to a bit vector of a 64 byte bloom filter. * @param e - The element to add * @throws {never} */ add(e: Uint8Array): void; /** * Checks if an element is in the bloom. * @param e - The element to check * @throws {never} */ check(e: Uint8Array): boolean; /** * Checks if multiple topics are in a bloom. * @returns `true` if every topic is in the bloom * @throws {never} */ multiCheck(topics: Uint8Array[]): boolean; /** * Bitwise or blooms together. * @throws {never} */ or(bloom: Bloom): void; } //# sourceMappingURL=Bloom.d.ts.map