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

OwnedKey::from_bytes should operate on things like &[u8; 4] when key size is fixed #58

Open
uint opened this issue Sep 10, 2024 · 0 comments
Labels
project Too big to be a single task research storey

Comments

@uint
Copy link
Collaborator

uint commented Sep 10, 2024

This sounds simple but would require digging into some type-fu.

It looks like the big "behavior" match thing would have to go to make this possible. Probably a good design choice anyway.

The benefit is implementing custom key types becomes a little easier for devs (no need for extra error handling when keys are fixed size).

@uint uint changed the title OwnedKey::from_bytes should operate on things like &[u8; 4] when key size is fixed OwnedKey::from_bytes should operate on things like &[u8; 4] when key size is fixed Sep 10, 2024
@uint uint added storey project Too big to be a single task research labels Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project Too big to be a single task research storey
Projects
None yet
Development

No branches or pull requests

1 participant