Algorithm 1: Carpooling matching scheme based on BF-PSI |
Input: Output: Result = “successful matching” or “failed matching” |
1: |
2: if then |
3: verifies the reputation certificate and signature of 4: if equation (11) and (12) hold then |
5: matches the starting position and destination of the and 6: if equation (13) holds then 7: verifies whether meets ’s multi-faceted trust needs 8: if all the then 9: meets ’s multi-faceted trust needs 10: end if 11: end if 12: end if 13: end if 14: for then 15: if mem_test then 16: 17: end if 18: end for 19: if and are the same then 20: Result = “successful matching” 21: else 22: Result = “failed matching” |
23: end if |