Skip to content

Add radix string encoding for Uint, BoxedUint#659

Merged
tarcieri merged 7 commits intoRustCrypto:masterfrom
andrewwhitehead:feat/to_str_radix_vartime
Sep 19, 2024
Merged

Add radix string encoding for Uint, BoxedUint#659
tarcieri merged 7 commits intoRustCrypto:masterfrom
andrewwhitehead:feat/to_str_radix_vartime

Conversation

@andrewwhitehead
Copy link
Contributor

No description provided.

Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
@andrewwhitehead andrewwhitehead force-pushed the feat/to_str_radix_vartime branch from 34db4a8 to fba6be5 Compare August 21, 2024 00:36
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
@fjarri
Copy link
Contributor

fjarri commented Aug 26, 2024

I'm not sure if this PR is in finished state now, or still WIP, but I think it would be useful to some doc comments for the new structures and methods - it's pretty hard to guess the exact contracts right now.

Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
@andrewwhitehead
Copy link
Contributor Author

Added a few doc comments. I think the only question I have is whether the methods should panic on an invalid radix (consistent with the stdlib from_str_radix methods) or return a Result.

@fjarri
Copy link
Contributor

fjarri commented Aug 28, 2024

I'd say from_* is fine with panicking, and if we need Result-returning methods, we can add try_from_* ones.

@tarcieri tarcieri merged commit 6cb2d09 into RustCrypto:master Sep 19, 2024
@andrewwhitehead andrewwhitehead deleted the feat/to_str_radix_vartime branch September 19, 2024 16:36
@tarcieri tarcieri mentioned this pull request Jan 22, 2025
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

Successfully merging this pull request may close these issues.

3 participants