Skip to content

Commit c920dc3

Browse files
committed
chore: bump pynacl to 1.5.0
1 parent 1b18d85 commit c920dc3

3 files changed

Lines changed: 20 additions & 39 deletions

File tree

poetry.lock

Lines changed: 15 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readme = "README.md"
88

99
[tool.poetry.dependencies]
1010
python = "^3.11"
11-
PyNacl = "1.4.0"
11+
PyNacl = "1.5.0"
1212

1313
[tool.poetry.dev-dependencies]
1414
black = "22.3.0"

tankersdk_identity/crypto/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class InvalidSignature(Error):
2525

2626

2727
def generichash(buffer: bytes, size: int) -> bytes:
28-
return generichash_blake2b_salt_personal(buffer, digest_size=size) # type: ignore
28+
return generichash_blake2b_salt_personal(buffer, digest_size=size)
2929

3030

3131
def hashed_provisional_email(email: str) -> str:
@@ -43,21 +43,21 @@ def sign_keypair() -> Tuple[bytes, bytes]:
4343
"""
4444
Generate a pair of signing keys and return a tuple (public_key, private_key)
4545
"""
46-
return crypto_sign_keypair() # type: ignore
46+
return crypto_sign_keypair()
4747

4848

4949
def box_keypair() -> Tuple[bytes, bytes]:
5050
"""
5151
Generate a pair of encryption keys and return a tuple (public_key, private_key)
5252
"""
53-
return crypto_box_keypair() # type: ignore
53+
return crypto_box_keypair()
5454

5555

5656
def sign_detached(message: bytes, private_key: bytes) -> bytes:
5757
"""
5858
Sign a message with a private key and return the detached signature
5959
"""
60-
raw_combined = cast(bytes, crypto_sign(message, private_key))
60+
raw_combined = crypto_sign(message, private_key)
6161
return raw_combined[:crypto_sign_BYTES]
6262

6363

0 commit comments

Comments
 (0)