Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type Mismatch error from bls12_381_plus-0.8.1 #8

Open
joshLong145 opened this issue Apr 10, 2024 · 0 comments
Open

Type Mismatch error from bls12_381_plus-0.8.1 #8

joshLong145 opened this issue Apr 10, 2024 · 0 comments

Comments

@joshLong145
Copy link

When attempting to. compile the following error is emitted:

   Compiling blst v0.3.11
   Compiling bls12_381_plus v0.8.13
error[E0308]: mismatched types
    --> /Users/joshlong/.cargo/registry/src/index.crates.io-6f17d22bba15001f/bls12_381_plus-0.8.13/src/scalar.rs:1394:9
     |
1386 |     fn reduce(n: U512) -> Self {
     |                           ---- expected `Scalar` because of return type
...
1394 |         Self::from_raw(out)
     |         ^^^^^^^^^^^^^^^^^^^ expected `Scalar`, found `CtOption<Scalar>`
     |
     = note: expected struct `Scalar`
                found struct `CtOption<Scalar>`

The following warnings were emitted during compilation:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant