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

Feature: VRF coordinator API and library. #1

Merged
merged 4 commits into from
Sep 6, 2023

Conversation

nesitor
Copy link
Member

@nesitor nesitor commented Aug 30, 2023

No description provided.

@nesitor nesitor requested a review from hoh August 30, 2023 15:47
@nesitor nesitor self-assigned this Aug 30, 2023
coordinator/main.py Outdated Show resolved Hide resolved
generate-function/main.py Outdated Show resolved Hide resolved
coordinator/main.py Outdated Show resolved Hide resolved
generate-function/main.py Outdated Show resolved Hide resolved
utils.py Outdated
return random_hash == sha3_256(random_bytes + int_to_bytes(nonce)).digest()
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you write some unit tests for functions like this one? VRFs are gonna be one of these features where we publish it then touch it only once in a while, without tests it's gonna be a pain to maintain.

vrf.py Outdated Show resolved Hide resolved
vrf.py Outdated Show resolved Hide resolved
vrf.py Outdated Show resolved Hide resolved
vrf.py Outdated Show resolved Hide resolved
vrf.py Outdated Show resolved Hide resolved
The project is now structured as an `aleph_vrf` module that contains the
coordinator and executor code.
Added setup files using PyScaffold and a structure to run unit tests
with pytest.
Added a CI/CD pipeline for these unit tests.
@odesenfans odesenfans changed the title Feature: Implemented VRF coordinator API and library. Feature: VRF coordinator API and library. Sep 6, 2023
@odesenfans odesenfans merged commit 641bc3b into main Sep 6, 2023
8 checks passed
@odesenfans odesenfans deleted the andres-feature-implement-coordinator branch September 6, 2023 12:52
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