Closed joelamouche closed 2 years ago
For Error 1 - we could actually accept both I believe, at least on the keyring side. Since the decoding of the ss58 should just yield the Ethereum address. However, this may be completely broken now that I think of it if we pass the full publicKey there.
On 2, yes, indeed, we should just extend that check.
So here is the problem with importing ethereum addresses from the mobile signer (related to https://github.com/polkadot-js/extension/issues/758) : The QR code only provides the address (20bytes) but not the publicKey (32bytes). In addExternal (ui-keyring):
const pair = this.keyring.addFromAddress(address, _objectSpread(_objectSpread({}, meta), {}, {
isExternal: true
}), null);
works well but returns a 20bytes publicKey, which throws an error in saveAccount
What should we do about that?
@jacogr please take a look when you have time
I would go for the first option to make it more tolerant - basically if we go for the second, we end up with a publicKey that is completely different and then we will derive a completely different address from it as well.
To go for option 1, not sure what it entails atm, I fear we may need to add something "hacky" somewhere to cater for this.
this little modification is what it takes : https://github.com/polkadot-js/common/pull/1032 @jacogr
this PR is necessary https://github.com/polkadot-js/ui/pull/491 also
@albertov19 please test again and confirm desired behavior
Is this still an ongoing issue?
Currently the problem is with the Parity Signer mobile app itself and not the app (see https://github.com/paritytech/parity-signer/issues/787#issuecomment-940880577)
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.
Error 1
Proposed solution
Popup an error message for ethreum compatible parachains, since users are not supposed to use the mobile app that way
Error 2
Proposed Solution
allow ethereum prefix for ethereum compatible parachains
Im off course volunteering to implement the solutions