-
Notifications
You must be signed in to change notification settings - Fork 102
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
Found Several Test Bugs #8
Comments
I went through the tutorial session file to try and figure out the different approach being used there, I noticed someone had committed a change to it which allows it to pass the tests which are listed in the tutorial but not checked for in the tutorial_sessions.py file. I have created a version of this file with the updates, this required me to update the channel state and the value of the last fri layer constants. Once key values are found to be different, such as the coef value or the last fri layer constants, the channel state will also be different so the failing checks for the channel state are a key indicator of an error and will always need to be updated when a key value is updated. Here is my file, please let me know if these updates make sense.
|
Yeah, the random_field_element is different from the tutorial, because the |
The tutorial seems to work very well up to part 2. At part 3 right after the
next_fri_polynomial
function is created, the test ofsha256(','.join([str(i) for i in next_p.poly]).encode()).hexdigest()
will fail even though the followingnext_fri_layer
test will pass indicating that thenext_fri_polynomial
function is working as intended (which is not what the previous failure suggests).Then when it comes to the
FriCommit
function I tested it across the example_session.py file and found that they both fail to pass these three tests:assert all([x == FieldElement(-1138734538) for x in fri_layers[-1]]), f'Expected last layer to be constant.'
assert fri_merkles[-1].root == '1c033312a4df82248bda518b319479c22ea87bd6e15a150db400eeff653ee2ee', 'Last layer Merkle root is wrong.'
assert test_channel.state == '61452c72d8f4279b86fa49e9fb0fdef0246b396a4230a2bfb24e2d5d6bf79c2e', 'The channel state is not as expected.'
Up to the points mentioned my program was not failing any tests. I will share my relevant python file, please let me know if I have followed the tutorial incorrectly or any other relevant info.
The text was updated successfully, but these errors were encountered: