@@ -34,9 +34,10 @@ This library uses only Python and the 'six' package. It is compatible with
3434Python 2.6, 2.7 and 3.3+. It also supports execution on the alternative
3535implementations like pypy and pypy3.
3636
37- If ` gmpy2 ` is installed, it will be used for faster arithmetic.
38- ` gmpy2 ` can be installed after this library is installed, ` python-ecdsa ` will
39- detect presence of ` gmpy2 ` on start-up and use it automatically.
37+ If ` gmpy2 ` or ` gmpy ` is installed, they will be used for faster arithmetic.
38+ Either of them can be installed after this library is installed,
39+ ` python-ecdsa ` will detect their presence on start-up and use them
40+ automatically.
4041
4142To run the OpenSSL compatibility tests, the 'openssl' tool must be in your
4243` PATH ` . This release has been tested successfully against OpenSSL 0.9.8o,
@@ -58,6 +59,11 @@ it's possible to specify installation together with `gmpy2`:
5859pip install ecdsa[gmpy2]
5960```
6061
62+ or (slower, legacy option):
63+ ```
64+ pip install ecdsa[gmpy]
65+ ```
66+
6167## Speed
6268
6369The following table shows how long this library takes to generate keypairs
@@ -87,7 +93,7 @@ On an Intel Core i7 4790K @ 4.0GHz I'm getting the following performance:
8793 BRAINPOOLP384r1: 96 0.00112s 892.44 0.00119s 841.48 0.00229s 436.71
8894 BRAINPOOLP512r1: 128 0.00214s 467.05 0.00226s 441.64 0.00422s 237.13
8995```
90- To test performance with ` gmpy2 ` loaded, use ` tox -e speedgmp2 ` .
96+ To test performance with ` gmpy2 ` loaded, use ` tox -e speedgmpy2 ` .
9197On the same machine I'm getting the following performance with ` gmpy2 ` :
9298```
9399 siglen keygen keygen/s sign sign/s verify verify/s
@@ -106,6 +112,8 @@ On the same machine I'm getting the following performance with `gmpy2`:
106112 BRAINPOOLP512r1: 128 0.00062s 1618.30 0.00063s 1577.42 0.00125s 799.29
107113```
108114
115+ (there's also ` gmpy ` version, execute it using ` tox -e speedgmpy ` )
116+
109117For comparison, a highly optimised implementation (including curve-specific
110118assembly for some curves), like the one in OpenSSL, provides following
111119performance numbers on the same machine.
0 commit comments