Skip to content

Misc cleanups#23

Merged
darosior merged 18 commits intorevault:masterfrom
darosior:cleanups
Oct 3, 2020
Merged

Misc cleanups#23
darosior merged 18 commits intorevault:masterfrom
darosior:cleanups

Conversation

@darosior
Copy link
Copy Markdown
Member

@darosior darosior commented Oct 3, 2020

Based on #21

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This also removes the useless test_transaction_creation() test, just
added to highlight the API.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Still prep work for PSBT integration

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This avoids confusion, also some slight drive-by doc improvements.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This was coming. PrevOuts can be reused and with the inclusion of the
TxOut into them we lost the Copy, intuitively bounding their lifetimes
to one usage.

Besides, we had those monstruous inputs in RevaultTransactions'
new()s.

Now that their sequence is bounded to them, they are one-shot
transaction inputs, and their usage is much more intuitive!

Of course, this helps me with PSBT as well :-)

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
This:
- Replaces the inner Transaction by a PSBT in RevaultTransaction
- Adapts the API to use BIP174 roles (somewhat)
- Implements the satisfaction as part of the RevaultTransaction, under
  the Finalizer role.
- Still makes use of our internal satisfier (even though the pub API is now
  part of RevaultTransaction).
- Reuses some logic from Miniscript descriptors until upstream implements
  comprehensive PSBT support for them.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
We won't finalize a transaction that does not pass the
libbitcoinconsensus check.

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Fixes revault#19

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
We don't run on any Github branch anymore !

Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
@darosior darosior changed the title WIP: Misc cleanups Misc cleanups Oct 3, 2020
@darosior
Copy link
Copy Markdown
Member Author

darosior commented Oct 3, 2020

Don't know if i missed something.

Copy link
Copy Markdown
Member

@JSwambo JSwambo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack e1ab2c6

@darosior
Copy link
Copy Markdown
Member Author

darosior commented Oct 3, 2020

Ok, missed the sequence stuff. Merging this and doing a follow-up.

@darosior darosior merged commit 6b17f07 into revault:master Oct 3, 2020
@darosior darosior deleted the cleanups branch October 3, 2020 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants