Skip to content

Temporary accounts per session #1175

Description

@filvecchiato

One deposit account and one refund account per session, using the product accounts core already derives.

  • Accounts under the reserved fund.<network suffix> product (like uid./peopl.)
  • Index = getcash label zero-padded to 32 bytes: onramp:eph:<source>:<n>, onramp:rf:<source>:<n>, wd:eph:<source>:<n>
  • n from a persisted counter per source, never reused; check the account is empty on chain before handing it out
  • No product can derive, sign with or top up from fund.* accounts
  • Claimed with the existing PaymentTopUpSource::ProductAccount
  • Pairing hosts derive the address from the subtree public key

Done when A session carries its deposit and refund accounts, identical after an app restart, on signing and pairing hosts.
Depends on #1137
Refs #1189 · host_logic/product_account.rs (RFC-0022)

Activity

  1. changed the title [-]Temporary account per session[/-] [+]Temporary accounts per session[/+] on Oct 3, 2026
  2. filvecchiato commented on Oct 5, 2026

    @filvecchiato
    CollaboratorAuthor
  3. self-assigned this
    on Oct 5, 2026
  4. filvecchiato commented on Oct 6, 2026

    @filvecchiato
    CollaboratorAuthor

    Not needed: the provider derives its own ephemeral accounts with entropy.derive, as getcash does.

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

Metadata

Metadata

Assignees

Labels

FundingFunding modality workstream

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions