demergent-labs / azle

A WebAssembly runtime for TypeScript and JavaScript on ICP
MIT License
208 stars 36 forks source link

Incorporate wasmedge-quickjs node crypto #1586

Open lastmjs opened 9 months ago

lastmjs commented 9 months ago

The PR is almost done, perhaps we just merge it into our own branch and see if it works instead of using crypto browserify, as it is noticeably slow with ethersjs random wallet creation

lastmjs commented 9 months ago

This is going to be quite a large project. The best way to go about this is to have ic-wasi-polyfill impilement the WASI Crypto functions...then we just have to update that dependency (and maybe wasi2ic), turn on the nodejs_crypto features in wasmedge_quickjs in Cargo.toml, and hopefully we'd be good to go.