[TechWP-episodes] Transfer of information

in #travelchain7 years ago (edited)

Сеть-680.jpg

In order to receive information a buyer needs to place a request (1) addressed to specific users. This request is implemented by an operation in the blockchain that keeps required specifications of the request.

answer = request(users, params)

This request is received by the information owner (2) and a decision is to be taken whether the decryption key priv_info_key should be transferred to the buyer or not. While taking a decision on the transfer, the seller of information creates a request to carry out a transaction (3) attaching a decryption key and offers the buyer to pay for the deal. In order to pay for the deal it is enough for the buyer to sign the offered transaction.

enter image description here

Reward goes to the user once the offered operation has been processed.

The key to information priv_info_key is encrypted by Diffie-Hellman key exchange algorithm that has a secret decryption key which is common both to sender and recipient:

Pub(Alice) * Priv(Bob) = Pub(Bob) * Priv(Alice)

Encryption of private key to information is done as follows:
encrypted_dynamic_priv_info_key = encrypt (
                                                  sender_priv_memo_key,
                                                  dynamic_priv_info_key
                                                  recipient_pub_memo_key,
                                                  )

In order to decrypt dynamic_priv_info_key, the message recipient must apply this function:

decrypted_dynamic_priv_info_key = decrypt (
                                                  encrypted_dynamic_priv_info_key,
                                                  sender_pub_memo_key,
                                                  recipient_priv_memo_key
                                                  )

Therefore, encrypted message with a dynamic private key to information can be read only by sender and recipient. Transfer of message with the key takes place through API at blockchain level. Using the key one can decrypt private information of user and gain access to it.


If you want to take part in an Token Sale than visit TravelChain.io. and leave your email on the main page! We will keep you updated.

White Paper
Overview
Technical WP
Business-plan

Join to our Telegram Chat

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 63407.49
ETH 2645.11
USDT 1.00
SBD 2.81