Skip to main content
. 2022 Apr 30;22(9):3426. doi: 10.3390/s22093426
Algorithm 1 Key Distribution Smart Contract (KDSC)

Input:PuK, EList // PuK is public key. EList is information set of edge nodes in the network.

Output: State of public key distribution.

  • 1:

    KdList // This list is used to store the public key distribution status.

  • 2:

    for i to size(EList) do

  • 3:

        PuKEList(i) // Assigns public keys to edge nodes in the network.

  • 4:

        KdList.Add(Stae(EList(i)) // Stae(EList(i)) is the status in which the current edge node distributes the public key.

  • 5:

    end for

  • 6:

    return KdList