btc-transaction-utils

Crates.iobtc-transaction-utils
lib.rsbtc-transaction-utils
version0.9.0
sourcesrc
created_at2018-05-16 09:46:39.78467
updated_at2020-03-13 12:23:59.069068
descriptionA collection of helpers for signing bitcoin transactions with segwit.
homepage
repositoryhttps://github.com/exonum/btc-transaction-utils
max_upload_size
id65663
size74,518
formats (github:rustcrypto:formats)

documentation

https://docs.rs/btc-transaction-utils

README

btc-transaction-utils

Travis Build Status Appveyor Build Status dependency status Docs.rs rust 1.23+ required

BTC transaction utils is a small library that helps to create multisig addresses and to swiftly sign some types of segwit transactions as well as to check the existing signatures, if required.

Manipulations with segwit transactions are quite complicated, so the main goal is to provide a simple and clear solution for the most common operations as mentioned above.

Features

  • Creating of the redeem script, which is used in the multisignature transactions.
  • Creating and checking of the applied signatures of the p2wsh inputs.
  • Creating and checking of the applied signatures of the p2wpk inputs.

Note: This library supports only the SIGHASH_ALL type of signatures.

TODO

Some features are not implemented at the moment, but are desired in future releases. Any help in implementation of the below listed items is welcome.

  • Implement support for P2SH-P2WPKH and P2SHP2WSH inputs.
  • Implement TransactionBuilder which helps to create unsigned transactions.
  • Implement support for legacy inputs.
  • Implement universal transaction signer which can automatically detect the kind of output for the corresponding input.

License

Licensed under the Apache License (Version 2.0). See LICENSE for details.

Commit count: 80

cargo fmt