Skip to content

docs: replace newSecretKey with newKeyPair in Ecdsa example.#218

Open
BruceJian43 wants to merge 1 commit intodint-dev:masterfrom
BruceJian43:fix/ecdsa-documentation
Open

docs: replace newSecretKey with newKeyPair in Ecdsa example.#218
BruceJian43 wants to merge 1 commit intodint-dev:masterfrom
BruceJian43:fix/ecdsa-documentation

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