Skip to content

Conversation

@BruceJian43
Copy link

Description

Updates the Ecdsa class documentation example to use the correct key generation method.

Changes

  • Replaced algorithm.newSecretKey() with algorithm.newKeyPair().

Reason

The previous example attempted to use newSecretKey(), which is intended for symmetric algorithms. Since ECDSA is an asymmetric algorithm, newKeyPair() is the correct method to generate a private/public key pair.

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.

1 participant