Output of Proof of Existence

Let's break down the output.

First, this sample application creates a unique hash for the digital asset, test_file1.txt:

[INFO] ng-rt-digitalAsset-sdk.examples.store_and_verify_filehash.js - Creating hash of the file...
[INFO] ng-rt-digitalAsset-sdk.examples.store_and_verify_filehash.js - File hash is : 79xaL9QyNpg8Tdn2f2ToRm3BJJkPtu4MdXJVhS3UWccfBaCY8hjBmukXjL7TTriz2E7sCZbXGZz8gJ6DL87XWs59kyR2R8ZsF11z73nAc4J4iBdoLjbpFW69wcERoCeTPg8vdYPJMswVnjbJKzGcVEHqndYxSXd1JdU8gCVr2zioaw

The sample then sends a transaction to store this hash on the blockchain:

[INFO] ng-rt-digitalAsset-sdk.examples.store_and_verify_filehash.js - Posting a transasction to the blockchain with the File hash...  
[INFO] ng-rt-digitalAsset-sdk.examples.store_and_verify_filehash.js - File hash is stored in the blockchain with the transaction id : d26232536384ebc18d6751db0c6bf42e457762d6c01b9309109cf3f0ce0e5a78

Finally, the sample application compares the hash of the digital asset against the hash found on the blockchain:

[INFO] ng-rt-digitalAsset-sdk.examples.store_and_verify_filehash.js - Verifying File hash...
[INFO] ng-rt-digitalAsset-sdk.examples.store_and_verify_filehash.js - File exists in the path : /home/docker/ng-rt-digitalasset-sdk-sample/examples/usecases/files/test_file1.txt

Return to Sample Applications