Skip to content
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

Use BLAKE2B instead of HASH160, and get rid of any usage of RIPEMD160 and SHA1 #1618

Merged
merged 9 commits into from
Mar 18, 2021

Conversation

someone235
Copy link
Collaborator

@someone235 someone235 commented Mar 17, 2021

Closes #1023

@codecov
Copy link

codecov bot commented Mar 17, 2021

Codecov Report

Merging #1618 (88435df) into v0.10.0-dev (7d69b66) will decrease coverage by 0.08%.
The diff coverage is 75.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           v0.10.0-dev    #1618      +/-   ##
===============================================
- Coverage        60.01%   59.92%   -0.09%     
===============================================
  Files              516      516              
  Lines            20494    20476      -18     
===============================================
- Hits             12299    12270      -29     
- Misses            6241     6250       +9     
- Partials          1954     1956       +2     
Impacted Files Coverage Δ
domain/consensus/utils/txscript/opcode.go 87.29% <ø> (-0.60%) ⬇️
domain/consensus/utils/txscript/standard.go 58.38% <50.00%> (ø)
domain/consensus/utils/txscript/script.go 66.42% <100.00%> (-4.38%) ⬇️
util/address.go 96.42% <100.00%> (ø)
util/blake2b.go 100.00% <100.00%> (ø)
...ain/consensus/database/binaryserialization/hash.go 64.70% <0.00%> (-5.89%) ⬇️
...ersselectedchainstore/headersselectedchainstore.go 68.22% <0.00%> (-2.81%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d69b66...88435df. Read the comment docs.

"",
"OK"
],
[
"0",
"SHA1",
"SHA256",
"",
"OK"
],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test case is a duplicate of the one above it.

"",
"INVALID_STACK_OPERATION"
],
[
"",
"SHA1",
"SHA256",
"",
"INVALID_STACK_OPERATION"
],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test case is a duplicate of the one above it.

"",
"INVALID_STACK_OPERATION"
],
[
"",
"SHA1 1",
"SHA256 1",
"",
"INVALID_STACK_OPERATION"
],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test case is a duplicate of the one above it.

util/hash160.go Outdated
@@ -5,19 +5,11 @@
package util
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you might want to rename this file.

@stasatdaglabs stasatdaglabs merged commit d0511c1 into v0.10.0-dev Mar 18, 2021
@stasatdaglabs stasatdaglabs deleted the rip-ripemd branch March 18, 2021 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants