January 2019
Beginner to intermediate
372 pages
11h 17m
English
The smart contract is executed with similar steps as shown in the earlier section where we deployed the basic smart contract. The only differences are the parameters supplied to the contract and the corresponding return data.
As mentioned earlier, we will create a proof of ownership application to keep track of the documents. Each document can be uniquely identified by its digest. We will use the SHA256 hash value of the document as the asset ID. Let's consider a file that has the following content. The files are usually stored with an additional new line character that is not visible in raw text output:
This document was created by Alice.
And the following digest represents the SHA256 hash value of the file: ...