-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into pyup-scheduled-update-2019-04-01
- Loading branch information
Showing
9 changed files
with
283 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
685 Fabian Schuh <[email protected]> | ||
699 Fabian Schuh <[email protected]> | ||
154 Fabian Schuh <[email protected]> | ||
76 Fabian Schuh <[email protected]> | ||
77 Fabian Schuh <[email protected]> | ||
24 pyup-bot <[email protected]> | ||
20 gileadmcgee <[email protected]> | ||
10 user name <[email protected]> | ||
|
@@ -9,6 +9,7 @@ | |
4 bitcrab <[email protected]> | ||
3 Boombastic <[email protected]> | ||
3 Holger Nahrstaedt <[email protected]> | ||
3 Vladimir Kamarzin <[email protected]> | ||
3 abitmore <[email protected]> | ||
2 Nicolas Wack <[email protected]> | ||
2 Scott Howard <[email protected]> | ||
|
@@ -19,7 +20,6 @@ | |
1 Best Buy #2 <[email protected]> | ||
1 Holger Nahrstaedt <[email protected]> | ||
1 Pavel Martynov <[email protected]> | ||
1 Vladimir Kamarzin <[email protected]> | ||
1 iHashFury <[email protected]> | ||
1 jhtitor <[email protected]> | ||
1 linouxis9 <[email protected]> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ pylibscrypt==1.8.0 | |
pycryptodome==3.8.0 | ||
appdirs==1.4.3 | ||
scrypt==0.8.13 | ||
secp256k1==0.13.2 | ||
# secp256k1==0.13.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# -*- coding: utf-8 -*- | ||
import time | ||
from .fixtures import ( | ||
Base58, | ||
base58decode, | ||
base58encode, | ||
ripemd160, | ||
base58CheckEncode, | ||
base58CheckDecode, | ||
gphBase58CheckEncode, | ||
gphBase58CheckDecode, | ||
) | ||
|
||
wif_base58 = "5HueCGU8rMjxEXxiPuD5BDku4MkFqeZyd4dZ1jvhTVqvbTLvyTJ" | ||
wif_hex = "800c28fca386c7a227600b2fe50b7cae11ec86d3bf1fbe471be89827e19d72aa1d507a5b8d" | ||
wif_hex_raw = "0c28fca386c7a227600b2fe50b7cae11ec86d3bf1fbe471be89827e19d72aa1d" | ||
wif_gphbase85 = "6Mcb23muAxyXaSMhmB6B1mqkvLdWhtuFZmnZsxDczHRv4mL6Y" | ||
|
||
|
||
def benchmark_base58(): | ||
return (base58decode(wif_base58), base58encode(wif_hex)) | ||
|
||
|
||
def benchmark_base58check(): | ||
return (base58CheckDecode(wif_base58), base58CheckEncode(0x80, wif_hex_raw)) | ||
|
||
|
||
def benchmark_gphbase58check(): | ||
return (gphBase58CheckDecode(wif_gphbase85), gphBase58CheckEncode(wif_hex_raw)) | ||
|
||
|
||
def test_base58(benchmark): | ||
a, b = benchmark(benchmark_base58) | ||
assert a == wif_hex | ||
assert b == wif_base58 | ||
|
||
|
||
def test_base58check(benchmark): | ||
a, b = benchmark(benchmark_base58check) | ||
print(a, b) | ||
assert a == wif_hex_raw | ||
assert b == wif_base58 | ||
|
||
|
||
def test_gphbase58check(benchmark): | ||
a, b = benchmark(benchmark_gphbase58check) | ||
assert a == wif_hex_raw | ||
assert b == wif_gphbase85 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters