Warchant / sr25519-crust

C bindings over RUST sr25519 https://github.com/w3f/schnorrkel
Apache License 2.0
31 stars 22 forks source link

Refactor VRF not to expose output of VRF function in two representations #36

Closed Harrm closed 4 years ago

Harrm commented 4 years ago

To be precise, VRFOutput and raw output byte array. Also, verify function now also checks if the value less than the threshold.

burdges commented 4 years ago

VRFOutput is kinda poorly named. It's really a preoutput, the actual output can only be computed with the VRFInOut::make_* methods.