Cryptographic library used in Devolutions products. It is made to be fast, easy to use and misuse-resistant.
You can refer to the Angular example or the unit tests to see how to use the library.
The WASM bundle must be loaded asynchronously. In browser applications, use a dynamic import() (or another async loading mechanism) and wait for the module ready promise before calling into the library. For a concrete integration example, refer to the Angular demo, which uses dynamic import + ready
On Firefox, exception shows up as Error in the console if not caught, but the value of error.name is the right one, so you can still try/catch depending on the error name.