@@ -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 (
0 commit comments