Encrypted digital currency (purse) principle:
1, the central bank issuing authority (purse) held a secret private key, only at the time of open wallet account to the user, the central bank with the only secret private key for each user purse public key to encrypt (note that not fingerprint signature, only than symmetric encryption, because want to use the central bank's public key to decrypt reduction user public key);
2, the central bank in each user generated when the wallet to the user to store three fixed information in my purse and three variable information:
Only one (1), the central bank's own public public key for each user are the same, the user with the central bank's public key to verify each other is legal wallet);
(2), users purse their own unique private key;
(3), users purse's public key to the central bank private key encrypted cryptograph (can use the central bank of the central bank's public key stored in each purse decrypted restore the user's public key, trading by the other party when users perform decryption operation to verify the legitimacy of the purse),
(4), the last time the dealing party of (3)
(5), the user balance last time series into the dealing party of 6 in each other's private key encryption arithmetic of cipher text (the user can do it with (1) two decryption operation view their balance, but cannot be tampered with)
6, unidirectional increase a number, plus 1 for each trade, the latest value is the balance of the original series into the dealing party string is encrypted into each other's (5)
The process of trading ideas are as follows:
1, check each identity (anti fake wallet account)
Trading began both sides each other (3), with their own 1) decryption, decryption out each other's public key, and then a random essay this string, to each other for each other in each other's own (2) is encrypted and give yourself the ciphertext back, oneself use newly declassified out in front of the public key for decryption check, check both identification is completed successfully,
2, to get each other's (4) and (5), made from local (1) two decryption operation, can know each other's current monetary balance, to determine whether a deal could be completed, proceed to the next step can be completed
3, with the other side of the balance plus/minus volume, it is concluded that the new balance after series on own 6 latest value, with its own private key to encrypt arithmetic of the cipher text as the other new (5), and (3) as the other new (4), to return to the other party,
4, to get each other comes after new (4) and (5), twice the decryption operation, after the transaction to verify whether the new balance is their new balance
5, balance, when confirmed the new (4) and (5) combined with its own private key encryption to each other, for their own validation confirmed correctly received 3 back,
6, b must be after 5 successful validation to do cover store their new step 3 comes back (4) and (5), otherwise the timeout to cancel feedback users receive money after failure
7, the payer if waiting for locking account after a period of time (such as 5 seconds) also received five validation message also covered storage under the condition of new step 3 comes back (4) and (5) (this is set against the last step 5, the validation message to payer payment may be malicious users one-way block)
8, when to step 5, if the network is disconnected, will cause the failure of a payer one-way b payments and receipts, this time can be user intervention retransmission gathering process: complete 1 b mutual confirmation, read the payer new (4) and (5), verify whether the payer (4) equal to their (3), after a successful decryption out (5) the one-way number, only equal to your current 6, to continue to complete the process of 23456 b
Note: if the payer b block 3, 4 steps back to the message, but also can not get confirmation coming step 5 bags, so the step 6 b also not receive money,
Note: with the RMB bank counter cross section into the digital wallet is in front of the process of transaction, the bank's digital wallets with equal to the central bank to buy digital currency, after the again at the counter for the user's digital wallets,
The entire transaction process in special chip encapsulation for damaged or destroyed, both parties message transmission process open and transparent and does not need to online, trading process not afraid hackers intercepted, nor fear cheating in a variety of means, to support multiple currencies can label to distinguish the increase in (5) a basket of currencies, the corresponding transaction increase currency can be generic,