You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Examples
28
28
--------
29
29
30
30
Keys and Addresses
31
-
^^^^^^^^^^^^^^^^^^
31
+
------------------
32
32
33
33
Legacy Keys and Addresses
34
34
https://github.com/karask/python-bitcoin-utils/blob/master/examples/keys_addresses.py - creates a private key which we use to derive a public key and in turn an address. We also use the private key to sign a message and then verify it using the public key.
@@ -40,7 +40,7 @@ Hierarchical Deterministic Keys
40
40
https://github.com/karask/python-bitcoin-utils/blob/master/examples/hd_keys.py - creates an extended private key, from an xpriv/tpriv and path, which we use to derive a public key and in turn all different address (legacy, segwit v0 and taproot (segwit v1).
41
41
42
42
Legacy Transactions (P2PKH, P2SH)
43
-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
43
+
---------------------------------
44
44
45
45
Transaction with P2PKH input and outputs
46
46
https://github.com/karask/python-bitcoin-utils/blob/master/examples/p2pkh_transaction.py - creates a simple transaction with one input and two outputs.
@@ -55,7 +55,7 @@ Create (spent) a P2SH Transaction
55
55
https://github.com/karask/python-bitcoin-utils/blob/master/examples/spend_p2sh_transaction.py - creates a transaction that spends a P2SH output.
56
56
57
57
Non-standard Transactions
58
-
^^^^^^^^^^^^^^^^^^^^^^^^^
58
+
-------------------------
59
59
60
60
Create a non-standard tx
61
61
https://github.com/karask/python-bitcoin-utils/blob/master/examples/create_non_std_tx.py - sends funds to an address with a non-standard tx (script: OP_ADD OP_5 OP_EQUAL)
@@ -64,7 +64,7 @@ Spend a non-standard tx
64
64
https://github.com/karask/python-bitcoin-utils/blob/master/examples/spend_non_std_tx.py - spends funds from script OP_ADD OP_5 OP_EQUAL
65
65
66
66
Segwit Transactions
67
-
^^^^^^^^^^^^^^^^^^^
67
+
-------------------
68
68
69
69
Transaction to pay to a P2WPKH
70
70
http://github.com/karask/python-bitcoin-utils/blob/master/examples/send_to_p2wpkh_transaction.py - send coins from two P2PKH UTXOs to a native segwit address (P2WPKH)
@@ -80,7 +80,7 @@ Spend from a P2SH(P2WPKH) nested segwit address
80
80
81
81
82
82
Timelock Transactions
83
-
^^^^^^^^^^^^^^^^^^^^^
83
+
---------------------
84
84
85
85
Create a P2SH address with a relative timelock
86
86
https://github.com/karask/python-bitcoin-utils/blob/master/examples/create_p2sh_csv_p2pkh_address.py - creates a P2SH address that locks funds (sent to it) with a private key (P2PKH) and a relative locktime of 200 blocks in the future.
@@ -115,7 +115,7 @@ Spend taproot from script path (has single alternative script path spend)
115
115
https://github.com/karask/python-bitcoin-utils/blob/master/examples/spend_p2tr_single_script_by_script_path.py - single input, single output, spend script path.
116
116
117
117
Taproot with Multiple Script Paths
118
-
---------------------------------
118
+
----------------------------------
119
119
120
120
Send to taproot address that contains two scripts path spends
121
121
https://github.com/karask/python-bitcoin-utils/blob/master/examples/send_to_p2tr_with_two_scripts.py - single input, single output (key path and two script paths - A and B).
@@ -130,7 +130,7 @@ Spend taproot from script path (has three alternative script path spends - A, B
130
130
https://github.com/karask/python-bitcoin-utils/blob/master/examples/spend_p2tr_three_scripts_by_script_path.py - single input, single output, spend script path B.
0 commit comments