Skip to main content

EthStateStorage class

EthStateStorage implements IStateStorage interface

Signature:

export declare class EthStateStorage implements IStateStorage 

Implements: IStateStorage

Constructors

ConstructorModifiersDescription
(constructor)(ethConfig)Creates an instance of EthStateStorage.

Properties

PropertyModifiersTypeDescription
providerreadonlyethers.providers.JsonRpcProvider
stateContractreadonlyethers.Contract

Methods

MethodModifiersDescription
getGISTProof(id)generates proof of inclusion / non-inclusion to global identity state for given identity
getGISTRootInfo(id)
getLatestStateById(id)gets latest state of identity
publishState(proof, signer)method to publish state onchain