January 2020
Intermediate to advanced
530 pages
11h 11m
English
The pWrite method takes the last MTH and FTH as input and writes them to the blockchain. The hashes are indexed in the blockchain by the timestamp at which the hashes where calculated. This is done so as to create a timestamped audit log of all the times that a new entry was recorded for the secured directory in the blockchain.
async function pWrite(FTH,MTH) { try { const wallet = new FileSystemWallet('/home/ishan/docsapp/wallet'); const userExists = await wallet.exists('user1'); if (!userExists) { console.log('An identity for the ...Read now
Unlock full access