Skip to content

Commit 17b3f44

Browse files
committed
Fix: typo
1 parent 2a8b0bb commit 17b3f44

File tree

9 files changed

+15
-15
lines changed

9 files changed

+15
-15
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ DETAIL: bool = True
6666
bip38: BIP38 = BIP38(
6767
cryptocurrency=Cryptocurrency, network=NETWORK
6868
)
69-
# Wallet Important Format's
69+
# Wallet Import Format's
7070
WIFs: List[str] = [
7171
private_key_to_wif(
7272
private_key=PRIVATE_KEY, cryptocurrency=Cryptocurrency, network=NETWORK, wif_type="wif"

bip38/bip38.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def create_new_encrypted_wif(
299299

300300
factor_b: bytes = double_sha256(seed_b)
301301
if not 0 < bytes_to_integer(factor_b) < N:
302-
raise Error("Invalid EC encrypted WIF (Wallet Important Format)")
302+
raise Error("Invalid EC encrypted WIF (Wallet Import Format)")
303303

304304
public_key: PublicKey = PublicKey.from_point(
305305
PublicKey.from_bytes(pass_point).point() * bytes_to_integer(factor_b)
@@ -416,7 +416,7 @@ def confirm_code(
416416
if lot_and_sequence:
417417
pass_factor: bytes = double_sha256(pass_factor + owner_entropy)
418418
if bytes_to_integer(pass_factor) == 0 or bytes_to_integer(pass_factor) >= N:
419-
raise Error("Invalid EC encrypted WIF (Wallet Important Format)")
419+
raise Error("Invalid EC encrypted WIF (Wallet Import Format)")
420420

421421
pass_point: bytes = PrivateKey.from_bytes(pass_factor).public_key().raw_compressed()
422422
salt: bytes = address_hash + owner_entropy
@@ -544,7 +544,7 @@ def decrypt(
544544
bytes_to_integer(decrypted_half_1 + decrypted_half_2) ^ bytes_to_integer(derived_half_1)
545545
)
546546
if bytes_to_integer(private_key) == 0 or bytes_to_integer(private_key) >= N:
547-
raise Error("Invalid Non-EC encrypted WIF (Wallet Important Format)")
547+
raise Error("Invalid Non-EC encrypted WIF (Wallet Import Format)")
548548

549549
public_key: PublicKey = PrivateKey.from_bytes(private_key).public_key()
550550
address: str = P2PKHAddress.encode(
@@ -588,7 +588,7 @@ def decrypt(
588588
if lot_and_sequence:
589589
pass_factor: bytes = double_sha256(pass_factor + owner_entropy)
590590
if bytes_to_integer(pass_factor) == 0 or bytes_to_integer(pass_factor) >= N:
591-
raise Error("Invalid EC encrypted WIF (Wallet Important Format)")
591+
raise Error("Invalid EC encrypted WIF (Wallet Import Format)")
592592

593593
pre_public_key: PublicKey = PrivateKey.from_bytes(pass_factor).public_key()
594594
salt = address_hash + owner_entropy
@@ -610,7 +610,7 @@ def decrypt(
610610

611611
factor_b: bytes = double_sha256(seed_b)
612612
if bytes_to_integer(factor_b) == 0 or bytes_to_integer(factor_b) >= N:
613-
raise Error("Invalid EC encrypted WIF (Wallet Important Format)")
613+
raise Error("Invalid EC encrypted WIF (Wallet Import Format)")
614614

615615
# multiply private key
616616
private_key: bytes = integer_to_bytes(

bip38/const.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# non-EC-multiplied & EC-multiplied private key prefixes
1212
NO_EC_MULTIPLIED_PRIVATE_KEY_PREFIX: int = 0x0142
1313
EC_MULTIPLIED_PRIVATE_KEY_PREFIX: int = 0x0143
14-
# non-EC-multiplied Wallet Important Format (WIF) flags
14+
# non-EC-multiplied Wallet Import Format (WIF) flags
1515
NO_EC_MULTIPLIED_WIF_FLAG: int = 0xc0
1616
NO_EC_MULTIPLIED_WIF_COMPRESSED_FLAG: int = 0xe0
1717
# Magic bytes for lot and sequence and non lot and sequence
@@ -40,7 +40,7 @@
4040
UNCOMPRESSED_PUBLIC_KEY_PREFIX: int = 0x04
4141
# Checksum byte length
4242
CHECKSUM_BYTE_LENGTH: int = 4
43-
# Wallet Important Format (WIF) types
43+
# Wallet Import Format (WIF) types
4444
WIF_TYPES = ["wif", "wif-compressed"]
4545
# Public Key types
4646
PUBLIC_KEY_TYPES = ["uncompressed", "compressed"]

bip38/wif.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def decode_wif(
7373

7474
raw: bytes = decode(wif)
7575
if not raw.startswith(integer_to_bytes(wif_prefix)):
76-
raise WIFError(f"Invalid Wallet Important Format (WIF)")
76+
raise WIFError(f"Invalid Wallet Import Format (WIF)")
7777

7878
prefix_length: int = len(integer_to_bytes(wif_prefix))
7979
prefix_got: bytes = raw[:prefix_length]
@@ -86,7 +86,7 @@ def decode_wif(
8686
wif_type: str = "wif"
8787

8888
if len(private_key) not in [33, 32]:
89-
raise WIFError(f"Invalid Wallet Important Format (WIF)")
89+
raise WIFError(f"Invalid Wallet Import Format (WIF)")
9090
elif len(private_key) == 33:
9191
private_key = private_key[:-len(integer_to_bytes(COMPRESSED_PRIVATE_KEY_PREFIX))]
9292
wif_type = "wif-compressed"

desktop/ui/bip38.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@
740740
<item>
741741
<widget class="QLabel" name="noECWIFQLabel">
742742
<property name="text">
743-
<string>Wallet Important Format (WIF)</string>
743+
<string>Wallet Import Format (WIF)</string>
744744
</property>
745745
</widget>
746746
</item>

desktop/ui/ui_bip38.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ def retranslateUi(self, MainWindow):
852852
self.noECWIFTypeQLabel.setText(QCoreApplication.translate("MainWindow", u"WIF Type", None))
853853
self.noECWIFTypeQComboBox.setPlaceholderText(QCoreApplication.translate("MainWindow", u"(Select)", None))
854854
self.noECPrivateKeyConvertQPushButton.setText(QCoreApplication.translate("MainWindow", u"Convert", None))
855-
self.noECWIFQLabel.setText(QCoreApplication.translate("MainWindow", u"Wallet Important Format (WIF)", None))
855+
self.noECWIFQLabel.setText(QCoreApplication.translate("MainWindow", u"Wallet Import Format (WIF)", None))
856856
self.noECEncryptQPushButton.setText(QCoreApplication.translate("MainWindow", u"Encrypt", None))
857857
self.ecOwnerSaltQLabel.setText(QCoreApplication.translate("MainWindow", u"Owner Salt", None))
858858
self.ecOwnerSaltGenerateQPushButton.setText(QCoreApplication.translate("MainWindow", u"Generate", None))

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
# },
8686
# "sidebar_hide_name": True,
8787
# "navigation_with_keys": True,
88-
# "announcement": "<em>Important</em> announcement!",
88+
# "announcement": "<em>Import</em> announcement!",
8989
}
9090

9191
# Add any paths that contain custom static files (such as style sheets) here,

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ _______________
7777
bip38: BIP38 = BIP38(
7878
cryptocurrency=Cryptocurrency, network=NETWORK
7979
)
80-
# Wallet Important Format's
80+
# Wallet Import Format's
8181
WIFs: List[str] = [
8282
private_key_to_wif(
8383
private_key=PRIVATE_KEY, cryptocurrency=Cryptocurrency, network=NETWORK, wif_type="wif"

docs/wif.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:orphan:
22

33
=======================
4-
Wallet Important Format
4+
Wallet Import Format
55
=======================
66

77
.. automodule:: bip38.wif

0 commit comments

Comments
 (0)