tx · BA4tdzzuGy32k1iSZgprrGmXKGE6yRasj6yihh3TnbiT 3N8q37d3QHAcBYK76gFNfFzm799GAZMLzN1: -0.01000000 Waves 2019.07.01 20:48 [566647] smart account 3N8q37d3QHAcBYK76gFNfFzm799GAZMLzN1 > SELF 0.00000000 Waves
{ "type": 13, "id": "BA4tdzzuGy32k1iSZgprrGmXKGE6yRasj6yihh3TnbiT", "fee": 1000000, "feeAssetId": null, "timestamp": 1562003314342, "version": 1, "sender": "3N8q37d3QHAcBYK76gFNfFzm799GAZMLzN1", "senderPublicKey": "CHFTHo5LuDWXGQQo4RZ2DQbmFFeamfMHaq62FAVn2dMk", "proofs": [ "5ZhLWVk9Us6CifCnmVVgXbR3Fx1VoJHAcqQFCH9JkasY7s25PSVnJaJC6UMGyJ3y2aGqsxsE45fwxBYJ2BCzndGQ" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAAthbGljZVB1YktleQEAAAAgp5oxBfxlL+W8nkwO4xjrT9GFNnZuawY+NNHSFFzNt3sAAAAACWJvYlB1YktleQEAAAAg2CSN8MMfqnwLXK5/SgEu9E1Sj2UNHVrWOR9KwB6eDwIAAAAADGNvb3BlclB1YktleQEAAAAg73Ztc5QYrQAlnOnhTZCIFFGDk3tQI5eMoRUy+ZhvwT4AAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAGYWxpY2UxCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQQAAAAGYWxpY2UyCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQgFAAAAAnR4AAAAD3NlbmRlclB1YmxpY0tleQQAAAAGYWxpY2UzCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAA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IxBwYDBQAAAAZhbGljZTMFAAAABGJvYjIHBAAAAA5hbGljZUFuZENvb3BlcgMDAwMDAwUAAAAGYWxpY2UxBQAAAAdjb29wZXIyBwYDBQAAAAZhbGljZTEFAAAAB2Nvb3BlcjMHBgMFAAAABmFsaWNlMgUAAAAHY29vcGVyMQcGAwUAAAAGYWxpY2UyBQAAAAdjb29wZXIzBwYDBQAAAAZhbGljZTMFAAAAB2Nvb3BlcjEHBgMFAAAABmFsaWNlMwUAAAAHY29vcGVyMgcEAAAADGJvYkFuZENvb3BlcgMDAwMDAwUAAAAEYm9iMQUAAAAHY29vcGVyMgcGAwUAAAAEYm9iMQUAAAAHY29vcGVyMwcGAwUAAAAEYm9iMgUAAAAHY29vcGVyMQcGAwUAAAAEYm9iMgUAAAAHY29vcGVyMwcGAwUAAAAEYm9iMwUAAAAHY29vcGVyMQcGAwUAAAAEYm9iMwUAAAAHY29vcGVyMgcEAAAAByRtYXRjaDAFAAAAAnR4AwMFAAAAC2FsaWNlQW5kQm9iBgUAAAAOYWxpY2VBbmRDb29wZXIGBQAAAAxib2JBbmRDb29wZXLwMYc9", "chainId": 84, "height": 566647, "spentComplexity": 0 } View: original | compacted Prev: none Next: CphHp6FvDzjJyLBw7ptxsaddG91cBFzzFetmZXAbMCqz Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let alicePubKey = base58'CHFTHo5LuDWXGQQo4RZ2DQbmFFeamfMHaq62FAVn2dMk' | |
5 | + | ||
6 | + | let bobPubKey = base58'FYjPiYuQqNVb99e3ua5KzQp2G4ApDFMRS8YiytDUA3Zb' | |
7 | + | ||
8 | + | let cooperPubKey = base58'H7mBJjfK45Giorqge2fBuSjaFUG2oqpcvEa77Wf6U1b3' | |
9 | + | ||
10 | + | ||
11 | + | @Verifier(tx) | |
12 | + | func verify () = { | |
13 | + | let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
14 | + | let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], tx.senderPublicKey) | |
15 | + | let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], tx.senderPublicKey) | |
16 | + | let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
17 | + | let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], tx.senderPublicKey) | |
18 | + | let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], tx.senderPublicKey) | |
19 | + | let cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
20 | + | let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[1], tx.senderPublicKey) | |
21 | + | let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[2], tx.senderPublicKey) | |
22 | + | let aliceAndBob = if (if (if (if (if (if (alice1) | |
23 | + | then bob2 | |
24 | + | else false) | |
25 | + | then true | |
26 | + | else if (alice1) | |
27 | + | then bob3 | |
28 | + | else false) | |
29 | + | then true | |
30 | + | else if (alice2) | |
31 | + | then bob1 | |
32 | + | else false) | |
33 | + | then true | |
34 | + | else if (alice2) | |
35 | + | then bob3 | |
36 | + | else false) | |
37 | + | then true | |
38 | + | else if (alice3) | |
39 | + | then bob1 | |
40 | + | else false) | |
41 | + | then true | |
42 | + | else if (alice3) | |
43 | + | then bob2 | |
44 | + | else false | |
45 | + | let aliceAndCooper = if (if (if (if (if (if (alice1) | |
46 | + | then cooper2 | |
47 | + | else false) | |
48 | + | then true | |
49 | + | else if (alice1) | |
50 | + | then cooper3 | |
51 | + | else false) | |
52 | + | then true | |
53 | + | else if (alice2) | |
54 | + | then cooper1 | |
55 | + | else false) | |
56 | + | then true | |
57 | + | else if (alice2) | |
58 | + | then cooper3 | |
59 | + | else false) | |
60 | + | then true | |
61 | + | else if (alice3) | |
62 | + | then cooper1 | |
63 | + | else false) | |
64 | + | then true | |
65 | + | else if (alice3) | |
66 | + | then cooper2 | |
67 | + | else false | |
68 | + | let bobAndCooper = if (if (if (if (if (if (bob1) | |
69 | + | then cooper2 | |
70 | + | else false) | |
71 | + | then true | |
72 | + | else if (bob1) | |
73 | + | then cooper3 | |
74 | + | else false) | |
75 | + | then true | |
76 | + | else if (bob2) | |
77 | + | then cooper1 | |
78 | + | else false) | |
79 | + | then true | |
80 | + | else if (bob2) | |
81 | + | then cooper3 | |
82 | + | else false) | |
83 | + | then true | |
84 | + | else if (bob3) | |
85 | + | then cooper1 | |
86 | + | else false) | |
87 | + | then true | |
88 | + | else if (bob3) | |
89 | + | then cooper2 | |
90 | + | else false | |
91 | + | match tx { | |
92 | + | case _ => | |
93 | + | if (if (aliceAndBob) | |
94 | + | then true | |
95 | + | else aliceAndCooper) | |
96 | + | then true | |
97 | + | else bobAndCooper | |
98 | + | } | |
99 | + | } | |
100 | + |
github/deemru/w8io/026f985 18.29 ms ◑