Skip to main content

Function Signature

Description

Signs a raw message without adding any prefix. Unlike signMessage, this does not prepend the Ethereum message prefix. Use this for signing raw data or for chains that don’t use Ethereum’s message prefix.

Parameters

Returns

String - The signature as a hex string.

Example

Chain-Specific Signing

The curve used for signing depends on the chain ID:

Errors