You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
now we disabled sending p2p in Trust wallet, because it generate different sign of our signTypedData payload vs Metamask
after investigating, 2 problems were found
signing uint256 of 1 000 and 1000 generates different result in Trust , but same is Metamask. Not sure spec favor which behaviour, but a quick fix would be detect Trust and remove spacings
now we disabled sending p2p in Trust wallet, because it generate different sign of our
signTypedData
payload vs Metamaskafter investigating, 2 problems were found
signing
uint256
of1 000
and1000
generates different result in Trust , but same is Metamask. Not sure spec favor which behaviour, but a quick fix would be detect Trust and remove spacingscannot sign
{ type: 'uint256', name: 'nonce', value: nonce },
correctly, but in fact we put a hex string into this fieldhttps://github.com/likecoin/likecoin-store/blob/9f2a60a10e45169ef5bd18fd9623e3d851a8d713/util/EthHelper.js#L372
maybe it should be a random number with dec based
toString()
instead?after fixing above problem, we can re-enabled p2p LIKE sending in at least ios Trust wallet
The text was updated successfully, but these errors were encountered: