8000 GitHub - diehuxx/bip322: Implmenents BIP322 generic message signing and verification
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

diehuxx/bip322

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BIP-322

Implements BIP-322, generic message signing and verification.

Types of Signatures

At the moment this crate supports ONLY P2TR and P2WPKH addresses. We're looking to stabilize the interface before implementing different address types. Feedback through issues or PRs is welcome and encouraged.

  • legacy
  • simple
  • full
  • full (proof-of-funds)

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

Test Vectors

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. The bip322.rs site also runs a small WASM binary if you'd like to check it out.

About

Implmenents BIP322 generic message signing and verification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 80.8%
  • JavaScript 5.8%
  • CSS 5.7%
  • Just 4.3%
  • HTML 3.4%
0