EthStateStorage class
EthStateStorage implements IStateStorage interface
Signature:
export declare class EthStateStorage implements IStateStorage
Implements: IStateStorage
Constructors
Constructor | Modifiers | Description |
---|---|---|
(constructor)(ethConfig) | Creates an instance of EthStateStorage. |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
provider | readonly | ethers.providers.JsonRpcProvider | |
stateContract | readonly | ethers.Contract |
Methods
Method | Modifiers | Description |
---|---|---|
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 |