@polkadot/wasm-crypto-asmjs
Advanced tools
Changelog
5.0.1 Mar 19, 2022
import '@polkadot/wasm-crypto/initOnlyAsm'
at your project top-level to ensure that asm.js is initialized. (Or alternatively import '@polkadot/wasm-crypto/initWasmAsm'
to future-proof when WASM does become available)data
and empty
of the internal wasm-crypto-{wasm, asmjs}
packages in their bundlers, swap to one of the @polkadot/wasm-crypto/init*
top-level imports to set the type of interfaces you would prefer. A full writeup of the rationale and other options can be found in the FAQChanges:
@polkadot/wasm-crypto/init{OnlyAsm, OnlyWasm, WasmAsm}
to allow specific interface typeswasm-bindgen
, binaryen
& wabt
packages in build