bitcoin-ruby是bitcoinAPI和协议的Ruby实现版本。兼容Ruby1.9.3和2.0.0
GenerateaBitcoin::Key
key=Bitcoin::generate_keykey#=>[<privkey>,<pubkey>]Gettheaddressfromapublickey
address=Bitcoin::pubkey_to_address(key[1])address#=><bitcoinaddress>Checkifanaddressisvalid
Bitcoin::valid_address?(address)#=>true
评论