tx · DkbZWKTBdKr4sRp5Scz5D3Mu6hFou1hMTqiWYcjqr9Gk 3N2Hwmwrfichgw4zuS3nN7g4Wu58nB8XHDM: -0.01000000 Waves 2020.12.13 01:18 [1306045] smart account 3N2Hwmwrfichgw4zuS3nN7g4Wu58nB8XHDM > SELF 0.00000000 Waves
{ "type": 13, "id": "DkbZWKTBdKr4sRp5Scz5D3Mu6hFou1hMTqiWYcjqr9Gk", "fee": 1000000, "feeAssetId": null, "timestamp": 1607811536549, "version": 2, "chainId": 84, "sender": "3N2Hwmwrfichgw4zuS3nN7g4Wu58nB8XHDM", "senderPublicKey": "HcUShTzbGns6AKEZ3MkHtfGjtv6Dm1gDePpizSVNG8Pe", "proofs": [ "46ZJyRqbGst8iN3U7r5g2QTJPmXvopKUvVVHd4NmySQG6LbVhTrAzAGJ8WC2BXQXuDjWgTc78bXmLJTwy67Py8gN" ], "script": "base64:AAIEAAAAAAAAAAIIAgAAAAMAAAAAC2FsaWNlUHViS2V5AQAAACD20VlfRiP+eyPWezXItB7BlPR7UgyocGhcx6vWPu/7BQAAAAAJYm9iUHViS2V5AQAAACDtXayYN8br2PvdKHOxgl3azSA4ysjJ5b5PXkVWn2JCMQAAAAAMY29vcGVyUHViS2V5AQAAACBwa3HKbhOtdPRXaR4rWRjVFHbbY1TzH5hXC3FF9EgePgAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAZhbGljZTEJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAthbGljZVB1YktleQQAAAAGYWxpY2UyCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQUAAAALYWxpY2VQdWJLZXkEAAAABmFsaWNlMwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0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HY29wcGVyMwcGAwUAAAAGYWxpY2UyBQAAAAdjb3BwZXIxBwYDBQAAAAZhbGljZTIFAAAAB2NvcHBlcjMHBgMFAAAABmFsaWNlMwUAAAAHY29wcGVyMQcGAwUAAAAGYWxpY2UzBQAAAAdjb3BwZXIyBwQAAAAMQm9iQW5kQ29vcGVyAwMDAwMDBQAAAAdjb3BwZXIxBQAAAARib2IyBwYDBQAAAAdjb3BwZXIxBQAAAARib2IzBwYDBQAAAAdjb3BwZXIyBQAAAARib2IxBwYDBQAAAAdjb3BwZXIyBQAAAARib2IzBwYDBQAAAAdjb3BwZXIzBQAAAARib2IxBwYDBQAAAAdjb3BwZXIzBQAAAARib2IyBwQAAAAHJG1hdGNoMAUAAAACdHgDAwUAAAALYWxpY2VBbmRCb2IGBQAAAA5hbGljZUFuZENvb3BlcgYFAAAADEJvYkFuZENvb3Blcq6F9rQ=", "height": 1306045, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let alicePubKey = base58'HcUShTzbGns6AKEZ3MkHtfGjtv6Dm1gDePpizSVNG8Pe' | |
5 | + | ||
6 | + | let bobPubKey = base58'GyaUH76DpQx4SViRry7VNqvw7EWUNassVJ8xxuRVT4VW' | |
7 | + | ||
8 | + | let cooperPubKey = base58'8ZqgpjxAVWatLMfj1XzG7zBdi33rtSRhAiZn94UfwbEM' | |
9 | + | ||
10 | + | ||
11 | + | @Verifier(tx) | |
12 | + | func verify () = { | |
13 | + | let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey) | |
14 | + | let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], alicePubKey) | |
15 | + | let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], alicePubKey) | |
16 | + | let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], bobPubKey) | |
17 | + | let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], bobPubKey) | |
18 | + | let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], bobPubKey) | |
19 | + | let copper1 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperPubKey) | |
20 | + | let copper2 = sigVerify(tx.bodyBytes, tx.proofs[1], cooperPubKey) | |
21 | + | let copper3 = sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubKey) | |
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 copper2 | |
47 | + | else false) | |
48 | + | then true | |
49 | + | else if (alice1) | |
50 | + | then copper3 | |
51 | + | else false) | |
52 | + | then true | |
53 | + | else if (alice2) | |
54 | + | then copper1 | |
55 | + | else false) | |
56 | + | then true | |
57 | + | else if (alice2) | |
58 | + | then copper3 | |
59 | + | else false) | |
60 | + | then true | |
61 | + | else if (alice3) | |
62 | + | then copper1 | |
63 | + | else false) | |
64 | + | then true | |
65 | + | else if (alice3) | |
66 | + | then copper2 | |
67 | + | else false | |
68 | + | let BobAndCooper = if (if (if (if (if (if (copper1) | |
69 | + | then bob2 | |
70 | + | else false) | |
71 | + | then true | |
72 | + | else if (copper1) | |
73 | + | then bob3 | |
74 | + | else false) | |
75 | + | then true | |
76 | + | else if (copper2) | |
77 | + | then bob1 | |
78 | + | else false) | |
79 | + | then true | |
80 | + | else if (copper2) | |
81 | + | then bob3 | |
82 | + | else false) | |
83 | + | then true | |
84 | + | else if (copper3) | |
85 | + | then bob1 | |
86 | + | else false) | |
87 | + | then true | |
88 | + | else if (copper3) | |
89 | + | then bob2 | |
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 15.47 ms ◑