secret.js icon indicating copy to clipboard operation
secret.js copied to clipboard

Invalid permit signature generated with MetaMaskWallet signAmino

Open luca992 opened this issue 3 years ago • 2 comments

When I use metamask to try and generate a permit. I'm getting "Failed to verify signatures for the given permit" when trying to use the permit. I think it might have to do with pretty printing the json before converting to hex:

https://github.com/scrtlabs/secret.js/blob/898529e3eed558e29fe927338223fded18120dd4/src/wallet_metamask.ts#L113

Which would make the computed hashes different when the signature is generated, I would think.

luca992 avatar Oct 31 '22 20:10 luca992

Permits are not supported with MetaMask at the moment. I have a workaround but it's ugly 🤔

assafmo avatar Nov 27 '22 04:11 assafmo