| Algorithm 1 Register Smart Contract |
| 1: function 1 |
| 2: (Trigger Transaction: Request Transaction |
| 3: Input: Request ID and Name of the access device< NameA, IDA >) |
| 4: Send a program P to IDA; |
| 5: end function 1 |
| 6: function 2 |
| 7: (Trigger Transaction: Register Transaction |
| 8: Input: Basic information of the device) |
| 9: Record device information<NameA, IDA, AddA, PA>; |
| 10: end function 2 |
| 11: function 3 |
| 12: (Trigger Transaction: Related Transaction |
| 13: IInput: Information of the related device) |
| 14: Record related device information<num., distance, |
| 15: Related_dev Address, establishment time, failure time>; |
| 16: function 3 |