Small, educational snippets of code to help you to understand and work with Bitcoin.
Command Line Tools
- hexdec.rb - Convert hexadecimal to decimal
- dechex.rb - Convert decimal to hexadecimal
- swapendian.rb - Reverse the byte order of a string
- hash256.rb - The double-SHA256 hashing that Bitcoin uses
- merkleroot.php - Create a merkle root from a list of TXIDs