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