Crates.io | bip322-simple |
lib.rs | bip322-simple |
version | 0.3.1 |
source | src |
created_at | 2023-06-14 03:31:44.950217 |
updated_at | 2023-06-19 23:54:46.982083 |
description | Simple bitcoin message signer for nested segwit and taproot wallets. |
homepage | |
repository | |
max_upload_size | |
id | 889711 |
size | 14,353 |
This tool is aiming to simplify message signing process on bitcoin. This was tested on subber.
Simply pass private key in WIF format and message:
simple_signature_with_wif_segwit(message: &str, wif: &str) -> &str
simple_signature_with_wif_taproot(message: &str, wif: &str) -> &str
Currently only Nested Segwit and Taproot addresses are supported. Support for other address types will be added if there will be need for them.
Add crate to dependencies
[dependencies]
bip322-simple = "0.3.1"
To compile to a static linked library. Clone the source and compile it with following command:
cargo build --features ffi --release
Exported functions have following signatures:
pub extern "C" fn signature_with_wif_segwit(
message: *const c_char,
wif: *const c_char,
) -> *const c_char
pub extern "C" fn signature_with_wif_taproot(
message: *const c_char,
wif: *const c_char,
) -> *const c_char