diff options
author | slush0 <info@bitcoin.cz> | 2013-09-10 22:41:48 +0200 |
---|---|---|
committer | slush0 <info@bitcoin.cz> | 2013-09-10 22:41:48 +0200 |
commit | b12db3976cef68a58536f7c7c3de33c68c4e6105 (patch) | |
tree | cffa565b404ed9b40100a80506c4158b270682e6 | |
parent | 8efb52fad5025ae87b649ff78faa9f8076768065 (diff) | |
download | ecdsa-b12db3976cef68a58536f7c7c3de33c68c4e6105.tar.gz |
Added test_SECP256k1_2 which uses 256-bit long secexp.
-rw-r--r-- | ecdsa/test_pyecdsa.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ecdsa/test_pyecdsa.py b/ecdsa/test_pyecdsa.py index 7a20b70..6371a53 100644 --- a/ecdsa/test_pyecdsa.py +++ b/ecdsa/test_pyecdsa.py @@ -518,6 +518,14 @@ class RFC6979(unittest.TestCase): hash_func = sha256, expected = int("8fa1f95d514760e498f28957b824ee6ec39ed64826ff4fecc2b5739ec45b91cd", 16)) + def test_SECP256k1_2(self): + self._do( + generator=SECP256k1.generator, + secexp=int("cca9fbcc1b41e5a95d369eaa6ddcff73b61a4efaa279cfc6567e8daa39cbaf50", 16), + hsh=sha256("sample").digest(), + hash_func=sha256, + expected=int("2df40ca70e639d89528a6b670d9d48d9165fdc0febc0974056bdce192b8e16a3", 16)) + def test_1(self): # Basic example of the RFC self._do( |