Skip to content

Commit

Permalink
Updates examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sr-gi committed Dec 19, 2017
1 parent 332d519 commit cc42df9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions examples/advanced_raw_tx_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
# - Then the fees will be set.
# - Once all the data is defined, we will be ready to build the transaction. We can use the input/output constructor to
# do so.
# - Finally, we should sign the transaction using all m-out of-n required private keys. Notice that the order of the in
# which the keys are provided must match with the order in which the public keys where defined in the previous tx output
# - Finally, we should sign the transaction using all m-out of-n required private keys. Notice that the order in which
# the keys are provided must match with the order in which the public keys where defined in the previous tx output
# script.
# - Finally we wil serialize the transaction and display it to check that all worked!
# ---------------------------------------------------------------------------------------------------------------------

# Loads the UTXO data from a json file. You can create your own file based on the provided example with UTXOs from keys
# own. It won't work if you don't update it.
# you own. It won't work if you don't update it.
utxo = load(open('example_utxos/P2MS_utxo.json', 'r'))

# Get the previous transaction id and index, as well as the source bitcoin address.
Expand Down
2 changes: 1 addition & 1 deletion examples/basic_raw_tx_creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
# - You should change prev_tx_id, prev_out_index and value for the ones who match with an unspent transaction output
# from your recently generated address.
# - Choose a fee big enough to pay for the transaction inclusion into a block. You can use https://bitcoinfees.21.co/ to
# figure out the current fee-per-byte ratio.
# figure out the current fee-per-byte rate.
# - Choose the transaction destination address.
# - Build the transaction using the basic constructor.
# - Sign and broadcast the transaction.
Expand Down
2 changes: 1 addition & 1 deletion examples/key_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Key management and Bitcoin address generation #
#################################################
# ---------------------------------------------------------------------------------------------------------------------
# The following piece of code generates fresh keys and Bitcoin address.
# The following piece of code generates a fresh pair of keys and a Bitcoin address.
# - Both mainnet and testnet addresses can be generated. Tesnet are generated by default.
# - Keys are stored in the folder defined in conf.py.
# - WIF can be stored as a qr image or text. Image is set by default.
Expand Down
8 changes: 4 additions & 4 deletions examples/tx_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#################################################

# ---------------------------------------------------------------------------------------------------------------------
# The following piece of code parses a serialized transaction (hex encoded) transaction and displays all the information
# related to it.
# The following piece of code parses a serialized transaction (hex encoded) and displays all the information related
# to it.
# - Leftmost displayed transaction shows data as should be interpreted (human-readable), while rightmost
# (surrounded by parenthesis) shows it as it is in the serialize transaction (can be used to identify it inside the
# transaction)
# - You should change the hex_tx for the one you'd like to deserialize. Serialized transaction can be obtain though
# block explorers such as blockchyper or blockr.io, or by building a transaction using some of the library tools.
# - You should change the hex_tx for the one you'd like to deserialize. Serialized transaction can be obtain from block
# explorers such as blockcypher.com or blockchain.info, or by building a transaction using some of the library tools.
# ---------------------------------------------------------------------------------------------------------------------

# First a transaction object is created (through the deserialize constructor) by deserializing the hex transaction we
Expand Down

0 comments on commit cc42df9

Please sign in to comment.