simolus3/web3dart

Sign personal message on metamask

cryptobys-rami opened this issue · 1 comments

Implementing the example on: https://pub.dev/documentation/web3dart/latest/browser/browser-library.html

Image 01-11-2021 at 22 13

Is there a way to generate a metamask signature without it looking like a card blanche on Metamask?

FWIW - I am linking an issue in a separate library where the sign personal message works correctly, in case it helps with fixing it here:

y-pakorn/flutter_web3#17

I have a feeling it has to do with the way you are encoding the message. Metamask isn't recognising it as a personal message (with the appended text that prevents it from being used as a transaction).