Money as a content type, stenography in practice

Standard

In Andreas Antonopoulos lecture  BitcoinSouth, Money As A Content Type he mentions a transaction is simply a message broadcast to the network.  Exactly, a bitcoin transaction is nothing more than a set of bytes transmit to the network. He talks about encoding the transaction message in other forms, let’s take that to practice.  Encoding messages in other forms is an old art called Stenography. We will encode the transaction in an image. The package python-stepic is required.

A simple transaction represented as hexadecimal digits will be about 600 bytes long.  We run the program with:

The program will ask a receival address and amount,  and encode the transaction in an image:

Encoding program (encode.py):

The decoding program (decode.py):

Finally, the receiver of the content can decode the transaction from the image and push it to the bitcoin network:

Related Post

Leave a Reply

× 2 = 12