add taproot workshop

This commit is contained in:
fbock
2024-05-21 10:13:59 +02:00
parent 20d51f7bb3
commit b5a5ee3390
3 changed files with 27 additions and 11 deletions

View File

@ -11,14 +11,11 @@
"id": "bdb9fd88a01a8909", "id": "bdb9fd88a01a8909",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "canvas", "type": "markdown",
"state": { "state": {
"file": "Research/Trade Pipelines/new concepts/concept pipeline 1.canvas", "file": "Research/Bitcoin fundamentals/Knowledge sources.md",
"viewState": { "mode": "source",
"x": 464.8039744526603, "source": false
"y": 155.81787780078812,
"zoom": -0.45332428088833887
}
} }
} }
} }
@ -88,7 +85,7 @@
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
"file": "Research/Trade Pipelines/new concepts/concept pipeline 1.canvas", "file": "Research/Bitcoin fundamentals/Knowledge sources.md",
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@ -105,7 +102,7 @@
"state": { "state": {
"type": "outgoing-link", "type": "outgoing-link",
"state": { "state": {
"file": "Research/Trade Pipelines/new concepts/concept pipeline 1.canvas", "file": "Research/Bitcoin fundamentals/Knowledge sources.md",
"linksCollapsed": false, "linksCollapsed": false,
"unlinkedCollapsed": true "unlinkedCollapsed": true
} }
@ -128,7 +125,7 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "Research/Trade Pipelines/new concepts/concept pipeline 1.canvas" "file": "Research/Bitcoin fundamentals/Knowledge sources.md"
} }
} }
} }
@ -151,11 +148,11 @@
}, },
"active": "bdb9fd88a01a8909", "active": "bdb9fd88a01a8909",
"lastOpenFiles": [ "lastOpenFiles": [
"Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
"Research/Trade Pipelines/new concepts/concept locking script 1.canvas", "Research/Trade Pipelines/new concepts/concept locking script 1.canvas",
"Research/Implementation/UI ideas.canvas", "Research/Implementation/UI ideas.canvas",
"Research/Implementation/Libraries.md", "Research/Implementation/Libraries.md",
"Research/Implementation/CLI demonstrator architecture/demonstrator architecture.canvas", "Research/Implementation/CLI demonstrator architecture/demonstrator architecture.canvas",
"Research/Trade Pipelines/new concepts/concept pipeline 1.canvas",
"Research/Trade Pipelines/Existing research.md", "Research/Trade Pipelines/Existing research.md",
"Research/Trade Pipelines/current trade flow.canvas", "Research/Trade Pipelines/current trade flow.canvas",
"Research/Implementation/CLI demonstrator architecture", "Research/Implementation/CLI demonstrator architecture",

View File

@ -24,6 +24,9 @@ Understanding the following BIPs is relevant for the project.
* [Introduction to Taproot - Nicolas Dorier - short video](https://www.youtube.com/watch?v=I7HsXKgtD2I) * [Introduction to Taproot - Nicolas Dorier - short video](https://www.youtube.com/watch?v=I7HsXKgtD2I)
* [Very good, practical introduction to coding taproot Transactions - Bitdevs LA](https://www.youtube.com/watch?v=E-HxgNkPB-8) * [Very good, practical introduction to coding taproot Transactions - Bitdevs LA](https://www.youtube.com/watch?v=E-HxgNkPB-8)
#### Workshop
[Bitcoin Optech Schnorr Taproot Workshop](https://bitcoinops.org/en/schorr-taproot-workshop/)
### <u>Descriptors/Miniscript</u> ### <u>Descriptors/Miniscript</u>
We can use Descriptors/Miniscript to precisely and human readable describe the Transaction outputs of the escrow transaction pipeline. This improves readability and portability of the pipeline. We can use Descriptors/Miniscript to precisely and human readable describe the Transaction outputs of the escrow transaction pipeline. This improves readability and portability of the pipeline.

View File

@ -0,0 +1,16 @@
Loading from .env or environment:
```
use std::env;
dotenv::from_filename(".env")?;
let descriptor = env::var("DESCRIPTOR")?;
```
Creating/loading new Wallet:
```
use bdk::{Wallet, bitcoin::Network};
```