-
Notifications
You must be signed in to change notification settings - Fork 26
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
CHIA-1106: Add Python bindings to chiavdf and chiapos #675
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you copy-paste some python test from chia-blockchain or chiapos and chiavdf?
} else { | ||
None | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be good to have a few test cases for this rust function, a few valid ones and a few invalid ones. Maybe some edge cases
info.number_of_iterations, | ||
proof.witness_type as u64, | ||
) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few tests would be good here too. At least covering both sides of this condition if proof.witness_type + 1 > constants.max_vdf_witness_size
a894a94
to
4ccb8f5
Compare
7079b68
to
068bb44
Compare
There aren't any tests for this on the chia_rs side currently, but in chia-blockchain test_blockchain.py is passing.