tx · 3Pca6GwGhaiZaWLUqwVo7wFp97gZLSr3j4CPE8AZzCAn 3NCV9ifzdz2ZpMiaW3tUCnyzqYE1EDqj4q5: -0.05000000 Waves 2019.11.03 02:11 [747895] smart account 3NCV9ifzdz2ZpMiaW3tUCnyzqYE1EDqj4q5 > SELF 0.00000000 Waves
{ "type": 13, "id": "3Pca6GwGhaiZaWLUqwVo7wFp97gZLSr3j4CPE8AZzCAn", "fee": 5000000, "feeAssetId": null, "timestamp": 1572736110477, "version": 1, "sender": "3NCV9ifzdz2ZpMiaW3tUCnyzqYE1EDqj4q5", "senderPublicKey": "5kzCgK4UaAsE1fmoCF6xdRdFNm6udRYNsN5NmKmYV5BK", "proofs": [ "2vYSN2pE5R5iSz3oVe41GmSd3FdxNY7Fxrm46XMNeMFxyTVG46V9x5xcYxkz5NHnGSyPdvv46EC8tW5sZkPAcaym", "5Wuhw51ovfv96g4m9E76zUPP4m3Ug5VWNgquyqrEkfzPbi8Qy3851uQ4PyDM92zagTJ79y4u4Tt2sD5P35cs1mSf", "NcNWkbeiuh7FBDvD6JZs6gmSjSSBniESSt3G8Az2ERcXQDDYkkVuzHbi2w2V7YkjV7vAUUrumu9wQx2TxMqVbCU" ], "script": "base64:AwQAAAALYWxpY2VQdWJLZXkBAAAAIO9Wu5mICE5o8Hts16GJzfyGFVZI/4gNG1Bec4DiMBolBAAAAAlib2JQdWJLZXkBAAAAIO3aNqvX+Ffbc4fkJoD/dCS7kwXsg8/Z4PvuYX/zz7oZBAAAAAxjb29wZXJQdWJLZXkBAAAAIE+6tUyqrnc6/vynaMFjaZvCxqoLksxDXGMhfyH2QKIABAAAAAZhbGljZTEJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAthbGljZVB1YktleQQAAAAGYWxpY2UyCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAn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FAAAABmFsaWNlMwUAAAAEYm9iMgcEAAAADmFsaWNlQW5kQ29vcGVyAwMDAwMDBQAAAAZhbGljZTEFAAAAB2Nvb3BlcjIHBgMFAAAABmFsaWNlMQUAAAAHY29vcGVyMwcGAwUAAAAGYWxpY2UyBQAAAAdjb29wZXIxBwYDBQAAAAZhbGljZTIFAAAAB2Nvb3BlcjMHBgMFAAAABmFsaWNlMwUAAAAHY29vcGVyMQcGAwUAAAAGYWxpY2UzBQAAAAdjb29wZXIyBwQAAAAMYm9iQW5kQ29vcGVyAwMDAwMDBQAAAAdjb29wZXIxBQAAAARib2IyBwYDBQAAAAdjb29wZXIxBQAAAARib2IzBwYDBQAAAAdjb29wZXIyBQAAAARib2IxBwYDBQAAAAdjb29wZXIyBQAAAARib2IzBwYDBQAAAAdjb29wZXIzBQAAAARib2IxBwYDBQAAAAdjb29wZXIzBQAAAARib2IyBwQAAAAHJG1hdGNoMAUAAAACdHgDAwUAAAALYWxpY2VBbmRCb2IGBQAAAA5hbGljZUFuZENvb3BlcgYFAAAADGJvYkFuZENvb3Blck5rD64=", "chainId": 84, "height": 747895, "spentComplexity": 0 } View: original | compacted Prev: 31Ff8JS834q6bJyikAnHDc6jREHakYWwD1TtUWBc947y Next: 3dFfEHZGTo8oSMSXVDsch2YdosGaojHZgq9mUeQwKa89 Diff:
Old | New | Differences | |
---|---|---|---|
3 | 3 | let alicePubKey = base58'H7H9WWXh7jDTrFFc5VmTG4RrgJYzHpFyNifWfqy5xBgG' | |
4 | 4 | let bobPubKey = base58'H1UcayXjKc7QrAmJ3erroxQ5wApeMNPzQ5XEX9ZZ11Tv' | |
5 | 5 | let cooperPubKey = base58'6NELMuugHtPjNMo1XK5zcBoHcb7AGJe7yc8vDdXphgW3' | |
6 | - | let aliceSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey)) | |
7 | - | then 1 | |
8 | - | else 0 | |
9 | - | let bobSigned = if (sigVerify(tx.bodyBytes, tx.proofs[1], bobPubKey)) | |
10 | - | then 1 | |
11 | - | else 0 | |
12 | - | let cooperSigned = if (sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubKey)) | |
13 | - | then 1 | |
14 | - | else 0 | |
15 | - | (((aliceSigned + bobSigned) + cooperSigned) >= 2) | |
6 | + | let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey) | |
7 | + | let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], alicePubKey) | |
8 | + | let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], alicePubKey) | |
9 | + | let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], bobPubKey) | |
10 | + | let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], bobPubKey) | |
11 | + | let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], bobPubKey) | |
12 | + | let cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperPubKey) | |
13 | + | let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[1], cooperPubKey) | |
14 | + | let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubKey) | |
15 | + | let aliceAndBob = if (if (if (if (if (if (alice1) | |
16 | + | then bob2 | |
17 | + | else false) | |
18 | + | then true | |
19 | + | else if (alice1) | |
20 | + | then bob3 | |
21 | + | else false) | |
22 | + | then true | |
23 | + | else if (alice2) | |
24 | + | then bob1 | |
25 | + | else false) | |
26 | + | then true | |
27 | + | else if (alice2) | |
28 | + | then bob3 | |
29 | + | else false) | |
30 | + | then true | |
31 | + | else if (alice3) | |
32 | + | then bob1 | |
33 | + | else false) | |
34 | + | then true | |
35 | + | else if (alice3) | |
36 | + | then bob2 | |
37 | + | else false | |
38 | + | let aliceAndCooper = if (if (if (if (if (if (alice1) | |
39 | + | then cooper2 | |
40 | + | else false) | |
41 | + | then true | |
42 | + | else if (alice1) | |
43 | + | then cooper3 | |
44 | + | else false) | |
45 | + | then true | |
46 | + | else if (alice2) | |
47 | + | then cooper1 | |
48 | + | else false) | |
49 | + | then true | |
50 | + | else if (alice2) | |
51 | + | then cooper3 | |
52 | + | else false) | |
53 | + | then true | |
54 | + | else if (alice3) | |
55 | + | then cooper1 | |
56 | + | else false) | |
57 | + | then true | |
58 | + | else if (alice3) | |
59 | + | then cooper2 | |
60 | + | else false | |
61 | + | let bobAndCooper = if (if (if (if (if (if (cooper1) | |
62 | + | then bob2 | |
63 | + | else false) | |
64 | + | then true | |
65 | + | else if (cooper1) | |
66 | + | then bob3 | |
67 | + | else false) | |
68 | + | then true | |
69 | + | else if (cooper2) | |
70 | + | then bob1 | |
71 | + | else false) | |
72 | + | then true | |
73 | + | else if (cooper2) | |
74 | + | then bob3 | |
75 | + | else false) | |
76 | + | then true | |
77 | + | else if (cooper3) | |
78 | + | then bob1 | |
79 | + | else false) | |
80 | + | then true | |
81 | + | else if (cooper3) | |
82 | + | then bob2 | |
83 | + | else false | |
84 | + | match tx { | |
85 | + | case _ => | |
86 | + | if (if (aliceAndBob) | |
87 | + | then true | |
88 | + | else aliceAndCooper) | |
89 | + | then true | |
90 | + | else bobAndCooper | |
91 | + | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let alicePubKey = base58'H7H9WWXh7jDTrFFc5VmTG4RrgJYzHpFyNifWfqy5xBgG' | |
4 | 4 | let bobPubKey = base58'H1UcayXjKc7QrAmJ3erroxQ5wApeMNPzQ5XEX9ZZ11Tv' | |
5 | 5 | let cooperPubKey = base58'6NELMuugHtPjNMo1XK5zcBoHcb7AGJe7yc8vDdXphgW3' | |
6 | - | let aliceSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey)) | |
7 | - | then 1 | |
8 | - | else 0 | |
9 | - | let bobSigned = if (sigVerify(tx.bodyBytes, tx.proofs[1], bobPubKey)) | |
10 | - | then 1 | |
11 | - | else 0 | |
12 | - | let cooperSigned = if (sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubKey)) | |
13 | - | then 1 | |
14 | - | else 0 | |
15 | - | (((aliceSigned + bobSigned) + cooperSigned) >= 2) | |
6 | + | let alice1 = sigVerify(tx.bodyBytes, tx.proofs[0], alicePubKey) | |
7 | + | let alice2 = sigVerify(tx.bodyBytes, tx.proofs[1], alicePubKey) | |
8 | + | let alice3 = sigVerify(tx.bodyBytes, tx.proofs[2], alicePubKey) | |
9 | + | let bob1 = sigVerify(tx.bodyBytes, tx.proofs[0], bobPubKey) | |
10 | + | let bob2 = sigVerify(tx.bodyBytes, tx.proofs[1], bobPubKey) | |
11 | + | let bob3 = sigVerify(tx.bodyBytes, tx.proofs[2], bobPubKey) | |
12 | + | let cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperPubKey) | |
13 | + | let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[1], cooperPubKey) | |
14 | + | let cooper3 = sigVerify(tx.bodyBytes, tx.proofs[2], cooperPubKey) | |
15 | + | let aliceAndBob = if (if (if (if (if (if (alice1) | |
16 | + | then bob2 | |
17 | + | else false) | |
18 | + | then true | |
19 | + | else if (alice1) | |
20 | + | then bob3 | |
21 | + | else false) | |
22 | + | then true | |
23 | + | else if (alice2) | |
24 | + | then bob1 | |
25 | + | else false) | |
26 | + | then true | |
27 | + | else if (alice2) | |
28 | + | then bob3 | |
29 | + | else false) | |
30 | + | then true | |
31 | + | else if (alice3) | |
32 | + | then bob1 | |
33 | + | else false) | |
34 | + | then true | |
35 | + | else if (alice3) | |
36 | + | then bob2 | |
37 | + | else false | |
38 | + | let aliceAndCooper = if (if (if (if (if (if (alice1) | |
39 | + | then cooper2 | |
40 | + | else false) | |
41 | + | then true | |
42 | + | else if (alice1) | |
43 | + | then cooper3 | |
44 | + | else false) | |
45 | + | then true | |
46 | + | else if (alice2) | |
47 | + | then cooper1 | |
48 | + | else false) | |
49 | + | then true | |
50 | + | else if (alice2) | |
51 | + | then cooper3 | |
52 | + | else false) | |
53 | + | then true | |
54 | + | else if (alice3) | |
55 | + | then cooper1 | |
56 | + | else false) | |
57 | + | then true | |
58 | + | else if (alice3) | |
59 | + | then cooper2 | |
60 | + | else false | |
61 | + | let bobAndCooper = if (if (if (if (if (if (cooper1) | |
62 | + | then bob2 | |
63 | + | else false) | |
64 | + | then true | |
65 | + | else if (cooper1) | |
66 | + | then bob3 | |
67 | + | else false) | |
68 | + | then true | |
69 | + | else if (cooper2) | |
70 | + | then bob1 | |
71 | + | else false) | |
72 | + | then true | |
73 | + | else if (cooper2) | |
74 | + | then bob3 | |
75 | + | else false) | |
76 | + | then true | |
77 | + | else if (cooper3) | |
78 | + | then bob1 | |
79 | + | else false) | |
80 | + | then true | |
81 | + | else if (cooper3) | |
82 | + | then bob2 | |
83 | + | else false | |
84 | + | match tx { | |
85 | + | case _ => | |
86 | + | if (if (aliceAndBob) | |
87 | + | then true | |
88 | + | else aliceAndCooper) | |
89 | + | then true | |
90 | + | else bobAndCooper | |
91 | + | } |
github/deemru/w8io/026f985 27.08 ms ◑