Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Payjoin receive and send #508

Open
wants to merge 9 commits into
base: refactoring-bloc
Choose a base branch
from

Conversation

kumulynja
Copy link
Contributor

@kumulynja kumulynja commented Mar 7, 2025

This PR adds the data layer using PDK with session persistence, continuous fetching of the payjoin directory in a separate isolate and automatic resume at startup. The data layer streams events when a payjoin request or proposal is received and the higher layers (payjoin repository and payjoin service) are implemented to listen and process these events. The payjoin service uses other services and repositories like the Wallet service, Electrum Server repository and others to verify, sign and broadcast the payjoins. The payjoin service exposes a stream the rest of the application can listen to to receive updates of payjoin sessions while they get processed.
Also the use cases to create a payjoin, send a payjoin and listen for updates of a specific payjoin were added.
This should complete the full refactor of payjoin for now. Only thing left to do now is write integration tests for an end-2-end receive and send payjoin.

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