Skip to Content

SignMessageFn

SignMessageFn = (message: string, options?: SignMessageOptions) => Promise<string>

Defined in: src/react/useEncryption.ts:876 

Type for the signMessage function that client must provide. This is typically from Privy’s useSignMessage hook.

The resolved value must be a hex signature (0x-prefixed or bare). A non-hex string — including String(uint8Array) or a base58 signature — throws from key derivation instead of becoming a zero-filled AES key. Raw signature bytes go to deriveKeyFromSignatureBytes.

Parameters

ParameterType

message

string

options?

SignMessageOptions

Returns

Promise<string>

Last updated on