Skip to content

docs(express): document the address/derive endpoint and trust model#9038

Merged
pranishnepal merged 1 commit into
masterfrom
rajangarg047/wcn-919-derive-address-docs
Jun 16, 2026
Merged

docs(express): document the address/derive endpoint and trust model#9038
pranishnepal merged 1 commit into
masterfrom
rajangarg047/wcn-919-derive-address-docs

Conversation

@rajangarg047

Copy link
Copy Markdown
Contributor

Summary

Documents the POST /api/v2/{coin}/address/derive endpoint by expanding its OpenAPI doc comment — the source of the generated API reference (the repo documents endpoints via typed-route JSDoc, not the README, matching isWalletAddress).

The expanded description covers:

  • Supported coins + keychain material: UTXO xpub triple via pub (with chain → script-type mapping: 0/1 P2SH, 10/11 P2SH-P2WSH, 20/21 P2WSH/bech32, 30/31 P2TR); MPC/TSS commonKeychain for EVM (v3/5/6; legacy forwarder v1/2/4 not yet supported) and EdDSA (SOL, incl. SMC derivedFromParentWithSeed).
  • Offline / air-gapped + stateless properties.
  • Recommended derive→verify round-trip with iswalletaddress.
  • "Bring your own trusted keys" — the verification is only meaningful with independently-held keychains; verifying against keys freshly fetched from the same API is circular.

Context

FR-465 Phase 1 docs (WCN-919). Docs-only change to one file.

Test plan

  • OpenAPI spec regenerates cleanly — ran the exact audit-api-spec CI command (openapi-generator --codec-file … index.ts), exit 0, description present in the generated spec
  • eslint clean
  • CI

🤖 Generated with Claude Code

Expand the OpenAPI doc comment for POST /api/v2/{coin}/address/derive (the source
of the generated API reference) to cover: supported coins and the keychain material
each needs (UTXO xpub triple + chain/script-type codes; MPC/TSS commonKeychain for
EVM and EdDSA), the offline/air-gapped + stateless properties, the recommended
derive->verify round-trip with iswalletaddress, and the "bring your own trusted
keys" guidance (the verification is only meaningful with independently-held keys).

WCN-919

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jun 16, 2026

Copy link
Copy Markdown

WCN-919

@pranishnepal pranishnepal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs

@pranishnepal pranishnepal merged commit b07dacd into master Jun 16, 2026
22 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.

2 participants