#TREX-Demo-Wallet-Rust-WebAssembly This repo provides WASM codes for decentralized timed-release encryption algorithms. This WASM code would be built into a package and run in browsers to support web applications.
wasm-pack build
wasm-pack test --headless --firefox
wasm-pack publish
wasm-bindgenfor communicating between WebAssembly and JavaScript.console_error_panic_hookfor logging panic messages to the developer console.wee_alloc, an allocator optimized for small code size.
- [
lib] wasm interface - [
elgamal] public_key & private_key,encrypt with pubkey - [
elgamal_utils] some algorithms for generating public_key - [
mt_utils] mt19937 random Variant algorithm utils - [
tx_sign] sign tx with Sha256 & ecdsa - [
utils] system generate utils for panic! - [
wallet] Wallet core class, contain send_transaction function