Research Article
MB-BC: Drug Traceability System Based on Multibranched Blockchain Structure
Algorithm 1
Policy tree update contract.
Input: New policy tree PT, New policy tree’s address DataplacePT, Signature of PT SignPT | Output: | 1: initialize: Set , , | 2: ifthen | 3: | 4: ; | 5: ifthen | 6: Input paymeent password Pw; | 7: while Pw is not true and time ≤3 do | 8: time++; | 9: end while | 10: if time≤3 then | 11: ; | 12: else return Account lock; | 13: end if | 14: else return Insufficient balance; | 15: end if | 16: end if | 17: | 18: | 19: return |
|