simolus3 / web3dart

Ethereum library, written in Dart.
MIT License
441 stars 270 forks source link

Sign personal message on metamask #214

Open cryptobys-rami opened 2 years ago

cryptobys-rami commented 2 years ago

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?

cryptobys-rami commented 2 years ago

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:

https://github.com/y-pakorn/flutter_web3/issues/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).