tx · 8Xkq1fVRKBnj1mBFWWyu7CUHMisqn4UfUt6pxUjXhiRB 3MvGkVk96a2QHRCfPswqSTfB1zY4YtpLEXU: -0.01000000 Waves 2020.04.15 03:50 [954822] smart account 3MvGkVk96a2QHRCfPswqSTfB1zY4YtpLEXU > SELF 0.00000000 Waves
{ "type": 13, "id": "8Xkq1fVRKBnj1mBFWWyu7CUHMisqn4UfUt6pxUjXhiRB", "fee": 1000000, "feeAssetId": null, "timestamp": 1586911811519, "version": 1, "sender": "3MvGkVk96a2QHRCfPswqSTfB1zY4YtpLEXU", "senderPublicKey": "PGu7csexQq9KgxsRHDM8gFAaxTrqLWzKzVBUMc8fQZc", "proofs": [ "4RAhYQkQjkKPAVb9DPRGn8sErkTofj5fpiGgy1Rr627TiH4Z6Fe9oyCZKaZhZ1DyuiFxdY5GCuqemPGj3aYuRiYT" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAQAAAAAC2FsaWNlcHVia2V5AQAAACA7m6vSHG4DNygU8apDP8tJCYvphRBOD/a8/bGtD+T7HAAAAAAJYm9icHVia2V5AQAAACCsBEODv1ZKEGAu+K3w10h7zutgxTatPvTCsPPw9bjZTgAAAAAMY29vcGVycHVia2V5AQAAACCsBEODv1ZKEGAu+K3w10h7zutgxTatPvTCsPPw9bjZTgAAAAAWbXVsdGlwbGVmaXJtYVB1YmxpY0tleQEAAAAgBbTBGqFMJqGKEzwbCBo2X8QV3KB3bE2LIXRK4qU5xl8AAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAGYWxpY2UxCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALYWxpY2VwdWJrZXkEAAAABmFsaWNlMgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAAC2FsaWNlcHV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uZGNvb3BlcgMDAwMDAwUAAAAGYWxpY2UxBQAAAAdjb29wZXIyBwYDBQAAAAZhbGljZTEFAAAAB2Nvb3BlcjMHBgMFAAAABmFsaWNlMQUAAAAHY29vcGVyMQcGAwUAAAAGYWxpY2UyBQAAAAdjb29wZXIzBwYDBQAAAAZhbGljZTMFAAAAB2Nvb3BlcjEHBgMFAAAABmFsaWNlMwUAAAAHY29vcGVyMgcEAAAADGJvYmFuZGNvb3BlcgMDAwMDAwUAAAAHY29vcGVyMQUAAAAEYm9iMgcGAwUAAAAHY29vcGVyMQUAAAAEYm9iMwcGAwUAAAAHY29vcGVyMgUAAAAEYm9iMQcGAwUAAAAHY29vcGVyMgUAAAAEYm9iMwcGAwUAAAAHY29vcGVyMwUAAAAEYm9iMQcGAwUAAAAHY29vcGVyMwUAAAAEYm9iMgcEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABYQUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAFAAAAFm11bHRpcGxlZmlybWFQdWJsaWNLZXkDAwUAAAALYWxpY2VBbmRib2IGBQAAAA5hbGljZWFuZGNvb3BlcgYFAAAADGJvYmFuZGNvb3Blckfrybg=", "chainId": 84, "height": 954822, "spentComplexity": 0 } View: original | compacted Prev: none Next: FKH8dspYotngNEUMVSGjPddXgpZFo1nGbxu6isihFCdJ Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 3 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let alicepubkey = base58'51gjNYusU8zY61CFzps1tSAb2bPPrtPLbdS8oNTzpUgK' | |
5 | + | ||
6 | + | let bobpubkey = base58'CaUtuNYGEX5QqzdFkXt8CUKoGdDBUxyY2LMQb74i7CSy' | |
7 | + | ||
8 | + | let cooperpubkey = base58'CaUtuNYGEX5QqzdFkXt8CUKoGdDBUxyY2LMQb74i7CSy' | |
9 | + | ||
10 | + | let multiplefirmaPublicKey = base58'PGu7csexQq9KgxsRHDM8gFAaxTrqLWzKzVBUMc8fQZc' | |
11 | + | ||
12 | + | ||
13 | + | @Verifier(tx) | |
14 | + | func verify () = { | |
15 | + | let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], alicepubkey) | |
16 | + | let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], alicepubkey) | |
17 | + | let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], alicepubkey) | |
18 | + | let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], bobpubkey) | |
19 | + | let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], bobpubkey) | |
20 | + | let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], bobpubkey) | |
21 | + | let cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperpubkey) | |
22 | + | let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[1], cooperpubkey) | |
23 | + | let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[2], cooperpubkey) | |
24 | + | let aliceAndbob = if (if (if (if (if (if (alice1) | |
25 | + | then bob2 | |
26 | + | else false) | |
27 | + | then true | |
28 | + | else if (alice1) | |
29 | + | then bob3 | |
30 | + | else false) | |
31 | + | then true | |
32 | + | else if (alice2) | |
33 | + | then bob1 | |
34 | + | else false) | |
35 | + | then true | |
36 | + | else if (alice2) | |
37 | + | then bob3 | |
38 | + | else false) | |
39 | + | then true | |
40 | + | else if (alice3) | |
41 | + | then bob1 | |
42 | + | else false) | |
43 | + | then true | |
44 | + | else if (alice3) | |
45 | + | then bob2 | |
46 | + | else false | |
47 | + | let aliceandcooper = if (if (if (if (if (if (alice1) | |
48 | + | then cooper2 | |
49 | + | else false) | |
50 | + | then true | |
51 | + | else if (alice1) | |
52 | + | then cooper3 | |
53 | + | else false) | |
54 | + | then true | |
55 | + | else if (alice1) | |
56 | + | then cooper1 | |
57 | + | else false) | |
58 | + | then true | |
59 | + | else if (alice2) | |
60 | + | then cooper3 | |
61 | + | else false) | |
62 | + | then true | |
63 | + | else if (alice3) | |
64 | + | then cooper1 | |
65 | + | else false) | |
66 | + | then true | |
67 | + | else if (alice3) | |
68 | + | then cooper2 | |
69 | + | else false | |
70 | + | let bobandcooper = if (if (if (if (if (if (cooper1) | |
71 | + | then bob2 | |
72 | + | else false) | |
73 | + | then true | |
74 | + | else if (cooper1) | |
75 | + | then bob3 | |
76 | + | else false) | |
77 | + | then true | |
78 | + | else if (cooper2) | |
79 | + | then bob1 | |
80 | + | else false) | |
81 | + | then true | |
82 | + | else if (cooper2) | |
83 | + | then bob3 | |
84 | + | else false) | |
85 | + | then true | |
86 | + | else if (cooper3) | |
87 | + | then bob1 | |
88 | + | else false) | |
89 | + | then true | |
90 | + | else if (cooper3) | |
91 | + | then bob2 | |
92 | + | else false | |
93 | + | match tx { | |
94 | + | case a: SetScriptTransaction => | |
95 | + | sigVerify(tx.bodyBytes, tx.proofs[0], multiplefirmaPublicKey) | |
96 | + | case _ => | |
97 | + | if (if (aliceAndbob) | |
98 | + | then true | |
99 | + | else aliceandcooper) | |
100 | + | then true | |
101 | + | else bobandcooper | |
102 | + | } | |
103 | + | } | |
104 | + |
github/deemru/w8io/169f3d6 36.38 ms ◑