Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Latest commit

 

History

History
40 lines (29 loc) · 1.21 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.21 KB

#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.

🛠️ Build with wasm-pack build

wasm-pack build

🔬 Test in Headless Browsers with wasm-pack test

wasm-pack test --headless --firefox

🎁 Publish to NPM with wasm-pack publish

wasm-pack publish

🔋 Batteries Included

🎆 Folder Description

  • [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