@caravan/sdk API - v0.0.0
    Preparing search index...

    Function verifyCommitment

    • Verify a commitment signature.

      • Recovers the signer and asserts it equals the address in the field named by expectedRole.
      • If expectTermsText is provided, also asserts c.termsHash === keccak256(expectTermsText). Returns true only if all checks pass; never throws on a bad signature.

      Parameters

      Returns Promise<boolean>