tx · CRx1GayykByJ1QUKYoudN6hctqDpzQemfPqjaPxmQZf7 3MqWyQsWZYnea4ZFdmqWEwsXi5on7BQyHsj: -0.01000000 Waves 2019.07.20 13:35 [594117] smart account 3MqWyQsWZYnea4ZFdmqWEwsXi5on7BQyHsj > SELF 0.00000000 Waves
{ "type": 13, "id": "CRx1GayykByJ1QUKYoudN6hctqDpzQemfPqjaPxmQZf7", "fee": 1000000, "feeAssetId": null, "timestamp": 1563618952845, "version": 1, "sender": "3MqWyQsWZYnea4ZFdmqWEwsXi5on7BQyHsj", "senderPublicKey": "ACgLmxkdSQu4giPBqgCjww2FssDBAVscTZoozxY8ztmy", "proofs": [ "22t6ve7RhR4nyzsUWybSg8qkw6BhsCyCBuEDMmrsrdHBMSFJMozAPAnkD3esN95qJvNZFfahe5ypXiSofyj4qYHT" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAAppbmFsUHViS2V5AQAAACCItw3flGlitw4WvawG9UONGVEKACN9ET9On9uP6zIdVAAAAAAKbGVuYVB1YktleQEAAAAg4JJmPXldj/t+h1LvYZtGrehTOalXJCpcPG6EDQn+lxoAAAAADmVsZXBoYW50UHViS2V5AQAAACCD7f/p7aiW3B/C0Id6MNN5JIRySuYgHBZz0ev2y4OEIgAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAZhbGljZTEJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAppbmFsUHViS2V5BAAAAAZhbGljZTIJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAABBQAAAAppbmFsUHViS2V5BAAAAAZhbGljZTMJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAACBQAAAAppbmFsUH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AAAdjb29wZXIxBwYDBQAAAAZhbGljZTIFAAAAB2Nvb3BlcjMHBgMFAAAABmFsaWNlMwUAAAAHY29vcGVyMQcGAwUAAAAGYWxpY2UzBQAAAAdjb29wZXIyBwQAAAAMYm9iQW5kQ29vcGVyAwMDAwMDBQAAAARib2IxBQAAAAdjb29wZXIyBwYDBQAAAARib2IxBQAAAAdjb29wZXIzBwYDBQAAAARib2IyBQAAAAdjb29wZXIxBwYDBQAAAARib2IyBQAAAAdjb29wZXIzBwYDBQAAAARib2IzBQAAAAdjb29wZXIxBwYDBQAAAARib2IzBQAAAAdjb29wZXIyBwQAAAAHJG1hdGNoMAUAAAACdHgDAwUAAAALYWxpY2VBbmRCb2IGBQAAAA5hbGljZUFuZENvb3BlcgYFAAAADGJvYkFuZENvb3Blcg8Ey7g=", "chainId": 84, "height": 594117, "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let inalPubKey = base58'ACgLmxkdSQu4giPBqgCjww2FssDBAVscTZoozxY8ztmy' | |
5 | + | ||
6 | + | let lenaPubKey = base58'G7doSP7ENWhVi7BPDhbNNVQXC82ed7j2vNw9KtWAhpDP' | |
7 | + | ||
8 | + | let elephantPubKey = base58'9sztzsuiPB6jaJPWLwAMJ7gJasKukBv81TX2DpzRjPRj' | |
9 | + | ||
10 | + | ||
11 | + | @Verifier(tx) | |
12 | + | func verify () = { | |
13 | + | let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], inalPubKey) | |
14 | + | let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], inalPubKey) | |
15 | + | let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], inalPubKey) | |
16 | + | let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], lenaPubKey) | |
17 | + | let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], lenaPubKey) | |
18 | + | let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], lenaPubKey) | |
19 | + | let cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], elephantPubKey) | |
20 | + | let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[1], elephantPubKey) | |
21 | + | let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[2], elephantPubKey) | |
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/169f3d6 124.35 ms ◑