Skip to main content
This interface is for raw signing over a hash, which primarily applies to Coinbase Smart Wallet integrations, EIP-7702 authorizations and other scenarios requiring basic curve-level signing. For most use cases, such as authenticating to a website or proving ownership, we recommend signing a message.
When using Privy’s server-side SDKs to sign raw hashes, you can use the authorization context to automatically sign requests. Learn more about signing on the server.
To sign a raw hash from a wallet using the React SDK use the request method from the wallets EIP1193 provider:

Usage

Parameters

'secp256k1_sign'
required
The RPC method executed with the wallet.
[hash: Hex]
required
The raw hash to sign over.

Returns

string
The signature produced by the wallet.