• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

spesmilo / electrum / 9003
64%

Build:
DEFAULT BRANCH: master
Ran 16 Sep 2019 06:50PM UTC
Jobs 2
Files 59
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
9003

push

travis-ci

SomberNight
<a href="https://github.com/spesmilo/electrum/commit/<a class=hub.com/spesmilo/electrum/commit/65d896be5a646e9c0650feaba0ddd36de4833918">65d896be5<a href="https://github.com/spesmilo/electrum/commit/65d896be5a646e9c0650feaba0ddd36de4833918">&quot;&gt;ecc: also use libsecp256k1 for point addition

time taken to add points changes to around 35% of what it was with python-ecdsa

-----

# benchmark runs before:
&amp;gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py
time taken: 3.7693 seconds
&amp;gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py
time taken: 3.8123 seconds
&amp;gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py
time taken: 3.7937 seconds

# benchmark runs after:
&amp;gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py
time taken: 1.3127 seconds
&amp;gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py
time taken: 1.3000 seconds
&amp;gt; python3.7-64 ..\wspace\201909_libsecp256k1_point_addition\bench.py
time taken: 1.3128 seconds

-----

# benchmark script:

import os
import time
from electrum.ecc import generator
from electrum.crypto import sha256

rand_bytes = os.urandom(32)
#rand_bytes = bytes.fromhex(&#39;</a><a class="double-link" href="https://github.com/spesmilo/electrum/commit/<a class="double-link" href="https://github.com/spesmilo/electrum/commit/d3d88983b91ee6dfd546ccf89b9a1ffb23b01bf2">d3d88983b</a>">d3d88983b</a><a href="https://github.com/spesmilo/electrum/commit/65d896be5a646e9c0650feaba0ddd36de4833918">eef322c2808cb3d951a3c116&#39;)
point_pairs = []
for i in range(30000):
    rand_bytes = sha256(rand_bytes)
    rand_int = int.from_bytes(rand_bytes, &quot;big&quot;)
    a = generator() * rand_int
    rand_bytes = sha256(rand_bytes)
    rand_int = int.from_bytes(rand_bytes, &quot;big&quot;)
    b = generator() * rand_int
    point_pairs.append((a,b))

t0 = time.time()
for a, b in point_pairs:
    c = a + b
t = time.time() - t0
print(f"time taken: {t:.4f} seconds")

10526 of 19304 relevant lines covered (54.53%)

1.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 9003.1 16 Sep 2019 06:50PM UTC 0
54.5
Travis Job 9003.1
2 9003.2 16 Sep 2019 06:50PM UTC 0
54.52
Travis Job 9003.2
Source Files on build 9003
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #9003
  • 65d896be on github
  • Prev Build on master (#9001)
  • Next Build on master (#9004)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc