spec/bitcoin/bitcoin_spec.rb in bitcoin-ruby-0.0.7 vs spec/bitcoin/bitcoin_spec.rb in bitcoin-ruby-0.0.8

- old
+ new

@@ -445,9 +445,13 @@ s = Bitcoin.sign_message(key.private_key_hex, key.public_key_hex, "Very secret message %d: 11" % n) Bitcoin.verify_message(s['address'], 'invalid-signature', s['message']).should == false Bitcoin.verify_message(s['address'], s['signature'], s['message']).should == true } } + + Bitcoin.network = :testnet3 + Bitcoin.verify_message("mwPVMbZQgkpwJJt2YP3sLSgbEBQw3FWZSc", "H5GER0Nz+L7TPZMQzXtv0hnLSsyfPok9lkdHIv01vksREpEpOhTPTonU1xvyPAOIIKhU3++Ol+LaWKWmsfyxDXk=", "A"*500).should == true + Bitcoin.network = :bitcoin end rescue LoadError end it 'generates new bitcoin-address' do