use-wallet
use-wallet copied to clipboard
Is there any documentation to sign and verify a message?
Is there any documentation to sign and verify a message?
I see utilities using RPC calls in utils.ts, wondering if there is another place to look
I am also looking for relevant solutions
export const signMessage = async (ethereum: EthereumProvider, account: Account, message: string): Promise<any> => ethereumRequest(ethereum, 'personal_sign', [message, account])
I managed to get something working locally with MetaMask. However, I had to copy out some types and functions and bring them into my project as these are not exported.
Wondering if its worthwhile maybe creating an additional function on the useWallet object that gets returned called verify()?