verifyRegistryRoot
@totemsdk/liquidity-bond / verifyRegistryRoot
Function: verifyRegistryRoot()
verifyRegistryRoot(
registry,root,signature,verifier,opts?):Promise<boolean>
Verify a root against a registry (boolean form of the transition check):
- recompute the root from the registry and require it to equal
root; - when the verifier exposes
verify, also check the signature over the root.
Parameters
registry
root
string
signature
Uint8Array
verifier
opts?
Returns
Promise<boolean>