Research Article

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

Algorithm 2

Voting process.
Input:
Transaction sent by ;
with voting rights;
    Number of as Q;
Output:
    The number of votes P;
    Whether the transaction is valid or not;
1: for each i do
2: ifVehicle i verified the transactionthen
3: P+=1;
4: end if
5: end for
6: if P Q then
7: Package transactions into blocks;
8: else
9: Ignore this vote;
10: end if