RustCrypto / RustCrypto/crypto-bigint
Easier working with native numbers
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 309
- Forks
- 95
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 3
Description
In my usage with BoxedUint I am really missing comparison and calculations with u32 and u64 at least, currently it is quite inefficient as I have to do the following
let x = make_boxed_uint();
let y = x - BoxedUint::from(4); // today
let y = x - 1u32; // should be easily possible
if x < 128u32 {
return "small";
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files or tests are named. Start by locating BoxedUint's arithmetic and comparison implementations and their tests, then trace how native integer operands are currently handled. Done means the requested u32 and u64 subtraction, calculations, and comparisons work directly and are covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cryptography
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100