Research Article

Temporal Index Scheme of Hyperledger Fabric System in IoT

Algorithm 3

TIF generate .
Input: transaction key and value
Output: index state
1: if current still valid then
2:  if cache full then
3:   Write cache data to file
4:   Update state
5:   Index state=write key value to cache
6:  else
7:   Index state=write key value to cache
8:  end if
9: else
10:  Generate new
11:  Update
12:  Index state=Generate index based on file
13:end if
14:return Index state