Skip to content

Need a way to relate a pool created block to the pool which created it #349

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

Closed
erikd opened this issue Oct 14, 2020 · 4 comments
Closed

Comments

@erikd
Copy link
Contributor

erikd commented Oct 14, 2020

I think that block.vrf_key should match up with pool_update.vrf_key but the former is VerKeyVRF PraosVRF and the latter is a Hash Blake2b_256 (VerKeyVRF PraosVRF).

@erikd
Copy link
Contributor Author

erikd commented Oct 16, 2020

Turns out that the hash field of the slot_leader table is the verification key when it should have been the hash (Blake_224) of the verification key.

@erikd erikd closed this as completed in 1151d9f Oct 18, 2020
@rhyslbw
Copy link
Contributor

rhyslbw commented Oct 20, 2020

Does block.vrf_key not correlate with pool_update.vrf_key though?

@erikd
Copy link
Contributor Author

erikd commented Oct 20, 2020

The first is a "verification key" and the second is a "verification key hash".

@rhyslbw
Copy link
Contributor

rhyslbw commented Oct 20, 2020

Ok. Might be worth suffixing it with _hash before the next major version?

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

No branches or pull requests

2 participants