Interface IUniversalAccumulatorState

Additional interface for universal accumulator to expose a method that allows to iterate over the accumulator members.

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

Hierarchy (view full)

Methods