28 releases
0.9.0 | Jan 25, 2023 |
---|---|
0.9.0-rc.1 | Dec 25, 2022 |
0.9.0-alpha.2 | Nov 17, 2022 |
0.8.5 | Jul 30, 2022 |
0.5.0 | Nov 23, 2021 |
#623 in Magic Beans
1,472 downloads per month
Used in 29 crates
(9 directly)
280KB
5.5K
SLoC
PSBT implementation
Implements both v0 (BIP-174) and v2 (BIP-370) versions of PSBT specification.
Based on bitcoin PSBT implementation, but wraps it into new type system supporting v2 features and providing convenient functions to iterate over sets of transaction inputs/outputs and corresponding PSBT key maps.
lib.rs
:
PSBT bitcoin library, providing all PSBT functionality from [bitcoin
]
library, plus
- constructor, supporting miniscript-based descriptors, input descriptors,
all sighash types, spendings from P2C, S2C-tweaked inputs ([
construct
]); - advanced signer, supporting pre-segwit, bare and nested segwit v0, taproot
key and path spendings, different forms of tweaks & commitments, all
sighash types ([
sign
]); - commitment-related features: managing tapret-, P2C and S2C-related proprietary keys;
- utility methods for fee computing, lexicographic reordering etc;
- command-line utility for editing PSBT data (WIP).
Dependencies
~11MB
~162K SLoC