Skip to content

Commit 6c382ff

Browse files
committed
Update requirements
1 parent 7031b69 commit 6c382ff

File tree

6 files changed

+10
-11
lines changed

6 files changed

+10
-11
lines changed

requirements-dev.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ pip
44
pytest
55
setuptools
66
wheel
7-
pyinstaller >= 4.9
8-
cx_Freeze >= 6.10
7+
pyinstaller >= 5.5
8+
cx_Freeze >= 6.12
99
tabulate

requirements-gui.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
pysimplegui >=4.56
1+
pysimplegui >=4.60

requirements-wallet.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
eth-account >=0.6.0, <1
2-
pycryptodome >=3.10.1
1+
eth-account >=0.7.0, <1
2+
pycryptodome >=3.15

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ hdwallet >=2.1, <3
55
mnemonic >=0.2, <1
66
qrcode >=7.3
77
shamir-mnemonic >=0.2, <1
8-
cx_Freeze >=6.10 ; sys_platform == "win32"
8+
cx_Freeze >=6.12 ; sys_platform == "win32"

slip39/gui/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ def update_seed_entropy( event, window, values ):
775775
if data and all( '0' <= c <= '9' for c in data ):
776776
N = {
777777
'0': 2, '1': 2, # Coin flips
778-
'2': 6, '3': 6, '4': 6, '5': 6, '6': 6, # 6-sided (regular) dice
778+
'2': 6, '3': 6, '4': 6, '5': 6, '6': 6, # 6-sided (regular) dice
779779
'7': 10, '8': 10, '9': 10, # 10-sided (enter 0 for the 10 side)
780780
}[max( data )]
781781
interpretation = f"{N}-sided Dice" if N > 2 else "Coin-flips/Binary"

slip39/recovery_test.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,6 @@ def compute_entropy_limits( compute_entropy, bits, overlap, stride, threshold, s
735735
rejects.append( reject )
736736
rejected = sum( avg(list(rejects)[-n:]) for n in avg_over ) / len( avg_over )
737737
if reject or i % checks == 0:
738-
#log.warning(
739738
( log.info if i % checks == 0 else log.debug )(
740739
f" - {i:6} {threshold=:7.5f}: {100*rejected:7.3f}%; "
741740
+ ', '.join( f"{100*avg(list(rejects)[-n:]):7.3f}%/{n}" for n in avg_over )
@@ -754,7 +753,7 @@ def test_shannon_limits( detailed=False ):
754753
755754
"""
756755
shannon_limits = {}
757-
strengths = (128, 256, 512)
756+
strengths = (128, 256, 512) + (160, 192, 224) # SLIP-39 + BIP-39
758757
strides = (3, 4, 5, 6, 7, 8)
759758
overlapping = (False, True)
760759
cycles = 100001
@@ -798,7 +797,7 @@ def test_signal_limits( detailed=False ):
798797
799798
"""
800799
signal_limits = {}
801-
strengths = (128, 256, 512)
800+
strengths = (128, 256, 512) + (160, 192, 224) # SLIP-39 + BIP-39
802801
strides = (3, 4, 5, 6, 7, 8)
803802
overlapping = (False, True)
804803
cycles = 100001
@@ -886,7 +885,7 @@ def test_poor_entropy():
886885

887886
analysis = analyze_entropy( entropy )
888887
print( f"Analysis of base-64 phrase: {analysis}" )
889-
assert "Shannon entropy reduced at offset 5 in 41x 6-bit symbols" in analysis
888+
assert analysis and "Shannon entropy reduced at offset 5 in 41x 6-bit symbols" in analysis
890889

891890

892891
def test_good_entropy():

0 commit comments

Comments
 (0)