[[collapsible show="+ The Rcoin calculus" hide="- hide this" hideLocation="both"]]
The Rcoin's calculus. |
Used for transactions in points of respect, which are visible only in its issuing group ruled by consensus about initial equal distribution of Rcoins and the 3 transaction associative arrays: |
License |
Humanitarian Agpl |
The Rcoin's variables: |
id |
id of Rcoin in the form of primary.number_of_sub_units.amount_of_sub_units |
s |
startValue the value of the Rcoin in its issue time |
i |
issue time of the Rcoin |
l |
last time or expiration date of the Rcoin |
d=l-i |
duration of the Rcoin |
a=s/d |
amplitude of the Rcoin |
The Rwallet table: |
used for |
calculating the current wallet of Rcoins of one person in one community |
column =l |
record's field =either in the first record (m,r), as 0<=r<=1, or (a,id) |
x |
the number of people in the community |
n, as i<=n<=l and as in now |
the current time |
calculating |
per each column l, { m=0; for each recorded{m+=a(recorded);} t=m/r; m+=t/x; r=m/t; m*=l-n;}, where t is the treasury(l) being the total sum in the group of rcoins of which expiration date is l, of which, in ratio r, m rcoins belong to the owner. |
The 3 transaction associative arrays - the 'Secrets', 'Coins' and 'Owners': |
'Secrets': hash(secret) => |
{(complete id including upper and lower bound, time stamp) signed by its current owner}, were secrets are only one time used |
'Coins' : hash(primary_id(Rcoin)) => |
{l,s,d,number_of_sub_units} |
'Owners' : hash(primary.number_of_sub_units_id(Rcoin)) => |
{signed-by-previous-owner(hashW),upper and lower bound of sub units),,,}, where hashW is hash(secret,iiaom) of the current owner and the number of owners is smaller or equal to number_of_sub_units}. |
The 4 steps in each transaction |
sending (pubk,iiaom,secret,id(rcoin)) of current owner |
from current owner to the next owner in an end-to-end-encrypted-private message. |
Testing by next owner and later the group |
Is secret (id(Rcoin), time stamp) signed by its current owner in Secrets?
Does the owner match the iiaom?
Is the hashW match secrete and iiaom in Owners?
Is the signature match with the pub key of the curent owner? |
Creating the hashW of new owner by both owners |
singing the current onwer on the hashW of the new owner |
Broadcasting to the group in forum and/or direct p2p communication by next owner |
current (hash(secret), id(Rcoin), hashW, pubk) together with the new owner's created record in Secrets + new hashW signed by the current owner |