Skip to content

Conversation

@boorad
Copy link
Collaborator

@boorad boorad commented Jan 28, 2026

Summary

This PR addresses issues #888 and #889:

Issue #888: Missing crypto.sign() and crypto.verify() functions

Added the missing one-shot sign() and verify() functions that match the Node.js API. These complement the existing streaming createSign()/createVerify() API.

Changes:

  • Add sign(algorithm, data, key, callback?) with sync and callback overloads
  • Add verify(algorithm, data, key, signature, callback?) with sync and callback overloads
  • Add comprehensive tests for one-shot sign/verify
  • Update coverage docs

Issue #889: Ed class documentation

Updated ed25519.mdx to document the Ed class which provides a simpler API inspired by @noble/curves. This is in addition to the standard Node.js compatible API.

Changes:

  • Document Ed class constructor and supported curve types (ed25519, x25519, ed448, x448)
  • Add examples for key generation, signing, verifying
  • Add X25519 shared secret (Diffie-Hellman) examples
  • Include methods reference table
  • Update Node.js API examples to use one-shot sign/verify

Closes #888
Closes #889

Adds the missing crypto.sign() and crypto.verify() one-shot functions
that match the Node.js API. These complement the existing streaming
createSign()/createVerify() API.

- Add sign() and verify() with sync and callback overloads
- Add comprehensive tests for one-shot sign/verify
- Update coverage docs
Updates ed25519.mdx to document the Ed class which provides a simpler
API inspired by @noble/curves. This is in addition to the standard
Node.js compatible API.

- Document Ed class constructor and supported curve types
- Add examples for key generation, signing, verifying
- Add X25519 shared secret (Diffie-Hellman) examples
- Include methods reference table
- Update Node.js API examples to use one-shot sign/verify
@github-actions
Copy link
Contributor

🤖 End-to-End Test Results - Android

Status: ✅ Passed
Platform: Android
Run: 21444386611

📸 Final Test Screenshot

Maestro Test Results - android

Screenshot automatically captured from End-to-End tests and will expire in 30 days


This comment is automatically updated on each test run.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 28, 2026

🤖 End-to-End Test Results - iOS

Status: ✅ Passed
Platform: iOS
Run: 21444386612

📸 Final Test Screenshot

Maestro Test Results - ios

Screenshot automatically captured from End-to-End tests and will expire in 30 days


This comment is automatically updated on each test run.

@boorad boorad merged commit 8c35b74 into main Jan 28, 2026
4 of 5 checks passed
@boorad boorad deleted the fix/sign-doc-bugs branch January 28, 2026 19:49
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.

✨ Public website documentation - ed Class example 🐛 1.0.6 - crypto.sign problem

2 participants