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

s390x support for blstrs #32

Open
vishwabmc opened this issue Feb 1, 2022 · 3 comments
Open

s390x support for blstrs #32

vishwabmc opened this issue Feb 1, 2022 · 3 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@vishwabmc
Copy link

Hello,

On the below environment, we are building libfilcrypto.so from filecoin-ffi/rust/

Platform : s390x
Endianness : Big
OS : Ubuntu 20.04

But ran into this below issue

src/lib.rs

#[cfg(not(target_endian = "little"))]
compile_error!("blstrs is only supported on little endian architectures");

Would you have plans on supporting blstrs on s390x platform for Big Endian architecture ?

Thank you,

@dignifiedquire
Copy link
Contributor

Not at the moment, sorry. There are some core assumption about endianess in the code atm, which will be very hard to work around. I also don't think blst iteself is guranteed to work on big endian architectures atm. I would recommend using https://github.com/zkcrypto/bls12_381 on those platforms, it adheres to the same api and is a pure rust implementation.

@dot-asm
Copy link

dot-asm commented Feb 21, 2022

I also don't think blst itself is guaranteed to work on big endian architectures atm.

blst does work on big-endian platforms, the limitation is blstrs's.

@dignifiedquire
Copy link
Contributor

blst does work on big-endian platforms, the limitation is blstrs's.

Thanks, I guess needs to be tested and checked the on this side.

@dignifiedquire dignifiedquire added enhancement New feature or request help wanted Extra attention is needed labels Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants