Skip to content

Commit

Permalink
Add psbt example
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tcharding and DanGould committed May 19, 2022
1 parent 8764c85 commit a60188e
Show file tree
Hide file tree
Showing 2 changed files with 425 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Expand Up @@ -59,3 +59,7 @@ name = "bip32"
[[example]]
name = "handshake"
required-features = ["std"]

[[example]]
name = "psbt"
required-features = ["std", "bitcoinconsensus"]

0 comments on commit a60188e

Please sign in to comment.