Skip to content

vendor, crypto, swarm: switch over to upstream sha3 package#18390

Merged
karalabe merged 2 commits into
ethereum:masterfrom
realdave:remove-sha3-pkg
Jan 4, 2019
Merged

vendor, crypto, swarm: switch over to upstream sha3 package#18390
karalabe merged 2 commits into
ethereum:masterfrom
realdave:remove-sha3-pkg

Conversation

@realdave
Copy link
Copy Markdown
Contributor

@realdave realdave commented Jan 3, 2019

The golang.org/x/crypto/sha3 package has been updated to include both NewLegacyKeccak256 and NewLegacyKeccak512, negating the need to replicate and extend the package here.

This adds the golang.org/x/crypto/sha3 dependency, removes the local crypto/sha3 package, and updates all usage accordingly.

Copy link
Copy Markdown
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM.

I've pushed a followup commit on top to update the entire crypto package from upstream. Now's as good of a time as ever to update it if we're touching anyway.

@karalabe karalabe added this to the 1.9.0 milestone Jan 4, 2019
@karalabe karalabe changed the title Remove sha3 package vendor, crypto, swarm: switch over to upstream sha3 package Jan 4, 2019
@karalabe karalabe merged commit 391d4cb into ethereum:master Jan 4, 2019
@realdave realdave deleted the remove-sha3-pkg branch January 4, 2019 16:14
@karalabe karalabe modified the milestones: 1.9.0, 1.8.21 Jan 15, 2019
dimpar added a commit to threshold-network/keep-core that referenced this pull request Jul 4, 2019
- Import crypto/sha3 from `golang.org/x` instead of
`github.com/ethereum/go-ethereum`. This change was introduced in
Byzantium v1.8.21 PR: ethereum/go-ethereum#18390
For our upgrade we also need to point to golang.org/x/crypto/sha3 so the
dependencies won't break.
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Dec 9, 2024
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.

2 participants