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

Align key and ecdsa nonce entropy #299

Merged

Conversation

Gustav-Simonsson
Copy link

No description provided.

* Move random entropy functions to new package randentropy
* Add function to get n bytes entropy where up to first 32
  bytes are mixed with OS entropy sources
@Gustav-Simonsson
Copy link
Author

While tests in crypto and secp256k1 works, we should verify the mixing of OS entropy in terms of security - is it guaranteed to never weaken what we get from crypto/rand?

Also: I would suggest we move the Sha3 helper function to sha3 package (if it's in crypto it creates a circular dependency between crypto and the new randentropy package)

"time"
)

type RandEntropy struct {
Copy link
Contributor

Choose a reason for hiding this comment

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

I suggest we make this an unexported type and export randentropy.Readerand remove the new(randentropy.RandEntropy) from the other files and pass in the Reader directly.

@obscuren obscuren merged commit f35d62b into ethereum:develop Feb 13, 2015
jpeletier pushed a commit to epiclabs-io/go-ethereum that referenced this pull request Apr 22, 2018
…_error

cmd/swarm: make sure swarm doesnt crash when requested missing hashes
Zergity added a commit to Zergity/go-ethereum that referenced this pull request Apr 28, 2020
Prioritize block with random seed by double the normal block weight
tony-ricciardi pushed a commit to tony-ricciardi/go-ethereum that referenced this pull request Jan 20, 2022
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