use-wallet icon indicating copy to clipboard operation
use-wallet copied to clipboard

Is there any documentation to sign and verify a message?

Open lionelyoung opened this issue 5 years ago • 3 comments

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

lionelyoung avatar Jan 04 '21 02:01 lionelyoung

I am also looking for relevant solutions

supermars01 avatar Feb 03 '21 09:02 supermars01

export const signMessage = async (ethereum: EthereumProvider, account: Account, message: string): Promise<any> => ethereumRequest(ethereum, 'personal_sign', [message, account])

eth0izzle avatar Apr 15 '21 16:04 eth0izzle

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()?

craigcoles avatar May 27 '21 08:05 craigcoles