Research Article
Formal Analysis of Fairness for Optimistic Multiparty Contract Signing Protocol
Algorithm 2
Modeling of four-party GM main subprotocol.
Modeling the behaviors of honest in the four-party GM main subprotocol | P1H_process()= | ⋯ ⋯ | //(1) honest P1 sends 1-level promises to P2 | [!P1_stop !P1_contacted_T Pr_1_4_L==0 Pr_1_3_L==0 Pr_1_2_L==0 Pr_2_1_L==1 Pr_3_1_L==1 | Pr_4_1_L==1]P1sendsp21{Pr_1_2_L=1;}->P1H_process() | //(2) honest P1 sends recovery requirement to T | [!P1_stop !P1_contacted_T Pr_1_4_L==0 Pr_1_3_L==0 Pr_1_2_L==1 Pr_2_1_L==1 Pr_4_1_L==1 | Pr_3_1_L==1]p1recovery111{P1_contacted_T=true; P1_Recovery_1_1_1=true;}->T_process() | Modeling the behaviors of dishonest in the four-party GM main subprotocol | P2_process()= | ⋯ ⋯ | //(3)dishonest P2 sends 1-level promise to P1 | [!P2_stop && Pr_2_1_L<1] P2sendP32 {Pr_2_1_L=1;}->P2_process() | //(4)dishonest P2 sends recovery requirement to T | [!P2_stop && Pr_4_2_L==1 && Pr_3_2_L==1 && Pr_1_2_L==1]P2recovery111{P2_Recovery_1_1_1=true;} | ->T_process() | System definition | sys1H∣=P1H_process() ∣∣∣ P2_process() ∣∣∣ P3_process() ∣∣∣P4_process(); |
|