File tree 4 files changed +9
-9
lines changed
4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 16
16
# - Then the fees will be set.
17
17
# - Once all the data is defined, we will be ready to build the transaction. We can use the input/output constructor to
18
18
# do so.
19
- # - Finally, we should sign the transaction using all m-out of-n required private keys. Notice that the order of the in
20
- # which the keys are provided must match with the order in which the public keys where defined in the previous tx output
19
+ # - Finally, we should sign the transaction using all m-out of-n required private keys. Notice that the order in which
20
+ # the keys are provided must match with the order in which the public keys where defined in the previous tx output
21
21
# script.
22
22
# - Finally we wil serialize the transaction and display it to check that all worked!
23
23
# ---------------------------------------------------------------------------------------------------------------------
24
24
25
25
# Loads the UTXO data from a json file. You can create your own file based on the provided example with UTXOs from keys
26
- # own. It won't work if you don't update it.
26
+ # you own. It won't work if you don't update it.
27
27
utxo = load (open ('example_utxos/P2MS_utxo.json' , 'r' ))
28
28
29
29
# Get the previous transaction id and index, as well as the source bitcoin address.
Original file line number Diff line number Diff line change 24
24
# - You should change prev_tx_id, prev_out_index and value for the ones who match with an unspent transaction output
25
25
# from your recently generated address.
26
26
# - Choose a fee big enough to pay for the transaction inclusion into a block. You can use https://bitcoinfees.21.co/ to
27
- # figure out the current fee-per-byte ratio .
27
+ # figure out the current fee-per-byte rate .
28
28
# - Choose the transaction destination address.
29
29
# - Build the transaction using the basic constructor.
30
30
# - Sign and broadcast the transaction.
Original file line number Diff line number Diff line change 5
5
# Key management and Bitcoin address generation #
6
6
#################################################
7
7
# ---------------------------------------------------------------------------------------------------------------------
8
- # The following piece of code generates fresh keys and Bitcoin address.
8
+ # The following piece of code generates a fresh pair of keys and a Bitcoin address.
9
9
# - Both mainnet and testnet addresses can be generated. Tesnet are generated by default.
10
10
# - Keys are stored in the folder defined in conf.py.
11
11
# - WIF can be stored as a qr image or text. Image is set by default.
Original file line number Diff line number Diff line change 5
5
#################################################
6
6
7
7
# ---------------------------------------------------------------------------------------------------------------------
8
- # The following piece of code parses a serialized transaction (hex encoded) transaction and displays all the information
9
- # related to it.
8
+ # The following piece of code parses a serialized transaction (hex encoded) and displays all the information related
9
+ # to it.
10
10
# - Leftmost displayed transaction shows data as should be interpreted (human-readable), while rightmost
11
11
# (surrounded by parenthesis) shows it as it is in the serialize transaction (can be used to identify it inside the
12
12
# transaction)
13
- # - You should change the hex_tx for the one you'd like to deserialize. Serialized transaction can be obtain though
14
- # block explorers such as blockchyper or blockr.io , or by building a transaction using some of the library tools.
13
+ # - You should change the hex_tx for the one you'd like to deserialize. Serialized transaction can be obtain from block
14
+ # explorers such as blockcypher.com or blockchain.info , or by building a transaction using some of the library tools.
15
15
# ---------------------------------------------------------------------------------------------------------------------
16
16
17
17
# First a transaction object is created (through the deserialize constructor) by deserializing the hex transaction we
You can’t perform that action at this time.
0 commit comments