Skip to content

Audit Sender SessionEvents #1119

Closed
Closed

Description

@spacebear21

The sender session events should follow the same logic as the receiver events, namely:

Activity

  1. added this to the payjoin-1.0 milestone on Sep 29, 2025
  2. self-assigned this
    on Sep 29, 2025
  3. arminsabouri commented on Sep 29, 2025

    @arminsabouri
    Contributor

    @zealsham will start by renaming the sender session events

  4. arminsabouri commented on Sep 29, 2025

    @arminsabouri
    Contributor

    @benalleng Will pick up adding a closed variant for the sender

  5. arminsabouri commented on Sep 29, 2025

    @arminsabouri
    Contributor

    @arminsabouri Will take audit the sender session events for primary info

  6. benalleng commented on Sep 30, 2025

    @benalleng
    Collaborator

    What sender state transition would it be appropriate to actually present this SessionEvent::Closed for

  7. arminsabouri commented on Oct 1, 2025

    @arminsabouri
    Contributor

    What sender state transition would it be appropriate to actually present this SessionEvent::Closed for

    Any case where we have to fatally or successfully close the session

  8. spacebear21 commented on Oct 1, 2025

    @spacebear21
    CollaboratorAuthor

    @arminsabouri correct me if I'm wrong but I think SessionEvent::Closed with a failure outcome could essentially replace SessionEvent::SessionInvalid for the sender?

  9. arminsabouri commented on Oct 1, 2025

    @arminsabouri
    Contributor

    @arminsabouri correct me if I'm wrong but I think SessionEvent::Closed with a failure outcome could essentially replace SessionEvent::SessionInvalid for the sender?

    Yes. I agree. both SessionInvalid and ProposalReceived indicate a session is closed and we can reconcile them into one explicit "closed" event.

  10. spacebear21 commented on Oct 1, 2025

    @spacebear21
    CollaboratorAuthor

    Cross posting from #1125 :

    For maximum consistency with the Receiver events, ultimately I'd like to see:

    pub enum SessionEvent {
        /// Sender was created with a HPKE key pair
        Created(WithReplyKey),
        /// Sender POSTed the Original PSBT, and is waiting to receive a Proposal PSBT
        PostedOriginalPsbt(),
        /// Sender received a Proposal PSBT
        RetrievedProposalPsbt(bitcoin::Psbt),
        /// Closed session
        Closed(SessionOutcome),
    }
  11. spacebear21 commented on Oct 3, 2025

    @spacebear21
    CollaboratorAuthor

    closed by #1125

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions