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

Change to use TryInto trait for signature array conversion #18

Open
franssl opened this issue Feb 13, 2020 · 0 comments
Open

Change to use TryInto trait for signature array conversion #18

franssl opened this issue Feb 13, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@franssl
Copy link
Member

franssl commented Feb 13, 2020

The conversion of signature &[u8] to &[u8;64] is currently implemented via a function that only works for this specific array length.
Once rust-lang/rust#61415 (const generics allow the TryInto trait to be implemented for any array size rather than just up to 32) is finished, this should be changed to use the TryInto trait (the key arrays are already using this).

@franssl franssl added the enhancement New feature or request label Feb 13, 2020
@franssl franssl self-assigned this Feb 13, 2020
@sudhirtibrewal sudhirtibrewal added this to the Full Consensus milestone Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants