Skip to content

Instantly share code, notes, and snippets.

Andreas Schildbach schildbach

Block or report user

Report or block schildbach

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Payments
Currently the bitcoinj wallet API vends transaction objects and consequently wallet apps show their payment history as a list of transactions. This is not ideal in lots of cases. For example, a refund will appear disconnected from the original payment.
Here is a proposal for how to aggregate transactions (and more) into payments. Note payments are mutable, because they will collect data as time passes.
A payment consists of:
- Payment request. This can be either a BIP70 payment request or a BIP21 (URI) payment request. For payments that are sender initiated this part is missing (a payment will be more or less just a wrapper around a single transaction in this case).
- Transactions. We're interested in those which pay towards the payment request or refund money already paid.
- Confidences of these transactions.
- User notes
You can’t perform that action at this time.