Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/sign_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import sys

from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
from cryptography.hazmat.primitives.serialization import Encoding, PublicFormat


def main() -> None:
Expand All @@ -32,7 +33,8 @@ def main() -> None:

with open(exe + ".sig", "w", newline="\n") as f:
f.write(signature.hex() + "\n")
public = key.public_key().public_bytes_raw().hex()
# public_bytes_raw() needs cryptography 40+; ubuntu-22.04 ships 3.4.8.
public = key.public_key().public_bytes(Encoding.Raw, PublicFormat.Raw).hex()
print(f"signed {name} (sha256 {digest}) with key {public}")


Expand Down
Loading