Interface IUniversalAccumulatorState
interface IUniversalAccumulatorState { add(element: Uint8Array): Promise<void>; elements(): Promise<Iterable<Uint8Array>>; has(element: Uint8Array): Promise<boolean>; remove(element: Uint8Array): Promise<void>; } Methods
add
- add(element): Promise<void>
Returns Promise<void>
elements
- elements(): Promise<Iterable<Uint8Array>>
Returns Promise<Iterable<Uint8Array>>
has
- has(element): Promise<boolean>
Returns Promise<boolean>
remove
- remove(element): Promise<void>
Returns Promise<void>
Additional interface for universal accumulator to expose a method that allows to iterate over the accumulator members.