So basically i am trying to create a wallet recovery protocol on ICP . That uses Vet keys and DKIM signatures … Issue is that i found a library called viadkim which does the DKIM verification. Issue with this is that , it uses rsa crate , which isn’t support on ICP because i am getting this error when compiling
to wasm32-target-target
error: the wasm*-unknown-unknown targets are not supported by default, you may need to enable the "js" feature. For more information see: https://docs.rs/getrandom/#webassembly-support
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/getrandom-0.2.10/src/lib.rs:285:9
|
285 | / compile_error!("the wasm*-unknown-unknown targets are not supported by \
286 | | default, you may need to enable the \"js\" feature. \
287 | | For more information see: \
288 | | https://docs.rs/getrandom/#webassembly-support");
| |________________________________________________________________________^
So now , i would like to know if
- Is there an rsa solution in ICP that does at least public key signature verification? ( thats all i need to do with rsa basically )
- Is there any way to polyfill my way out of it ( i don’t know much of rust well enough , but in javascript land ,you polyfill your way to support a new run time )
Some of the dependencies are also nested , how do remove or at least silent those ? . For example the library rand_core is used by rsa and also pcks8.