bip322-simple 0.2.0

Simple bitcoin message signer for nested segwit wallets
Documentation

Bitcoin Bip322 Signer

This tool is aiming to simplify message signing process on bitcoin. Simply pass private key in WIF format and message:

simple_signature_with_wif(message: &str, wif: &str) -> &str

Currently only Nested Segwit addresses are supported. Support for other address types will be added if there will be need for them.

Installation

Add crate to dependencies

  [dependencies]
  bip322-simple = "0.2.0"

FFI

To compile to a static linked library. Clone the source and compile it with following command:

cargo build --features ffi --release

Exported function has following signature:

pub extern "C" fn signature_with_wif(
        message: *const c_char,
        wif: *const c_char,
    ) -> *const c_char