bip322 0.0.5

Implements BIP322 generic message signing
Documentation

BIP-322

Implements BIP-322, generic message signing and verification.

Types of Signatures

  • simple (only witness stack, consensus encoded, base64)
  • full (base64 encoded to_sign tx)
  • proof-of-funds (base64 encoded to_sign tx with utxos)

Compile for WASM (on MacOs)

brew install llvm
cargo install wasm-pack
rustup target add wasm32-unknown-unknown
AR=/opt/homebrew/opt/llvm/bin/llvm-ar \
CC=/opt/homebrew/opt/llvm/bin/clang \
wasm-pack build \
    --target web \
    --out-name bip322 \
    www

The WASM binary and Javascript glue code can then be found in www/pkg.

Test Vectors

Roadmap

The goal is to provide a full signing and verifying library similar to this Javascript library.