Algorithm 1.
1: | sum ← 0 |
2: | Faulted ← ∅ |
3: | for all j ∈ N do |
4: | sum ← sum+ GET_ENCRYPTED_VALUE_FROM(j, timeout) |
5: | if timeout happened or no connection with j then |
6: | Faulted ← Faulted ∪ {j} |
7: | if Faulted = ∅ then |
8: | return sum |
9: | // Recovery subprotocol. |
10: | for all j ∈ N do |
11: | sum ← sum + GET_RECOVERY_KEY_FROM(j, Faulted) |
12: | return sum |