forked from FellowTraveler/Open-Transactions-old
-
Notifications
You must be signed in to change notification settings - Fork 0
Sample Purse
FellowTraveler edited this page Mar 24, 2011
·
7 revisions
Whenever cash tokens (digital bearer certificates) are exchanged between the client and the server, they are stored in encrypted form, inside a purse. This purse can then be stored to disk or base-64 encoded and attached to a deposit transaction, or exchanged for new tokens, etc. Or you can re-encrypt them to your friend’s public key and send them to him. Etc.
A good wallet software will periodically scan the purses stored on your hard drive for each asset type and make sure none of the tokens are getting close to their expiration period. (And exchange them automatically if they are.)
-----BEGIN SIGNED PURSE-----
Hash: SAMY
<?xml version="1.0"?>
<purse version="1.0"
userID=""
assetTypeID="XUHBvdsWAEmErZMzHaRKaNPaAVsUvKwL4uLY4nOY2s4"
serverID="44FmyPAgrmGu671RywGnhrt8aR6tzmNFn9WKQ92BXn">
<token>
AAAAgFRofqqN/HNHy1hblXaPxZGUMtma79fT8m/XCaC0fGN/Vdu+S6NUTyQnWIS1
U2N5C76xFihETjT8P//BgvKq2loTloZqbKTT60URrY8s7ZkuyQYeu8TGqjJDwfd0
/sqCGUMs/8n5NjJ1F3hqoe7Dzw2ptjabVHoHWn3s3vpFFMxJ8NyBauVa4RGT51mP
9VBwk/Zzx1YqrOY4/i1nQ5MGlimB5q+qGGjIhD5L2YLyShTiwyiOaGUL+cnldBji
NgwWuk8FIBqgbpmnlupZshPI2svgjca1vqRkCBKfSv5YT7MqyFVR6CG/f5Dxx7rm
in0Il00+4CT6liiBji2mxsYBar7LhqDaZ3zlqwIKGM0qOAiPsormFkmd1JJaahph
Y5fq0eXRLGrBDh5cpMb0ip/uw3rpRpdqTK0VxBBjlHRAMbdGcdP3hOsBTlCyN2GW
nT2hTejbkM4IGDhKcosSLNOjYfgLSqVVoxIqSgCM7bV5hfjYqqFvGjClF6wTvQLE
roxAHPuuFOpBR+VAg6gv/vc+ewIu7zDJGKhVRoFy6Apcp9hW6MY8+pfG+r/CZNVx
HAeN++kFRsoD49+geVWsA/+qF8gYMZ8kNdWGviQ3aC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