@beincom/bic-signer-wasm
v0.0.7
Published
BIC Signer WASM
Downloads
439
Maintainers
Keywords
Readme
BIC Signer Web Assembly
This is an auxiliary package for the main library @beincom/signer.
Requirement
- Rust version:
1.81.0
or higher - Binaryen version:
121
or higher - wasm-pack
- Node.js
Setup
First-time setup installs all required tools and dependencies:
make setup
This will install:
- Rust stable and nightly toolchains
- rustfmt and clippy components
- wasm-pack
- binaryen
Build
Build the WebAssembly package:
make package
This command:
- Cleans previous builds
- Builds the project targeting web
- Outputs to the
pkg
directory
Format
Format Rust code using rustfmt:
make format
Lint
Run clippy linter on the code:
make lint
Check Installation
View installed versions and their status:
make version
Running Examples
- Start the local server:
yarn example
- Open your browser and visit:
http://localhost:3000
The example page will show:
- WASM module loading status
- Available WASM functions
- Test interface for trying out the functions
Project Structure
project/
├── Makefile
├── server.js
├── index.html
└── src/
└── pkg/
└── bic_signer_wasm_lib.js
Community
The best place to discuss your ideas, ask questions, and troubleshoot issues is our BIC Chat.