Skip to content

Relay spec assumes 1:1 envelope:transaction #2

@dbrain

Description

@dbrain

The relay /pay and /status spec is geared towards singular transactions.

  • /pay outputs are expected to be validated on the /pay call and error if something is incorrect there
  • /status (or /pay response) is relative to a single transaction

Bullet points so I don't need to form human sentences:

  • Given we're working with dogecoin: URIs and have fallbacks for the classic "pay address amount" usage there isn't anything preventing weird payments getting through. A customer may pay 5 DOGE in one transaction from one account and 5 DOGE in another transaction from another account
  • Assuming the payment address is the identifier: there's room for things like underpayment/overpayment
  • A potential scenario would be customer pays via wallet that does not support dogeconnect, gets told the payment was too low because they accidentally modified the amount/something, goes to pay again via a wallet that does support doge connect and is unable to pay because a tx has already been created

Questions:

  • What should we do here? Am I missing something obvious or is this something we should support and be a bit more open to multiple payments?
  • I guess another thing: As the person awaiting payment am I also polling /status or am I supposed to be smarter?
  • Is address supposed to be the core tx identifier? I guess that forces HD wallets for anyone wanting to accept payments?

Probably all a bit edge casey, but it's an edge casey world.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions