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

Add NonceGenerator trait and implement RollingNonce #500

Merged
merged 3 commits into from
Sep 26, 2024

Conversation

AndrewWestberg
Copy link
Collaborator

The rolling nonce on cardano is calculated for each block. It starts at the shelley genesis hash and applies each block's eta_vrf_0 value to the previous nonce and re-hashing.

Eventually, some of these rolling nonce values are used in the calculation of the epoch nonce which is required for consensus leadership checks.

@AndrewWestberg AndrewWestberg force-pushed the amw/epoch_nonce_generator branch 2 times, most recently from ceeec1a to 9e88da9 Compare August 14, 2024 01:39
@AndrewWestberg AndrewWestberg force-pushed the amw/epoch_nonce_generator branch 3 times, most recently from f82bc46 to 2e2bbd0 Compare August 26, 2024 12:45
@AndrewWestberg AndrewWestberg force-pushed the amw/epoch_nonce_generator branch 24 times, most recently from 8916de9 to 20ecf3a Compare September 5, 2024 17:28
pallas-crypto/Cargo.toml Outdated Show resolved Hide resolved
@AndrewWestberg AndrewWestberg force-pushed the amw/epoch_nonce_generator branch 7 times, most recently from 6a64997 to 8591976 Compare September 15, 2024 23:28
@AndrewWestberg AndrewWestberg force-pushed the amw/epoch_nonce_generator branch 4 times, most recently from cb3cf1a to 2246362 Compare September 17, 2024 22:52
NicolasDP
NicolasDP previously approved these changes Sep 24, 2024
Copy link
Collaborator

@NicolasDP NicolasDP left a comment

Choose a reason for hiding this comment

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

Just last two comments (that should be able to be added via the GitHub API if you wish to add them in). Otherwise I give my stamp of approval 🥇 .

Thanks so much for this great contribution to the pallas -- and to the Cardano Rust -- ecosystem.

pallas-crypto/src/nonce/mod.rs Show resolved Hide resolved
pallas-math/src/math.rs Outdated Show resolved Hide resolved
@AndrewWestberg AndrewWestberg force-pushed the amw/epoch_nonce_generator branch 4 times, most recently from 5764fdc to 3be9e7e Compare September 25, 2024 20:33
@AndrewWestberg AndrewWestberg force-pushed the amw/epoch_nonce_generator branch from 3be9e7e to 5fa60aa Compare September 25, 2024 20:43
@AndrewWestberg AndrewWestberg merged commit 615e2d4 into main Sep 26, 2024
7 checks passed
@AndrewWestberg AndrewWestberg deleted the amw/epoch_nonce_generator branch September 26, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants