Rust library pairing

I am trying to use library pairing. Specifically the struct pairing::bls12_381::Fr - Rust in the form

let a = pairing::bls12_381::Fr::a_prior;

This is not working. I have no idea how to make this work. It's quite confusing. Can someone please tell me what am I doing wrong??

You're looking at an ancient version of the docs. You can click on the orange warning button in the top bar to go to the latest version.

The types in pairing::bls12_381 were moved into the separate bls12_381 crate when pairing 0.17.0 was released, last August. They are no longer included in the pairing crate. Also, pairing::bls12_381::Fr was renamed to bls12_381::Scalar.

I'm not sure what you're trying to access by typing a_prior. This name doesn't seem to appear in the docs for either the old or current versions of these crates.

As before, if you get an error, please include the text of the error.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.