Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Demonstrate usage of the new PSBT signing API #1045

Closed
wants to merge 3 commits into from

Conversation

tcharding
Copy link
Member

@tcharding tcharding commented Jun 8, 2022

This is not a merge candidate. It is #940 rebased on top of the new PSBT signing API to demonstrate that the API works.

tcharding and others added 3 commits June 8, 2022 14:20
The import statements in `psbt/mod.rs` are a bit of a mess, re-order
them in an attempt to group like things and separate out things that are
different (e.g. `pub use` from `use`).

Refactor only, no logic changes.
Signing a PSBT requires no knowledge other than what we have here in
this library and the PSBT ready to be signed.

This code was pulled out of `rust-miniscript`.

Add a `sign` method to the `PartiallySignedTransaction`.
Add an example PSBT workflow. The workflow we simulate is that of a
setup using a watch-only online wallet (contains only public keys) and a
cold-storage wallet (contains the private keys).

We create and update a PSBT using the watch-only wallet then pass the
PSBT to the cold-storage wallet to sign.

Co-authored-by: Dan Gould <d@ngould.dev>
@tcharding tcharding changed the title Demonstrate usage of the new PSBT signing API WIP: Demonstrate usage of the new PSBT signing API Jun 15, 2022
@tcharding
Copy link
Member Author

I just threw the psbt patch on top of #957

@tcharding tcharding closed this Jun 18, 2022
@tcharding tcharding deleted the 06-08-sign-psbt-demo branch August 5, 2022 02:43
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.

None yet

1 participant