Warchant / sr25519-crust

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

Add VRF bindings #15

Closed Harrm closed 5 years ago

Harrm commented 5 years ago

Introduce sr25519_vrf_sign_if_less function, which wraps vrf_sign_n_check by setting the check to a condition whether the output is less than some limit (useful for Ouroboros-like algorithms) and sr25519_vrf_verify, which wraps vrf_verify.