-
Notifications
You must be signed in to change notification settings - Fork 81
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
interop: add keccak256 implementation #3301
Conversation
Should be a draft, we're not merging it before C# 3.7. |
0742083
to
61e42d4
Compare
problems with TestKeccak256_Compat |
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.
Just for the record: once PR is finished and ready to be merged, we need to update interop deps and move it under Cockatrice hardfork. Depends on #3213.
61e42d4
to
8261620
Compare
26e9aba
to
b64725c
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3301 +/- ##
==========================================
+ Coverage 84.80% 84.88% +0.07%
==========================================
Files 331 331
Lines 44969 44982 +13
==========================================
+ Hits 38138 38183 +45
+ Misses 5318 5284 -34
- Partials 1513 1515 +2 ☔ View full report in Codecov by Sentry. |
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.
Need to update interop deps one more time after PR is about to be merged to master.
b64725c
to
116d180
Compare
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.
Otherwise LGTM, will keep this until some real proximity to v3.7.0.
pkg/interop/native/crypto/crypto.go
Outdated
@@ -92,3 +92,8 @@ func Bls12381Mul(x Bls12381Point, mul []byte, neg bool) Bls12381Point { | |||
func Bls12381Pairing(g1, g2 Bls12381Point) Bls12381Point { | |||
return neogointernal.CallWithToken(Hash, "bls12381Pairing", int(contract.NoneFlag), g1, g2).(Bls12381Point) | |||
} | |||
|
|||
// Keccak256 calls `keccak256` method of native CryptoLib contract and computes Keccak256 hash of b. |
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.
Preserve the line width.
116d180
to
e7450ca
Compare
@AliceInHunterland, please, rebase this PR onto fresh master and update go.mod files in a separate commit. We'll merge this PR after update, 3.7 is coming. |
49c6658
to
ac0bf94
Compare
ac0bf94
to
55589fa
Compare
@AliceInHunterland, tests are failing. Please, convert from draft when ready. |
It's block 20 stateroot hash, please, rebase onto fresh master:
|
@AliceInHunterland, ditto, block 20 stateroot from RPC tests needs to be updated because you change native Management's state by adding new method to native CryptoLib's manifest. |
Port neo-project/neo#2925. Close #3295 Signed-off-by: Ekaterina Pavlova <[email protected]>
55589fa
to
1840c05
Compare
Signed-off-by: Ekaterina Pavlova <[email protected]>
Signed-off-by: Ekaterina Pavlova <[email protected]>
Port neo-project/neo#2925.
Close #3295