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

Calling create_discriminant #24

Open
hartogss opened this issue Jan 24, 2024 · 0 comments
Open

Calling create_discriminant #24

hartogss opened this issue Jan 24, 2024 · 0 comments

Comments

@hartogss
Copy link

Hi,

we are using this crate for a project and wonder why create_discriminant is called every time vdf::solve and vdf::verify are called.
Is it because we have to use a fresh class group for every VDF evaluation in order to guarantee sequentiality?

create_discriminant is computing a large negative prime, seeded by the current challenge input, x, that is being evaluated or verified.
The default discriminant size is 2048 bits -- why was it chosen like this?
This way of mapping from the challenge x to a single class group element while varying the class group using the discriminant seemingly was brought over from the Chia VDF, although they only use 1024 bits.

Also, we've noticed that its performance can vary greatly depending on the input (usually between 500-600ms, sometimes up to 900ms on a Ryzen 7 5850U) -- in turn, VDF evaluation can also vary quite a bit, especially if the delay parameter t is small.

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

1 participant