Skip to content

Contracts docs: public key material encoding and validation #620

Closed

Description

@codebestia

Branch: Open your PR against dev. PRs targeting main are closed automatically.

Description:
Write apps/backend/docs/contracts-key-material.md for lib/keys.ts, the single validator every key-accepting endpoint runs. Client implementers need exact encodings, and the REST schema reference (#270) covers request shapes, not key formats.

Acceptance criteria:

  • A table of every key type the server accepts — identity key, signed prekey, one-time prekey, signature, MLS key package — with encoding (base64), raw versus SPKI form, and exact byte length (ED25519_RAW_KEY_BYTES 32, ED25519_SPKI_BYTES 44, ED25519_SIG_BYTES 64, MLS key package 32–4096)
  • Documents how the web client converts between raw and SPKI (rawEd25519PublicKeyToSpki / spkiToRawEd25519PublicKey in apps/web/src/lib/x3dh.ts)
  • Documents what signature is verified over what bytes for signed prekeys
  • Gives one valid and one rejected example payload per key type

Activity

  1. 0xDeon commented on Oct 20, 2026

    @0xDeon
    Contributor

    @0xDeon has applied to work on this issue as part of the Stellar Wave Program's 10th wave.

    Hi team, can i please work on this?

    ℹ️ Repo Maintainers: To accept this application, review their application or assign @0xDeon to this issue.

  2. drips-wave commented on Oct 20, 2026

    @drips-wave

    Congratulations, @0xDeon! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.

    🧑‍💻 @0xDeon: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

    Warning

    When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

    🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

    🌊 Happy Wave 🌊

  3. github-actions commented on Oct 20, 2026

    @github-actions

    Closed by #647, merged into dev.

  4. drips-wave commented on Oct 20, 2026

    @drips-wave

    This issue has been completed by @0xDeon as part of the Stellar Wave Program's 10th Wave 🥳

    😎 @0xDeon: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

    🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackenddocumentationImprovements or additions to documentatione2ee

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions