-
Notifications
You must be signed in to change notification settings - Fork 117
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
maintainence(lib/runtime/wasmer): add support for polkadot runtime v0.9.10 #1818
Conversation
Codecov Report
@@ Coverage Diff @@
## development #1818 +/- ##
===============================================
- Coverage 59.76% 59.55% -0.22%
===============================================
Files 188 188
Lines 19678 19686 +8
===============================================
- Hits 11761 11724 -37
- Misses 5936 5982 +46
+ Partials 1981 1980 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This lgtm, however I'm concerned with the version_2 just calling version_1. I don't see these version_2s defined in the spec, but looking at the substrate code there is a slight difference:
https://github.com/paritytech/substrate/blob/2ab5cd2880b1ec798a7c2a72c29f995f54b45f13/primitives/io/src/lib.rs#L764 is different than: https://github.com/paritytech/substrate/blob/2ab5cd2880b1ec798a7c2a72c29f995f54b45f13/primitives/io/src/lib.rs#L789 for secp256k1_ecdsa_recover.
And for secp256k1_ecdsa_recover_compressed: https://github.com/paritytech/substrate/blob/2ab5cd2880b1ec798a7c2a72c29f995f54b45f13/primitives/io/src/lib.rs#L812 is different than: https://github.com/paritytech/substrate/blob/2ab5cd2880b1ec798a7c2a72c29f995f54b45f13/primitives/io/src/lib.rs#L834
I'm not sure what the difference is between parse_overflowing_slice
and parse_standard_slice
is, we should determine how this difference affects behavior.
@edwardmack ok not sure how I missed that😬 I'll look into the difference between the two today and let you know when it's updated |
@edwardmack looked into the difference between |
lib/crypto/secp256k1/secp256k1.go
Outdated
@@ -48,11 +51,27 @@ type PublicKey struct { | |||
|
|||
// RecoverPublicKey returns the 64-byte uncompressed public key that created the given signature. | |||
func RecoverPublicKey(msg, sig []byte) ([]byte, error) { | |||
if sig[64] == 27 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add code comments to explain what this is doing?
…into noot/runtime-v0.9.10
🎉 This PR is included in version 0.6.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Changes
ext_crypto_secp256k1_ecdsa_recover_version_2
andext_crypto_secp256k1_ecdsa_recover_compressed_version_2
functions to wasmer importsTests
Issues
Primary Reviewer