History of the signing methods
Portal is forked from MetaMask and there are multiple signing methods in MetaMask. You can read the history of all the signing methods in MetaMask documentation.
We reserved all these methods and made some changes. The usage and intention of all these methods are not changed. We will follow EIP-712 if there's new spec, say v5 of typed sign.
What changed in ConfluxPortal
- In Ethereum's ecdsa sign method, the
v(in r, s, v) is affected by the
chainId, we don't count
chainIdin this method at Conflux. This affects all signing methods including signing the transaction.
- We changed the prefix message from
\u0019Ethereum Signed Message:\nto
\u0019Conflux Signed Message:\nin the
Here is a demo page for testing ConfluxPortal. There's example code of calling
cfx_sign in it.