edgecase
Author: StJohn Piano
This page is subject to change at any time. It is not signed by its author or by Edgecase Datafeed.



Edgecase's working definition of a standard transaction:
- It has at least one input and at least one output.
- All input and output addresses are Pay-To-Public-Key-Hash (P2PKH).
- All input scriptSigs contain uncompressed public keys.

Example standard P2PKH Bitcoin address (34 characters):
1AGygbyEFYduWkkmZbbvirgS9kuBBMLJCP


Currently, Edgecase software only supports standard Bitcoin transactions that contain a single standard input and a single standard output.

You will need:
- The private key of each input address.
- 32 bytes of entropy per input address. The article Recipe for generating entropy bytes using dice describes one way to generate this entropy. The transaction must be signed by each input (using the private key), and each signature requires 32 bytes of entropy.
- An offline computer with Python 2.7.x installed. The code has been developed under Python 2.7.13 running on Mac OS X 10.6.8 (Snow Leopard), and should run successfully on other versions of Python 2.7.
- The details of each unspent output that you want to use as an input in the transaction. These are: The txid of the original transaction that sent the unspent output to its current address, the index of the unspent output in the list of outputs in the original transaction, and the value of the unspent output. The txid is a 64-hex-character string, the index is an integer, and the value can be either in satoshi (an integer) or in bitcoin (a decimal value with up to 8 decimal places).
- Access to several important Bitcoin tools or services. Please visit this page for details:
Services needed for creating Bitcoin transactions

Browse to the article Recipe for creating and signing a standard Bitcoin transaction. Use this recipe to create and sign a standard Bitcoin transaction with one input and one output.


Example standard Bitcoin transaction:
0100000001cde23540f3033b59d8c00fd9d8703c80d5928a177244b12fec8d580f34dbce070f0000008a473044022005fc767d513f285c38f718f4c9cfb0909d4ba2d80131aed21b3f26aa630a79f0022047367d93de1ebbcd0b4f0bc20c96821a94de5430638b3982799adf4d9f7114760141043ab692792d6c8838fd30c2ff45bf3cbd44286a5cac52ba64dc06452810202b3206f5c7799c3b72ff77fd1976f105ced3cd7700b0412e11266f3888b88c3052c3ffffffff01c2d30200000000001976a91465beb01aab71c9da76f38a383c65e3693dff54cc88ac0000000001000000





Projects that involved the creation and signing of a standard Bitcoin transaction:

- Browse to the article Creating and signing a standard raw Bitcoin transaction. Read the Goal and Brief Summary sections, then decide whether to read further.

- Browse to the article Creating and signing a standard raw Bitcoin transaction: Iteration #2. Read the Goal and Brief Summary sections, then decide whether to read further.