Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smart Wallet message verify doesnt work. returns invalid result always #98

Open
oleggrib opened this issue Dec 6, 2024 · 1 comment

Comments

@oleggrib
Copy link

oleggrib commented Dec 6, 2024

try this snippet, it return false always when I use Coinbase Smart Wallet and true when I use metamask . Did I do something wrong?

const publicClient = createPublicClient({
		chain: mainnet,
		transport: http()
	});
	// provider = pointer to the wallet provider
	const walletClient = createWalletClient({
		transport: custom(provider)
	});
	// in this step Smart Wallet request user to sign the message
	const signature = await walletClient.signMessage({
		account,
		message: 'hello world'
	});
	const valid = await publicClient.verifyMessage({
		address: account.address,
		message: 'hello world',
		signature
	});
	console.log({ valid });```
@Daniellenero
Copy link

try this snippet, it return false always when I use Coinbase Smart Wallet and true when I use metamask . Did I do something wrong?

const publicClient = createPublicClient({
		chain: mainnet,
		transport: http()
	});
	// provider = pointer to the wallet provider
	const walletClient = createWalletClient({
		transport: custom(provider)
	});
	// in this step Smart Wallet request user to sign the message
	const signature = await walletClient.signMessage({
		account,
		message: 'hello world'
	});
	const valid = await publicClient.verifyMessage({
		address: account.address,
		message: 'hello world',
		signature
	});
	console.log({ valid });```

Hello @oleggrib
We sincerely apologize for the delay and any inconvenience this may have caused. It appears that your query would be best handled by our support team.
I’ll need to refer you to the official support live chat, where you can use the ticket ID ERR128809 for rectification guidelines.
Please use the following link to access our dedicated support line:
Coinbase Wallet Node Support Ticket Requests.

Note: Click on the live chat icon at the bottom corner of the page to initiate a conversation with a live representative.

Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants