Skip to content

uno-labs/UnoSemuxLightCoreWasm

Repository files navigation

Semux light core webassembly library

This project is a WebAssembly version of the Semux light core library (written in C++, based on libSodium) for the ability to work with Semux cryptographic functions in the JavaScript projects.

Look how easy it is to use:

// Mnemonic phrase generation
var mnemonic_phrase = GetRes(Module.UnoSemuxWallet.new_mnemonic_phrase());
console.log("New mnemonic phrase: '" + mnemonic_phrase + "'");

Features

Since this project is a javascript wrapper around the corresponding C++ library, it contains all the functions of the parent project.

Capabilities:

  • Generation and import a mnemonic phrase
  • Derivation of key pairs (HD Wallet)
  • Signature and verification of messages (e.g. transactions)
  • and more...

Installation

To build the project, QMAKE and EMSCRIPTEN compiler are used. The build process is quite complicated, so the compiled files are laid out in the assets section.

Download an archive uno_semux_light_core.tar.gz from assets on release page of this project. Then unpack the archive into your project folder.

For use it in the browser project you have to import UnoSemuxLightCoreWasm.js into your HTML page:

<script src="UnoSemuxLightCoreWasm.js"></script>

Documentation

The actual online version of the documentation you can find at:

https://light-core-wasm.readthedocs.io/en/latest/

License

The project is licensed under the MIT license.