bitpay/bitcore — pull request #310 by ryanxcharles (2014-05-01 16:36:12+00:00)
Title: Signature and Private Key sanity tests

Signing a message with ECDSA involves using a random number, and this means
that two signatures should never be the same. This commit adds some basic tests
to Key.signSync and Message.sign to make sure this is the case. Also, a new
bitcore.Key should never have the same private key twice. This commit also adds
a basic test to make sure that is the case.