Research Article

An Efficient Data Sharing Scheme for Privacy Protection Based on Blockchain and Edge Intelligence in 6G-VANET

Algorithm 1

Calculating intersection to get the vehicles with voting rights.
Input:
The collection content of ;
Set B of the remaining vehicles in ;
Output:
with voting rights;
1: for each i ∈ Bdo
2: if i!=Ø then
3:  Add vehicle i to set ;
4: else
5:  Vehicle i has no voting rights;
6: end if
7: end for
8: if == Ø then
9: Check the historical interactive information of to decide whether the transaction is valid;
10: else
11: return ;
12: end if