Relative Content

Tag Archive for rustbn254

How to convert G1 point to bytes using Rust bn254 crate?

I’m using the following code to generate a signature using bn254 crate in Rust. But it is giving the signature in G1 form. There is a function for Signature called to_compressed but it returns a compressed version of this. I want the the signature to be directly converted to bytes without compressing it.