Merged
Conversation
d879caf to
d15906d
Compare
Member
Author
|
Rebased after upstream rebased, and (painfully) rebased on #15 : i restored bisectability and went for a better API for descriptor while at it. PSBT is now the next step to the :PSBTDESCRIPTORMINISCRIPTXPUBS: graal! |
Member
Author
|
Rebased after latest upstream changes. |
Member
Author
|
Rebased |
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
I changed the API here: as we needed to clone the key (xpubs are not Copy), we consume Vec s instead: this lets the caller choose if they want to clone or not. Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Member
Author
|
Now that the upstream PR is merged, we run on upstream's master and no longer one of my branch (one step from the release!). This is now mergeable. |
JSwambo
approved these changes
Oct 2, 2020
darosior
added a commit
that referenced
this pull request
Oct 2, 2020
2855c5b scripts: expose a raw interface to the unvault script (Antoine Poinsot) 4ab3f78 cleanup dependencies (Antoine Poinsot) Pull request description: This is based on #10 (itself base on #15 ...), see: - cd829a3 - 5feaa58 This adds an interface to fix #14 . Good news: we can apparently support threshold-based managers set. Question news: [what now](https://github.com/re-vault/practical-revault/issues/19#issuecomment-699479602) ? ACKs for top commit: JSwambo: Ack 2855c5b Tree-SHA512: 02f02191e935193ca9baf989cdb64a7d0d528f9274e719eab49f1dbef515647950611a9ca7f68e31a06d51e604487e7cc7e8e4bb4301b658a3916cbffcf96a56
darosior
added a commit
that referenced
this pull request
Oct 3, 2020
a0e0ff5 scripts: wrap the Descriptor in TxOut-specific newtypes (Antoine Poinsot) f560107 transactions: always check the transaction against libbitcoinconsensus (Antoine Poinsot) 3a0ffbd transactions: sanity check the PSBT input when adding a signature (Antoine Poinsot) 41e93d3 transactions: RevaultTransaction to wrap a PSBT (Antoine Poinsot) c2975d8 txins: rename src/prevouts into src/txins (Antoine Poinsot) 2f2b97d prevouts: add the sequence to RevaultPrevouts, rename them to TxIns (Antoine Poinsot) 9852b9d transactions: rename into_prevout() into into_outpoint() (Antoine Poinsot) de80fb9 prevouts: add the spent RevaultTxOut to RevaultPrevouts (Antoine Poinsot) 63d2514 txouts: add the output's witness script to the struct (Antoine Poinsot) 8320b5e transactions: return actual error type for encoding errors (Antoine Poinsot) 6efc2bd transactions: make serialize() propagate Errors (Antoine Poinsot) 515d5a2 transactions: cleanup imports (Antoine Poinsot) Pull request description: This is based on #10 (as pretty much everything now..) and implements the usage of PSBT in our `RevaultTransaction` management, from the creation to the satisfaction. This unlocked a few side improvements, such as: - Get rid of the RevaultSatisfier struct - Libbitcoinconsensus verification is back! - Even more typesafety (eg for TxOuts and script descriptors) The methods of the `RevaultTransaction` traits have been modified with [BIP174 roles in mind](https://github.com/bitcoin/bips/blob/master/bip-0174.mediawiki#responsibilities), which will likely guide us toward less footguns downstream. ACKs for top commit: edouardparis: ACK a0e0ff5 Tree-SHA512: 330167a106f8b2305c9a1c06b45c794ad032b012bc54a0a23030ec88120df0ae7a47a6229b45182605f888c4230b3d8c69c075265c03415efe2f2e2295e1ee34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This:
DescriptorPublicKeys