|
Algorithm 3 Sybil-resistant game (from to ) |
-
1:
Input:
-
2:
: the set of auto agents
-
3:
: the transaction first receives by
-
4:
: the adversary
-
5:
: the security parameter
-
6:
Output::
-
7:
: the transaction first transferred to by
-
8:
————————————————————————————————————————
-
9:
Initial:
-
10:
-
11:
, where
-
12:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - – - - - - - - - - - - - - - - - - - - -
-
13:
A.1. Forge the cross-chain transaction:
-
14:
-
15:
if then
-
16:
Broadcast in
-
17:
return
-
18:
else return nil
-
19:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - – - - - - - - - - - - - - - - - - - - -
-
20:
A.2. Tamper with the cross-chain transaction:
-
21:
receives
-
22:
-
23:
if then
-
24:
Broadcast in
-
25:
return
-
26:
else return nil
-
27:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - – - - - - - - - - - - - - - - - - - - -
-
28:
A.3. Withhold the cross-chain transaction:
-
29:
receives
-
30:
withhold the transaction
-
31:
receives , broadcast
-
32:
return
|