-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from bitcoin-dev-project/transaction-module
Transaction module
- Loading branch information
Showing
66 changed files
with
1,541 additions
and
35 deletions.
There are no files selected for viewing
32 changes: 16 additions & 16 deletions
32
.github/workflows/repository-dispatch-to-dependent-repos.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
name: Send dispatch to dependent repos | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
# Build job | ||
dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dispatch to bitcoin-dev-project | ||
run: | | ||
curl -X POST \ | ||
-H "Authorization: token ${{ secrets.DISPATCH_UPDATE_BDP }}" \ | ||
-H "Accept: application/vnd.github+json" \ | ||
https://api.github.com/repos/bitcoin-dev-project/bitcoin-dev-project/dispatches \ | ||
-d '{"event_type": "update_submodules"}' | ||
# Build job | ||
dispatch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Dispatch to bitcoin-dev-project | ||
run: | | ||
curl -X POST \ | ||
-H "Authorization: token ${{ secrets.DISPATCH_UPDATE_BDP }}" \ | ||
-H "Accept: application/vnd.github+json" \ | ||
https://api.github.com/repos/bitcoin-dev-project/bitcoin-dev-project/dispatches \ | ||
-d '{"event_type": "update_submodules"}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: "Fee Calculation" | ||
date: 2024-01-25T15:32:14Z | ||
lastmod: "2024-07-26" | ||
draft: false | ||
category: Transactions | ||
layout: TopicBanner | ||
order: 6 | ||
icon: "FaClipboardList" | ||
images: ["/bitcoin-topics/static/images/topics/thumbnails/musig-thumbnail.webp"] | ||
children: ["weight-vsize", "fee-rate", "rbf"] | ||
--- | ||
|
||
(coming soon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: "Fee Rate" | ||
date: 2024-01-25T15:32:14Z | ||
lastmod: "2024-07-26" | ||
draft: false | ||
category: Transactions | ||
layout: TopicBanner | ||
order: 2 | ||
icon: "FaClipboardList" | ||
images: ["/bitcoin-topics/static/images/topics/thumbnails/musig-thumbnail.webp"] | ||
parent: "fee-calculation" | ||
--- | ||
|
||
(coming soon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: "Inputs" | ||
date: 2024-01-25T15:32:14Z | ||
lastmod: "2024-07-26" | ||
draft: false | ||
category: Transactions | ||
layout: TopicBanner | ||
order: 3.3 | ||
icon: "FaClipboardList" | ||
images: ["/bitcoin-topics/static/images/topics/thumbnails/musig-thumbnail.webp"] | ||
parent: "transaction-structure" | ||
--- | ||
|
||
(coming soon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: "Locktime" | ||
date: 2024-01-25T15:32:14Z | ||
lastmod: "2024-07-26" | ||
draft: false | ||
category: Transactions | ||
layout: TopicBanner | ||
order: 3.5 | ||
icon: "FaClipboardList" | ||
images: ["/bitcoin-topics/static/images/topics/thumbnails/musig-thumbnail.webp"] | ||
parent: "transaction-structure" | ||
--- | ||
|
||
(coming soon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
title: "Marker and Flag" | ||
date: 2024-01-25T15:32:14Z | ||
lastmod: "2024-07-26" | ||
draft: false | ||
category: Transactions | ||
layout: TopicBanner | ||
order: 3.2 | ||
icon: "FaClipboardList" | ||
images: | ||
[ | ||
"/bitcoin-topics/static/images/topics/thumbnails/transaction-module/tx-marker-flag.webp" | ||
] | ||
parent: "transaction-structure" | ||
--- | ||
|
||
<TransactionCreation enabledFields={["marker", "flag"]} /> | ||
|
||
The marker and flag are optional fields introduced with **SegWit**. | ||
|
||
They indicate that a transaction uses the segregated witness structure defined in **BIP144**. | ||
Witness data is required for inputs locked by **P2WPKH**, **P2WSH**, or **P2TR**. | ||
|
||
## Marker | ||
|
||
Marker indicates that the transaction uses the extended format. | ||
|
||
- Marker is **1 byte**. | ||
- Must always be `0x00` to signal a SegWit transaction. | ||
|
||
## Flag | ||
|
||
- The flag is **1 byte**. | ||
- It is currently set to `0x01` in all SegWit transactions. | ||
- Future upgrades may use different flags. | ||
|
||
<ExpandableAlert | ||
title="Note: Legacy Compatibility" | ||
type="info" | ||
expandable={false} | ||
> | ||
If a transaction doesn’t include witness data, marker and flag are omitted. | ||
</ExpandableAlert> | ||
|
||
### Question | ||
|
||
How do old nodes treat marker and flag for SegWit transactions? | ||
|
||
<a | ||
href="https://chat.bitcoinsearch.xyz/?author=holocat&question=How%2520do%2520old%2520nodes%2520treat%2520marker%2520and%2520flag%2520for%2520SegWit%2520transactions%253F" | ||
target="_blank" | ||
> | ||
Answer here | ||
</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
title: "Network Propagation" | ||
date: 2024-01-25T15:32:14Z | ||
lastmod: "2024-07-26" | ||
draft: false | ||
category: Transactions | ||
layout: TopicBanner | ||
order: 8 | ||
icon: "FaClipboardList" | ||
images: ["/bitcoin-topics/static/images/topics/thumbnails/musig-thumbnail.webp"] | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
title: "Outputs" | ||
date: 2024-01-25T15:32:14Z | ||
lastmod: "2024-07-26" | ||
draft: false | ||
category: Transactions | ||
layout: TopicBanner | ||
order: 3.4 | ||
icon: "FaClipboardList" | ||
images: ["/bitcoin-topics/static/images/topics/thumbnails/musig-thumbnail.webp"] | ||
parent: "transaction-structure" | ||
--- | ||
|
||
(coming soon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
title: "RBF" | ||
date: 2024-01-25T15:32:14Z | ||
lastmod: "2024-07-26" | ||
draft: false | ||
category: Transactions | ||
layout: TopicBanner | ||
order: 0 | ||
icon: "FaClipboardList" | ||
images: ["/bitcoin-topics/static/images/topics/thumbnails/musig-thumbnail.webp"] | ||
--- | ||
|
||
(coming soon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: "Roadmap" | ||
date: 2024-01-25T15:32:14Z | ||
lastmod: "2024-07-26" | ||
draft: false | ||
category: Transactions | ||
layout: TopicBanner | ||
order: 0 | ||
icon: "FaClipboardList" | ||
images: | ||
[ | ||
"/bitcoin-topics/static/images/topics/thumbnails/transaction-module/tx-roadmap.webp" | ||
] | ||
--- | ||
|
||
<div className="full-width"> | ||
<div className="w-full"> | ||
<div className="dark:hidden w-full rounded-lg"> | ||
<SvgDisplay | ||
src="/bitcoin-topics/static/images/topics/transactions/roadmap.svg" | ||
height="auto" | ||
/> | ||
</div> | ||
<div className="hidden dark:block w-full rounded-lg"> | ||
<SvgDisplay | ||
src="/bitcoin-topics/static/images/topics/transactions/roadmap.svg" | ||
height="auto" | ||
/> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.