aleo-testnet2-wasm-verify
v0.1.1
Published
Aleo Testnet2 signature verification library for the WebAssembly target.
Downloads
11
Readme
Aleo Testnet2 Wasm Verify
This is a simple wasm library based on the utilities provided by aleo-testnet2-tools.
This package contains a few simple functions for verifying aleo Aleo addresses and signatures:
|Signature|Returns|Description|
|-|-|-|
|testnet2_verify(address, message, signature)
|boolean
|Returns true for valid testnet2 signatures. Throws errors for parsing errors|
|mainnet_verify(address, message, signature)
|boolean
|Returns true for valid mainnet signatures. Throws errors for parsing errors.|
|signature(address, message, signature)
|number
|Returns 0 for invalid, 1 for valid mainnet, and 2 for valid testnet2 signatures.|
Compiling from source
- Install wasm-pack
wasm-pack build --release --target nodejs