tx · FxaQ9Ca1wdL1xEVNoBnadLUS1qCnoyMDx3QSkJyQ93K1 3MvF7sFhvGrEsFejumj5Ym49EtGFRbGxZiX: -0.05000000 Waves 2019.09.01 10:00 [656545] smart account 3MvF7sFhvGrEsFejumj5Ym49EtGFRbGxZiX > SELF 0.00000000 Waves
{ "type": 13, "id": "FxaQ9Ca1wdL1xEVNoBnadLUS1qCnoyMDx3QSkJyQ93K1", "fee": 5000000, "feeAssetId": null, "timestamp": 1567321206187, "version": 1, "sender": "3MvF7sFhvGrEsFejumj5Ym49EtGFRbGxZiX", "senderPublicKey": "touCRWm8YhWdDf7DhrhJTWKGF3GBunmxUQFhSMwoDKQ", "proofs": [ "4yKSHmpwG9GqvCQFTymPwgwWYbEgP6mD9ZGGWFHTEqwLUMJ1rWUoWhYYKC5JyMLHPuiVPLes6pHnC8JfHfqi9UG2", "fjZEtoyEy4F8pw56CM5A9M2KZfMD5HJ5qkUnm5umDt4btxRrBUBh3NpaqQ5aPp6Red6UBrZWex8YQCpEvdX6ax5", "4e6uBf9A8EbFZ84UMss8LAeaB6uru2KjmQxPppH1NUv1arciSpfiDguL3ju7Y4TB1MbJq7rb7EQogAN7JnTST5dr" ], "script": "base64:AAIDAAAAAAAAAAAAAAADAAAAAAthbGljZVB1YktleQEAAAAgDUWmtTE8KQmFGp6IgXWQWvgLZtPouHDEAptp3nV/LysAAAAACWJvYlB1YktleQEAAAAgyTpG8jWBI79J5nntdURLWaHMTAevOkLo8zPJWvwV7FEAAAAADGNvb3BlclB1YktleQEAAAAgCAe2ckNcZtOX8OnpHq9tv9Su8VOyJVgB0bxPsGtbdlsAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAGYWxpY2UxCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAALYWxpY2VQdWJLZXkEAAAABmFsaWNlMgkAAfQAAAADCAUAAAAC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MwcGAwUAAAAGYWxpY2UzBQAAAARib2IxBwYDBQAAAAZhbGljZTMFAAAABGJvYjIHBAAAAA5hbGljZUFuZENvb3BlcgMDAwMDAwUAAAAGYWxpY2UxBQAAAAdjb29wZXIyBwYDBQAAAAZhbGljZTEFAAAAB2Nvb3BlcjMHBgMFAAAABmFsaWNlMgUAAAAHY29vcGVyMQcGAwUAAAAGYWxpY2UyBQAAAAdjb29wZXIzBwYDBQAAAAZhbGljZTMFAAAAB2Nvb3BlcjEHBgMFAAAABmFsaWNlMwUAAAAHY29vcGVyMgcEAAAADGJvYkFuZENvb3BlcgMDAwMDAwUAAAAEYm9iMQUAAAAHY29vcGVyMgcGAwUAAAAEYm9iMQUAAAAHY29vcGVyMwcGAwUAAAAEYm9iMgUAAAAHY29vcGVyMQcGAwUAAAAEYm9iMgUAAAAHY29vcGVyMwcGAwUAAAAEYm9iMwUAAAAHY29vcGVyMQcGAwUAAAAEYm9iMwUAAAAHY29vcGVyMgcEAAAAByRtYXRjaDAFAAAAAnR4AwMFAAAAC2FsaWNlQW5kQm9iBgUAAAAOYWxpY2VBbmRDb29wZXIGBQAAAAxib2JBbmRDb29wZXKYELYB", "chainId": 84, "height": 656545, "spentComplexity": 0 } View: original | compacted Prev: 4SYKpePdn1t5sUcJgr1B4R5fMtm6WMcCe9EKN2g7wurR Next: 2hxsB3UP9JfRAxqYAjbk9KnL4inD5SWvCjh765j4mUFe Full:
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | + | let alicePubKey = base58'touCRWm8YhWdDf7DhrhJTWKGF3GBunmxUQFhSMwoDKQ' | |
4 | 5 | ||
6 | + | let bobPubKey = base58'EYWVJ6rgHwAz6uh7u4eX2STJbNGQPyKhxndwYNhn8k3i' | |
7 | + | ||
8 | + | let cooperPubKey = base58'YM5oFwT9L8f2rwVnqSHU3BpfT7r5jTLkq7pC9UYipY2' | |
5 | 9 | ||
6 | 10 | ||
7 | 11 | @Verifier(tx) | |
8 | - | func verify () = match tx { | |
9 | - | case d: SetScriptTransaction => | |
10 | - | true | |
11 | - | case d: DataTransaction => | |
12 | - | true | |
13 | - | case _ => | |
14 | - | false | |
15 | - | } | |
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 cooper1 = sigVerify(tx.bodyBytes, tx.proofs[0], cooperPubKey) | |
20 | + | let cooper2 = sigVerify(tx.bodyBytes, tx.proofs[1], cooperPubKey) | |
21 | + | let cooper3 = 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 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 | + | } | |
16 | 100 |
github/deemru/w8io/026f985 48.36 ms ◑