sedaprotocol / vrf-rs

MIT License
0 stars 1 forks source link

♻️ Refactor trait into a struct #1

Closed mariocao closed 4 months ago

mariocao commented 1 year ago

♻️ Refactor

Modify the design of the implementation to use a struct with 2 generics instead of a trait.

Motivation

The trait grew to be huge and it makes more sense to have a struct with the functions use to perform a VRF.

Implementation

Some notes from @gluax :

Additionally, I think that we could get rid of the constants values used in the trait (e.g., PT_LEN, Q_LEN, C_LEN, ...)

mariocao commented 4 months ago

Already done!