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

Bitwise #11

Closed
rlopzc opened this issue Dec 20, 2018 · 2 comments
Closed

Bitwise #11

rlopzc opened this issue Dec 20, 2018 · 2 comments

Comments

@rlopzc
Copy link

rlopzc commented Dec 20, 2018

Hello, is planned that core/Bitwise works with Bytes instead of Int? Or support both?

@evancz
Copy link
Member

evancz commented Feb 11, 2019

There is no plan to have bitwise operations on arbitrary Bytes values, so I will close the issue on those grounds.

That said, I am curious what you are trying to do. Do you need bitwise AND on two arbitrarily sized Bytes values? If so, why?

@evancz evancz closed this as completed Feb 11, 2019
@rlopzc
Copy link
Author

rlopzc commented Feb 11, 2019

I was just curious because some cryptographic packages simulates the bytes working with a List Int. Now that we have core support for bytes, they may work with them directly instead of List Int. If that's the case, when doing cryptographic stuff the would use bitwise operations like AND, or XOR directly to the bytes instead of decoding it to a List Int

Examples:

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

No branches or pull requests

2 participants