Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
L

learnmeabitcoin-code

> 编程语言
Open source

Simple code snippets to help you understand how Bitcoin works.

173 stars0 likes2 views
WebsiteGitHub

About

Simple code snippets to help you understand how Bitcoin works.

Learn Me A Bitcoin Code

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

Learning

  • miningsimulator.rb - Hashes a block header until it gets a hash below the target.

  • transactionbuilder.rb - Build a transaction from scratch, showing the transaction data as you go.

  • keygenerator.rb - Create a set of keys (Private Key, Public Key, Address) for sending and receiving bitcoin.

  • scriptdecoder.rb - Decode and run Script.

Issues· 2 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Ruby

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言