Skip to content

Instantly share code, notes, and snippets.

View kapravel's full-sized avatar

Alexandros Kapravelos kapravel

View GitHub Profile
@ripper234
ripper234 / Protocol.txt
Created January 17, 2012 09:21
How to decode messages stored in the Bitcoin blockchain with btcmsg
BTCmsg Protocol v1 (2011-09-18)
===============================
Each message is represented by multiple payment which is calculated by
the following algorithm:
1. Two first chars for message type ('01' for md5, '02' for ascii).
2. Then the message in hex (python binascii.hexlify).
3. Split the long string to groups of 4 hex digits.
4. Each group of 4 hex (e.g. 2 ascii letters from the message) is
represented by a payment in satoshi (maximum 0xffff=65535).