January 2020
Intermediate to advanced
530 pages
11h 11m
English
Next, we will look at the pathCheck() method. After writing the hash signatures to the blockchain, the app renders the FolderBlock component. This component triggers the 5-second interval timer by calling the startTimer method. The startTimer method, in turn, calls the pathCheck method, every 5 seconds to verify whether there is a mismatch between the hash signature of the MTH (MTH) and FTH (FTH) written in the blockchain and the actual hash value of the MTH and FTH when calculated from the directory under observation. A mismatch indicates that some data in our directory has been tampered with.
Let's see how the pathCheck method achieves this: ...
Read now
Unlock full access