nickfarrow / frostr

the word's first multisignature social media account
87 stars 8 forks source link

Unable to compile #3

Closed 1440000bytes closed 9 months ago

1440000bytes commented 9 months ago
error[E0282]: type annotations needed for `point::Point<point_type::EvenY, S>`
   --> /home/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/secp256kfun-0.8.2/src/point.rs:510:45
    |
510 |         Point::from_xonly_bytes(bytes).map(|p| p.set_secrecy::<S>())
    |         ------------------------------      ^
    |         |
    |         type must be known at this point
    |
help: consider giving this closure parameter an explicit type, where the type for type parameter `S` is specified
    |
510 |         Point::from_xonly_bytes(bytes).map(|p: point::Point<point_type::EvenY, S>| p.set_secrecy::<S>())
    |                                              ++++++++++++++++++++++++++++++++++++

error[E0282]: type annotations needed for `point::Point<point_type::EvenY, S>`
   --> /home/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/secp256kfun-0.8.2/src/point.rs:510:45
    |
510 |         Point::from_xonly_bytes(bytes).map(|p| p.set_secrecy::<S>())
    |                                             ^
    |
help: consider giving this closure parameter an explicit type, where the type for type parameter `S` is specified
    |
510 |         Point::from_xonly_bytes(bytes).map(|p: point::Point<point_type::EvenY, S>| p.set_secrecy::<S>())
    |                                              ++++++++++++++++++++++++++++++++++++

error[E0282]: type annotations needed for `scalar::Scalar<S, zero_choice::Zero>`
   --> /home/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/secp256kfun-0.8.2/src/scalar.rs:302:45
    |
302 |         Scalar::from_bytes(bytes).and_then(|scalar| scalar.set_secrecy::<S>().non_zero())
    |                                             ^^^^^^
    |
help: consider giving this closure parameter an explicit type, where the type for type parameter `S` is specified
    |
302 |         Scalar::from_bytes(bytes).and_then(|scalar: scalar::Scalar<S, zero_choice::Zero>| scalar.set_secrecy::<S>().non_zero())
    |                                                   ++++++++++++++++++++++++++++++++++++++

error[E0282]: type annotations needed for `scalar::Scalar<S, zero_choice::Zero>`
   --> /home/test/.cargo/registry/src/index.crates.io-6f17d22bba15001f/secp256kfun-0.8.2/src/scalar.rs:315:40
    |
315 |         Scalar::from_bytes(bytes).map(|scalar| scalar.set_secrecy::<S>())
    |                                        ^^^^^^
    |
help: consider giving this closure parameter an explicit type, where the type for type parameter `S` is specified
    |
315 |         Scalar::from_bytes(bytes).map(|scalar: scalar::Scalar<S, zero_choice::Zero>| scalar.set_secrecy::<S>())
    |                                              ++++++++++++++++++++++++++++++++++++++

For more information about this error, try `rustc --explain E0282`.
error: could not compile `secp256kfun` (lib) due to 4 previous errors
nickfarrow commented 9 months ago

Fixed in aac1b88794e0161706a4ec4109b7956e90687c05, have fun! note1rtsps55kte0vy9sl88gee2usuq6j3l8t7hnpj4904hnx448g8k5sz45pc6