Skip to content

fix: accept raw Ed25519 public keys#1

Open
litaibai2046-debug wants to merge 1 commit into
permission-protocol:mainfrom
litaibai2046-debug:codex/raw-ed25519-key-support
Open

fix: accept raw Ed25519 public keys#1
litaibai2046-debug wants to merge 1 commit into
permission-protocol:mainfrom
litaibai2046-debug:codex/raw-ed25519-key-support

Conversation

@litaibai2046-debug
Copy link
Copy Markdown

Summary

  • Accept 32-byte raw Ed25519 public keys in addition to PEM/base64 DER SPKI input.
  • Wrap raw keys with the standard Ed25519 SubjectPublicKeyInfo prefix before passing them to Node crypto.
  • Update the CLI option help and add a verifier regression fixture/test for raw base64 public keys.

Why

Some key endpoints may expose Ed25519 public keys as raw 32-byte base64 values instead of DER SPKI. The verifier already supports PEM and base64 DER; this makes key resolution tolerant of the raw representation as well.

Verification

  • npm test
  • npm run build

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