Less Technical
Implementation
Old Stuff
Older Stuff
Oldest Stuff |
Protocol /
AccountExtensionThe Account Extension specifies common account types and the way they integrate with the basic protocol. The formal extension name for use in Ripple External Account TypeThe Ripple External account allows an existing electronic financial account between two parties to be used in the Ripple network. Account Data Structure The following fields/values are added to the account data structure specified in PaymentProtocol.
{
"account": {
"account-type": "ripple-external",
"external-account-id": (string),
}
}
The balance, credit limits, and other account details are stored in an underlying system by one of the parties, called the account authority, who must always act as the formal initiator of the account (ie, send the initial Ripple Mutual Account TypeThe Ripple Mutual account provides a simple accounting system for creating a neighbour connection where no current formal account exists between node owners, or the existing account would be awkward to integrate with the Ripple core payment protocol (eg, it is not kept electronically). Account Data Structure The following fields/values are added to the account data structure specified in PaymentProtocol. Those fields in brackets are optional for any given account.
{
"account": {
"account-type": "ripple-mutual",
"balance": (decimal)
"initiator": {
("limit": (decimal))
},
"partner": {
("limit": (decimal))
},
"precision": (integer),
("interest-rate": (decimal),)
("agreement": (string))
}
}
Notes:
Handling Interest Interest is compounded continuously. Accumulated oustanding interest on the account is tacked on to each transaction to keep the balance up-to-date. For this purpose, there is an additional field on the
{
"receipt-redeem": {
"interest": (decimal),
}
}
This Implementations must take into account leap years as having 366 days when calculating accumulated interest between transactions based on the specified annual rate. If the annual rate was changed at some point between transactions, that must also be taken into account, by applying the first rate to the period before the change, and the second rate to the period after the change. |