-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for ethereum-compatible types #2499
Comments
cc @crystalin Anyhing else you can think of off the top of your head? Atm we have -
Bit frustrating this since normally I tests e2e against dev nodes to ensure it works as expected. |
It looks good. I can test it tomorrow to see if there is anything missing. For the signature of the payload, do you use the Ethereum signature (including the r,v,s) ? |
It does work with the current ecdsa implementation, have tested live txs with that on Kusama, so yes, exactly as output here - https://github.com/polkadot-js/common/blob/master/packages/util-crypto/src/secp256k1/sign.ts (For Ethereum, I'm assuming is is "edcsa", so the first byte of the MultiSignature is 2 (just the normal enum position for the impl) |
Than you Jaco, great work ! As discussed, some further improvement (outside of this scope) could be to better support MultiSignature enums (or even single Signatures). |
Closing. (Splitting out signature replacement for Extrinsics in #2536) |
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. |
API version of polkadot-js/common#656
This needs unpacking, but some things I can immediately think of -
AccountId
needs to use 20-bytes, not 32AccountId
needs to encode to the Ethereum version (display)Address
needs to use the aboveExtrinsic
, probably need hashing support as per this Support for Ethereum compatible ECDSA common#656 (comment) (However this really is config dependent, i.e. is all hashes replaced, or just this singular, i.e. for large payloads)There will be more, needs to be unpack actually looking at what Rust does
The text was updated successfully, but these errors were encountered: