|
Algorithm 8 Claim protocol. |
B sends [Claim, P] to BS.
Upon receiving [Claim, P] from B. Bank server BS performs the following steps.
-
(a)
Abort if any of the following conditions is true:
P.receiver.type ≠ ‘UA’.
PayVerify(P) ≠ 1.
P ∈ BS.paymentLog
-
(b)
BS.onBal ← BS.onBal + P.amount.
-
(c)
Add P to BS.inpaymentLog;
-
(d)
Send [ClaimConfirmed] to B.
|