ergoplatform / ergoplatform/sigma-rust
Explore the case where `Scalar` does not fit into `BigInt256`
Open
- Dominant language
- Rust
- Stars
- 78
- Forks
- 63
- Avg merge
- 22h 5m
- Merged PRs (30d)
- 3
Description
From https://github.com/ergoplatform/sigma-rust/pull/325
> Since Scalar is in [0, n) range, where n is the group order (FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE BAAEDCE6 AF48A03B BFD25E8C D0364141) it might not fit into 256-bit BigInt because BigInt uses 1 bit for sign.
Check, where Scalar -> BigInt256 is used, and compare to Scala version.
Possibly experienced in #336
Contributor guide
Assessment
This issue has not been assessed yet.