signKeyRequest

Signs a key request message using EIP-712 typed data signing. This function prepares the data for signing, signs it with the provided account, and returns the signature.

Example

const message = {
requestFid: 123456789n,
key: "0x04bfc...",
deadline: 1657758061n,
};
const signature = signKeyRequest({ account: signerAccount, message });

Parameters

Returns

A promise that resolves to the signature of the key request.