IProofService.transitState() method
transitState is done always to the latest state
Generates a state transition proof and publishes state to the blockchain
Signature:
transitState(did: DID, oldTreeState: TreeState, isOldStateGenesis: boolean, stateStorage: IStateStorage, ethSigner: Signer): Promise<string>;
Parameters
Parameter | Type | Description |
---|---|---|
did | DID | identity that will transit state |
oldTreeState | TreeState | previous tree state |
isOldStateGenesis | boolean | is a transition state is done from genesis state |
stateStorage | IStateStorage | storage of identity states (only eth based storage currently) |
ethSigner | Signer | signer for transaction |
Returns:
Promise<string>
{Promise<string>}
- transaction hash is returned