CCC Docs
    Preparing search index...

    Function verifyPrivateKeyMatch

    • Quick sanity check: derive the public key from privateKey and compare against expectedPubkey. Lets a UI tell the user "wrong key for this rotation slot" without waiting for an on-chain rejection.

      Parameters

      • privateKey: BytesLike
      • expectedPubkey: BytesLike
      • curve: Curve

      Returns boolean