Algorithm 2 . Authentication and sharing agreement contract.
Input: Receive request |
Output: Generate the policies and send it to the client nodes |
Step 1: Receive request from client nodes |
Step 2: Create JSON policy file (JSP) |
Step 3: Generate transaction and store in the blockchain |
Step 4: Send the transaction hash to the client nodes |