Research Article
A Partitioned DAG Distributed Ledger with Local Consistency for Vehicular Reputation Management
Algorithm 2
Reputation update algorithm.
input: , a confirmed transaction , issued node and the node that waited to interact with | output: The updated reputation of | 1 Update NSL / Extract response nodes and corresponding interactive ratings ; | 2 for each in do | 3 update based on the corresponding interactive rating ; | 4 Extract in and update to ; | 5 Calculate Reputation / Obtain the current time ; | 6 Calculate quality based on ; | 7 Select an exponential function to calculate ; | 8 Obtain the reputation ; | 9 final; | 10 return; |
|