Skip to main content
. 2024 Dec 16;24(24):8034. doi: 10.3390/s24248034
Algorithm 4 Withdrawal protocol.
  1. Client A sends [Withdraw, k, TA.offCounter, σ] to Bank-server (BS), where [k, TA.offCounter, σ] ← TA.Withdraw(k).

  2. Upon receiving [Withdraw, k, TA.offCounter, σ] from A, BS performs the following steps:
    • (a)
      Abort if TA.offCounter ≠ BS.onCounterA + 1 or SigVerify([k, TA.offCounter], σ, TA.pbk) ≠ 1.
    • (b)
      BS.onBalA BS.onBalA + k.
    • (c)
      BS.onCounterA BS.onCounterA + 1.
    • (d)
      Send [WithdrawConfirmed] to A.