View full-text article in PMC Sensors (Basel). 2020 Oct 29;20(21):6158. doi: 10.3390/s20216158 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2020 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/). PMC Copyright notice 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