nooschain / chain/state-root-engine-version / stateRootEnginesShareRootScheme
Function: stateRootEnginesShareRootScheme()
stateRootEnginesShareRootScheme(
left,right):boolean
Defined in: chain/state-root-engine-version.ts:88
Returns true only when two engines are declared to share the same root scheme.
This is deliberately stricter than “both versions are known”. nervos-smt-v2 is a new root scheme, so it is not equivalent to iden3-v1 and must cross a height boundary instead of continuing an existing iden3 chain in place.
Parameters
left
"iden3-v1" | "nervos-smt-v2"
right
"iden3-v1" | "nervos-smt-v2"
Returns
boolean