Next Previous Contents

1. Messages/MIME types

1.1 Message Format

The sample message format is shown below on fig.1. Message is a MIME formatted message and has predefined fields. Each message must have following fields in it: "Request-Type","Currency-Name", "Cache-Value","Content-Type".

1.2 MIME types

Request/Reply types

"Request-Type"

"Reply-Type"

MIME-Version: 1.0
Message-Id: <3F32110F.000001.27755@artur.outpost.sw.ru>
Request-Type: TRANSFER
Currency-Name: USD
Cache-Value: 43.25
Content-Type: Multipart/Mixed;
  boundary="------------Boundary-00=_JVQ840MWKGMMYJ0CCJD0"


--------------Boundary-00=_JVQ840MWKGMMYJ0CCJD0
Content-Type: Money/Coin
Content-Transfer-Encoding: 7bit
Content-Description: Electronic Money
Currency: RU
Coin-Value: 50.000000
Coin-Number: 10
Vendor-Id: Bank, Ltd., Moscow, RU

tFLLn3Ci+GjOWTWr6cCKPm897oBrdpuv8CdPeaJjI6vaEnAcxa59SRtf3PAWPNSz
6389sPOSkXpN57d0Op9fd/FPqsklv/TQI5kmdM75owJSZJIZWNnod82CO+uruue+
eB7ILAE0i+V2kzVDGQFy2Qs5fs+hwldT0QXZK6OgAjY=
--------------Boundary-00=_JVQ840MWKGMMYJ0CCJD0--
fig.1 Sample request to server

Money MIME types

Money MIME types are used in attachments of messages. Money attchment must have the "Content-Type" set to "money/*" type, where first type 'money' is a group of money types, the second slash delimited defines the type of money.

Next field in the money attachment is "Coin-Value", this field must exist if the content-type is set to money/coin and defines the price of the coin. "Coin-Number" must exist if the content-type is set to money/coin and defines the coin number. Vendor-Id must exist if the content-type is set to money/coin and defines the Vendor-Id generated this coin. This three fields Vendor-Id,Coin-Value,Coin-Number and the encrypted body of the coin are used by the money servers for verifying coins in their databases, so fields MUST exist for security reason.


Next Previous Contents