Interface for accumulator state. This should be implemented by the persistence layer that stores the accumulator members. It is advised to update the state when elements are added or removed from the accumulator.

interface IAccumulatorState {
    add(element: Uint8Array): Promise<void>;
    has(element: Uint8Array): Promise<boolean>;
    remove(element: Uint8Array): Promise<void>;
}

Hierarchy (view full)

Methods

Methods