Skip to content

Expose OHTTP key fetch for Python#1386

Merged
spacebear21 merged 1 commit intopayjoin:masterfrom
Mshehu5:py_ohttp_fetch
Mar 5, 2026
Merged

Expose OHTTP key fetch for Python#1386
spacebear21 merged 1 commit intopayjoin:masterfrom
Mshehu5:py_ohttp_fetch

Conversation

@Mshehu5
Copy link
Contributor

@Mshehu5 Mshehu5 commented Mar 5, 2026

This PR address the python part of #1362

The approaach i followed was to try and do what was done in the C# part

co-authored with chatgpt 5.3 codex

Pull Request Checklist

Please confirm the following before requesting review:

Introduce `fetch_ohttp_keys_async` in the Python bindings and update
integration tests to use it instead of `TestServices.fetch_ohttp_keys()`.
This keeps key retrieval inside Python HTTP code and aligns test flow
with the async sender/receiver path.

The helper fetches `/.well-known/ohttp-gateway` through the configured
relay proxy, validates TLS with the provided DER certificate and decodes the response into `OhttpKeys`.
@Mshehu5 Mshehu5 changed the title Add async OHTTP key fetch helper for Python Add OHTTP key fetch helper for Python Mar 5, 2026
@Mshehu5 Mshehu5 changed the title Add OHTTP key fetch helper for Python Expose OHTTP key fetch for Python Mar 5, 2026
Copy link
Collaborator

@spacebear21 spacebear21 left a comment

Choose a reason for hiding this comment

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

ACK 3e5d171

@spacebear21 spacebear21 merged commit 6c3a3e4 into payjoin:master Mar 5, 2026
23 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