Skip to content

Add support for verifying hashed signatures#7

Merged
bitbeans merged 3 commits intobitbeans:masterfrom
maxraab:mr-add-support-for-hashed-signatures
Nov 15, 2025
Merged

Add support for verifying hashed signatures#7
bitbeans merged 3 commits intobitbeans:masterfrom
maxraab:mr-add-support-for-hashed-signatures

Conversation

@maxraab
Copy link
Copy Markdown
Collaborator

@maxraab maxraab commented Nov 14, 2025

This PR introduces basic support for verifying hashed signatures. This also removes the 1GB limit for verification. The limits are retained for “legacy” hashes.

Adding two tests:
 - verify a legacy signature (as before)
 - verify a hashed signature
To make sure that we remain compatible.
Detect if it's a hashed signature based on the SignatureAlgorithm:
 - Ed = Ed25519(message) -> legacy
 - ED = Ed25519(Blake2b-512(message)) -> hashed
LoadMessageFile() is used for signing as well as verifying. By
introducing a new method to compute the Blake2b-512 hash, we can get rid
of the 1GB size limit for the verifying process.
@maxraab
Copy link
Copy Markdown
Collaborator Author

maxraab commented Nov 14, 2025

As mentioned in my email, I am willing to continue investing my time and energy into the project. There is still some potential, i.e., creating hashed signatures. As of now, this feature can be considered complete.

It would be great if you could review the changes, merge them, and then release them.

I have tried to adapt to your coding style as good as possible. If you see improvements, please let me know.

@bitbeans bitbeans merged commit 0a9aaff into bitbeans:master Nov 15, 2025
1 check failed
@maxraab maxraab deleted the mr-add-support-for-hashed-signatures branch November 15, 2025 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants