|
Algorithm 10: Private block calculation. |
Input: . Output: .
-
1:
Retrieve previous hash from private blockchain.
-
2:
.
-
3:
if above check holds, then continue with step 5.
-
4:
otherwise, terminate the session.
-
5:
Compute .
-
6:
Set .
-
7:
Set .
-
8:
Set initial value as 0.
-
9:
do.
-
10:
.
-
11:
.
-
12:
Generate .
-
13:
Write to private blockchain.
-
14:
Receive from private blockchain.
|