Research Article

Formal Analysis of Fairness for Optimistic Multiparty Contract Signing Protocol

Algorithm 3

Modeling of four-party GM abort and recovery subprotocols.
T_process()=
Modeling of the four-party GM abort subprotocol
//(1)T agrees with the abort requirement from P2
[!T_Respond2 P2_Abort_Send !T_Validated ( T_S4 ∣∣ T_S3)]TabortP21{T_S2=true; T_Abort_Send_P2=true;
T_Respond2=true;}->P2H_process()
//(2)T refuses the abort requirement from P2
[!T_Respond2 P2_Abort_Send T_Validated ]TabortP22{T_S2=true; T_Recovery_Send_P2=true; T_Respond2=true;}-
>P2H_process()
Modeling of the four-party GM recovery subprotocol
//(3)T agrees with the recovery requirement from P3
[P3_Recovery_1_3_3 && !T_Respond4 && !T_Respond3 && !T_Respond2 && !T_Respond1]TreocveryP31
{T_Recovery_Send_P3=true; T_Respond3=true; T_Validated=true;}->P3_process()
//(4)T refuses the recovery requirement from P3
[P3_Recovery_1_3_3 && !T_Respond3 && (!T_Respond4 ∣∣ !T_Respond3 ∣∣ !T_Respond2 ∣∣ !T_Respond1)&&
!T_Validated && T_S4]TreocveryP312{T_F1=true;T_F2=true;T_S3=true;T_Abort_Send_P3=true;
T_Respond3=true}->P3_process()