Skip to content
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

Document if nacl.signing.SigningKey and VerifyKey can be reused. #509

Open
sseering opened this issue Jan 18, 2019 · 1 comment
Open

Document if nacl.signing.SigningKey and VerifyKey can be reused. #509

sseering opened this issue Jan 18, 2019 · 1 comment

Comments

@sseering
Copy link

The documentation should state if nacl.signing.SigningKey and VerifyKey objects can be used to sign/verify several messages with a keypair. Or does one need to create a new object for every message (like hmac and hashlib of the python standard library)?

From my testing it looks like one can reuse these object. Is this guaranteed in the future or just an deail of the current implementation?

@lmctv
Copy link
Contributor

lmctv commented Jan 18, 2019

Neither the public, nor the secret key get modified by the signature generation operation; you can use the same SigningKey instance to sign as many different messages as needed in any order, and the same VerifyKey instance to check any number of messages signed by the corresponding SigningKey,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants