Skip to main content
See the PKP Sign Reference API for more details on how to sign a message with your PKP.

Prerequisites

  • authContext is required. This is the result from the authentication flow.
  • pubkey is required. This is the public key of the PKP to sign with.

Quick Example

Hashing defaults and bypass

By default the SDK hashes ECDSA payloads for you using the canonical function for each chain (Ethereum → keccak256, Bitcoin/Cosmos → SHA-256/SHA-384) before sending to the nodes for signing. Schnorr/EdDSA schemes receive the raw bytes exactly as you provided them. If you already computed a digest (for example when signing EIP-712 typed data) you can pass it directly and opt out of the SDK hashing step by setting bypassAutoHashing: true:

Available signing schemes

ECDSA Schemes

EdDSA Schemes

Schnorr Variants

ZK/Privacy Schnorr Variants