Is wasm in the cards?
Would like to use with bi-ossl feature from my wasm rust... any chance this is on the roadmap?
That requires compiling openssl to wasm which is non-trivial. Better to stick with bi-rust for that portion.
We are looking at getting OpenSSL compiled to wasm in the interim... using bi-rust inside a wasm function fails. I will get the specifics (hard to debug where it is failing) and update this comment
So within the entry point of my wasm function, I'm doing this:
let key = key::AccumulatorSecretKey::default();
let members: Vec<[u8; 8]> = vec![
3u64.to_be_bytes(),
7u64.to_be_bytes(),
11u64.to_be_bytes(),
13u64.to_be_bytes(),
];
let acc = rsa::accumulator::Accumulator::with_members(&key, &members);
and it fails on is_prime in hash.rs.
Cool, looking forward to it
Updated my message above
Success with building the following with `--target wasm32-wasi
- openssl-src-rs
- rust-openssl
- accumulator-rs
At the moment it is a few hacks to environments and minor mods to openssl-src-rs/src/lib.rs
I'm also working on a no-std version of this such that it should also work for wasm
@mikelodder7 you mentioned this can be compiled to wasm easier now? Can I help with that?
I can send you a copy of the code. I haven’t integrated it into this repo yet. But if you’d like to get it up and running that’s always an option
that would be great!
@mikelodder7 and @brianorwhatever --- did this ever happen?
not yet unfortunately.. will ping @mikelodder7 and try to move on this over the holidays