spec/bitcoin/secp256k1_spec.rb in bitcoin-ruby-0.0.14 vs spec/bitcoin/secp256k1_spec.rb in bitcoin-ruby-0.0.15

- old
+ new

@@ -25,10 +25,10 @@ it 'sign and verify' do priv, pub = Bitcoin::Secp256k1.generate_key_pair signature = Bitcoin::Secp256k1.sign("derp", priv) Bitcoin::Secp256k1.verify("derp", signature, pub).should == true - Bitcoin::Secp256k1.verify("DERP", signature, pub).should == true + Bitcoin::Secp256k1.verify("DERP", signature, pub).should == false end it 'sign compact and recover' do priv, pub = Bitcoin::Secp256k1.generate_key_pair(compressed=true) signature = Bitcoin::Secp256k1.sign_compact("derp", priv, compressed=true)