Smart Contract 1: Data Upload Smart Contracts |
Input:Data, KpriSN, Addr |
Output: tranID |
Begin |
1. if(Data==null || KpriSN==null || Addr==null) |
2. tranID = 0; |
3. else |
4. Retrieves the current timestamp timestamp; |
5. tranID = ISave(Addr, KpriSN, Data, timestamp); |
6. return tranID; |
End |