Skip to content

Enhance documentation for EcdhPublicKey imports - #319

Merged
mosuem merged 5 commits into
google:masterfrom
garimaadas22:master
Jul 27, 2026
Merged

Enhance documentation for EcdhPublicKey imports#319
mosuem merged 5 commits into
google:masterfrom
garimaadas22:master

Conversation

@garimaadas22

Copy link
Copy Markdown
Contributor

This PR adds missing dartdoc examples for EcdhPublicKey methods, as part of #283.

Changes:

  • Added a runnable example for importRawKey()
  • Added a runnable example for importSpkiKey() (existing compatibility notes preserved)
  • Added documentation with example for exportRawKey(), which previously had no doc comment at all

All examples follow the self-contained pattern (with imports and a runnable main()) used elsewhere in the codebase, consistent with #281.

Added documentation for importing EcdhPublicKey from raw elliptic curve point and SPKI format.
@google-cla

google-cla Bot commented Jul 13, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Comment thread lib/src/webcrypto/webcrypto.ecdh.dart Outdated
@jonasfj

jonasfj commented Jul 15, 2026

Copy link
Copy Markdown
Member

See also #283

@mosuem

mosuem commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

LGTM after formatting fix. Moving to the standalone examples from #283 can also be done in a follow-up.

Comment thread lib/src/webcrypto/webcrypto.ecdh.dart
Clarify the documentation for importing EcdhPublicKey by specifying the use of EC algorithm identifiers and point encoding.
@mosuem
mosuem merged commit ac68ed0 into google:master Jul 27, 2026
14 checks passed
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.

4 participants