bitcoin-ruby 是 bitcoin API 和协议的 Ruby 实现版本。兼容 Ruby 1.9.3 和 2.0.0
Generate a Bitcoin::Key
key = Bitcoin::generate_key key #=> [<privkey>, <pubkey>]
Get the address from a public key
address = Bitcoin::pubkey_to_address(key[1]) address #=> <bitcoin address>
Check if an address is valid
Bitcoin::valid_address?(address) #=> true