Skip to main content

verifyRegistryRoot

@totemsdk/liquidity-bond


@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):

  1. recompute the root from the registry and require it to equal root;
  2. when the verifier exposes verify, also check the signature over the root.

Parameters​

registry​

LiquidityBondRegistryState

root​

string

signature​

Uint8Array

verifier​

RegistryRootVerifier

opts?​

RegistryRootOptions

Returns​

Promise<boolean>