Algorithm 2 Intelligent Elliptic Curve Digital Signature Algorithm (IECDSA) |
Input:, // is the information shared set by the edge nodes of the message sender. is information set of edge nodes in the network.
Output: Status of signatures and verification of signatures.
-
1:
for i to size() do
-
2:
Selecting the data signature private key.
-
3:
// Calculating a digitally signed public key. distribution the public key.
-
4:
// Generate random numbers.
-
5:
// Calculation of the parameter P.
-
6:
Generate data signature by Equation (4).
-
7:
//Calculating hash values of shared information.
-
8:
Generate data signature by Equation (6).
-
9:
KDSC(,) // Key Distribution Smart Contracts enables intelligent distribution of public keys.
-
10:
if then // Information receiver edge nodes verify signatures.
-
11:
Signature verification failure.
-
12:
else
-
13:
Calculating hash values of shared information by Equation (5).
-
14:
Calculate the parameters according to Equations (7)–(9).
-
15:
// Calculate the parameter X.
-
16:
if then
-
17:
Successful signature verification.
-
18:
else
-
19:
Signature verification failure.
-
20:
end if
-
21:
end if
-
22:
end for
-
23:
return Status of signatures and verification of signatures.
|