This is an experiment in two things simultaneously:
- An Actors style description
- A design for SRB.
The problem at hand is rather simple but has novel context requirements.
Here are some early decisions:
- I will initially ignore issues of persistence.
- I will assume that some plug-in is invoked by an html payment request item.
- I will support multi account users.
- I will not require the single account user to understand multi account
semantics.
Some (all?) of the objects:
- Account
- Info and authority (if necessary) to signal the bank (IP adderess or what
ever)
- account number with bank
- Balance
- Secret shared with bank
- Optional Auditor reference
- Custodian of accounts
- Set of pairs of (user recognition info, alternatively(account reference,
custodian reference))
- Transient payment context
- Exists until payment is acknowledged by server.
- Captures acknowledgment from bank.
- Auditor
The account custodian