@arkade-os/sdk Documentation - v0.4.36
    Preparing search index...

    Function toXOnlySignerHex

    • Normalize a server signer pubkey hex to the x-only (32-byte) form contract scripts and params.serverPubKey use. A 33-byte compressed key drops its parity prefix; a 32-byte key is canonicalized to lowercase. Mirrors the wallet's hex.decode(info.signerPubkey).slice(1) setup path so the active signer and the deprecated signers (which arkd may advertise compressed) compare equal to the x-only params.serverPubKey persisted on contracts.

      Parameters

      • pubkeyHex: string

      Returns string