Skip to content

[api] Document compressed Bitcoin keys API-4762 - #321

Open
lukejocz wants to merge 2 commits into
mainfrom
codex/bitcoin-compressed-key-docs
Open

lukejocz wants to merge 2 commits into
mainfrom
codex/bitcoin-compressed-key-docs

Conversation

@lukejocz

Copy link
Copy Markdown
Contributor

Summary

Document the Bitcoin origin-address requirements for both regular and streamed quotes.

 Bitcoin origin addresses:
   Native SegWit P2WPKH with confirmed coins
+  NEAR Intents: legacy P2PKH derived from a compressed public key
+  Legacy PSBT inputs include the full previous transaction
+  Uncompressed public keys are unsupported

Depends on 0x-labs #12997, API-4762. Merge these docs when the corresponding backend support is available.

Evidence

  • Before: Both originAddress descriptions list only P2WPKH and omit the compressed-key requirement.
  • After: Both descriptions include NEAR Intents P2PKH, the compressed-key restriction, and non_witness_utxo.
  • git diff --check passed. A parsed JSON comparison confirmed that only the two parameter descriptions changed.
  • fern check --api cross-chain --local passed with Fern 4.53.1. Fern also reports three invalid examples; the unchanged base at e9df2df7 produces the same report and passes.

Merge Danger

Door: Two-way. Revert the descriptions if the supported key formats change.

Blast Radius: Documentation. The change affects the two quote API references.

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

This branch has not been deployed

No deployments
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