-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there a method to display the public key of signatures? #1401
Comments
No, there's no method for extracting the public key from the signature object, since the signature object may not know the public key due to being initalized via |
Because it's for falcon possible to deterministic derive the public key from the private key, can we open this issue again? |
As this is a general API question, not specific to one language wrapper, reopening it here for wider discussion. |
I agree with Michael, I'm not inclined to add an API that can only be implemented by some algorithms. |
Agree as well |
There are 2 ways to init the signatures. One is to initiate with
signer.Init(sigName, nil)
After that, a keypair can be generated with
signer.GenerateKeyPair()
which returns the public key.
The second way is to initiate with:
signer.Init(sigName, secretKeyBytes)
This function doesn't return a public key. I also didn't find a function like:
signer.publicKey()
Is there a best practice for extracting the public key? It would be great if this function would be part of the liboqs-go library.
The text was updated successfully, but these errors were encountered: