Research Article

On the Internet of Things, Blockchain Technology for Supply Chain Management (IoT)

Algorithm 1

Context-based Merkle tree (CBMT).
Input: patient record zi; patient public key Pak;
   patient private key Pks; Doctor keys pod, pods;
   in nonce; stir temporal shadow; this Temporal Hash Signature (THS);
   height of the tree li; sub activity hash value is; promote sub activity root
   value;
Output: Transaction deployed in the blockchain
Begin:
  Step1: for (i1; i < n; i++)
    piSig((psdk) encrypt(reci,pkpk)) //Doctor encrypt the record pi rihash(pi)
  Step 2: tsihash( ti&&ni&&prooti) //Registry server receives the hash
    of records and forwards it to the linker server.
    yihash( si&&tsi&&li )
General ledger zihash( ri&&tsi&&li )
  Step 1: Linker convert the hash of value into trees and forward to the
 next higher-level server
    zihash( ri && tsi && li )
  Step 4: Root hash value stored in the Calendar database.
    calZroot
  Step 5: The patient set access privilege in the Smart Contract.
  Step 6: The bytecode of a Smart Contract deployed in the blockchain.
  Step 7: Finally it is stored in the blockchain, and the signature token sent
     patient -> thsi
     End for
     End