Skip to main content
. 2020 Oct 29;20(21):6158. doi: 10.3390/s20216158
Algorithm 2:Updating ksh, gksh, and nList for a newly joined node.
  Input: idni;H1;ksh
  Output: Updatedksh,gkshandnList
1  Newnoderequestsjoin(idni);
2  NewnodeandEdgestartMAprocess;
3  EdgebroadcastH1(idni)encryptedbycurrentgksh;
4  Edgeandcurrentnodesupdatekeyksh=H1(idni)ksh;
5  Edgeandcurrentnodesupdatesharedpointgksh=ksh×G;
6  EdgesendskshandnListtonewnode;
7  EdgeandcurrentnodesupdatetheirnList