Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

chain/rng: Use HMAC in NIST SP 800-90 for RNG #2349

Merged
merged 4 commits into from
Jul 31, 2020
Merged

chain/rng: Use HMAC in NIST SP 800-90 for RNG #2349

merged 4 commits into from
Jul 31, 2020

Conversation

sorawit
Copy link
Member

@sorawit sorawit commented Jul 31, 2020

Implementation details

This PR changes band deterministic rng to be based on NIST SP 800-90. We use rolling block hash as entropy, request id as nonce, and chain-id as personalization string.

Please ensure the following requirements are met before submitting a pull request:

  • The pull request is targeted against the correct target branch
  • The pull request is linked to an issue with appropriate discussion and an accepted design OR is linked to a spec that describes the work.
  • The pull request includes a description of the implementation/work done in detail.
  • The pull request includes any and all appropriate unit/integration tests
  • You have added a relevant changelog entry to CHANGELOG_UNRELEASED.md
  • You have re-reviewed the files affected by the pull request (e.g. using the Files changed tab in the Github PR explorer)

@sorawit sorawit requested review from Benzbeeb and taobun July 31, 2020 04:46
@render
Copy link

render bot commented Jul 31, 2020

@sorawit sorawit merged commit e9675f9 into master Jul 31, 2020
@sorawit sorawit deleted the use-drbg branch July 31, 2020 07:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants