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

CHIA-1106: Add Python bindings to chiavdf and chiapos #675

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

Rigidity
Copy link
Contributor

@Rigidity Rigidity commented Aug 21, 2024

There aren't any tests for this on the chia_rs side currently, but in chia-blockchain test_blockchain.py is passing.

@Rigidity Rigidity requested a review from arvidn August 21, 2024 05:21
@Rigidity Rigidity changed the title Add Python bindings to chiavdf and chiapos CHIA-1106: Add Python bindings to chiavdf and chiapos Aug 21, 2024
Copy link
Contributor

@arvidn arvidn left a 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
}
}
Copy link
Contributor

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,
)
}
Copy link
Contributor

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

@Rigidity Rigidity force-pushed the consensus-bindings branch 2 times, most recently from a894a94 to 4ccb8f5 Compare September 3, 2024 04:51
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