tx · AGcHGdgF2JWJqmPbfB2GhLWmnGQnEw22oHZKdu4W8qKp 3Mz3Ths53p7Ur95CiAyTtQd9uc6UkopRL6n: -0.01400000 Waves 2019.02.24 23:58 [509972] smart account 3Mz3Ths53p7Ur95CiAyTtQd9uc6UkopRL6n > SELF 0.00000000 Waves
{ "type": 13, "id": "AGcHGdgF2JWJqmPbfB2GhLWmnGQnEw22oHZKdu4W8qKp", "fee": 1400000, "feeAssetId": null, "timestamp": 1551041943456, "version": 1, "sender": "3Mz3Ths53p7Ur95CiAyTtQd9uc6UkopRL6n", "senderPublicKey": "bcMSuV9WgLkCar1CMCueVHuq6ugDUnnhLnhbzGC1LKU", "proofs": [ "2CVHBvuLUianBxVkcQ9v8L8DxhZnQvNL7SX6t1Av1aSWjdeGF9NEBfDevmzWbF949sZEktbsAKdExRN7z1Dq1goU" ], "script": "base64:AQQAAAAOdmVjcm9QdWJsaWNLZXkIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkEAAAAC3RyaWdnZXJDb3N0AAAAAAAAB6EgBAAAAAlhbGlhc0luaXQJAQAAAAVBbGlhcwAAAAECAAAACmluaXRAdmVjcm8EAAAAC2FsaWFzUmFuZG9tCQEAAAAFQWxpYXMAAAABAgAAAAxyYW5kb21AdmVjcm8EAAAACWFzc2V0SW5pdAEAAAAg5WsUZERWn0yMrxRGO6i7lavfb8Fh7/RZ9h8i2RJJcsgEAAAAC2Fzc2V0UmFuZG9tAQAAACAOAb4cs1qOfz6ifywljFjOjST5wSBMSTG47FnQkBsqxAQAAAAFY29kZVIJAAGbAAAAAQIAAAABUgQAAAAFY29kZVMJAAGbAAAAAQIAAAABUwQAAAAIY29kZVNpemUAAAAAAAAAAC0EAAAABGlTaWcAAAAAAAAAAAAEAAAABGlSYXcAAAAAAAAAAAEEAAAABWlUcmlnAAAAAAAAAAACBAAAAAVpSW5pdAAAAAAAAAAAAwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXR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BwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMFAAAABGlTaWcFAAAADnZlY3JvUHVibGljS2V5JtQaCw==", "chainId": 84, "height": 509972, "spentComplexity": 0 } View: original | compacted Prev: GvxrrJVZxbHEtCrhK4iHvvEP2t8jgLbqAjj3r4mnz5Tg Next: ADzQz6F6yoycC4v2n7g27FWpVwGWSQX8hMREFfU8agVr Diff:
Old | New | Differences | |
---|---|---|---|
4 | 4 | let triggerCost = 500000 | |
5 | 5 | let aliasInit = Alias("init@vecro") | |
6 | 6 | let aliasRandom = Alias("random@vecro") | |
7 | - | let assetInit = base58' | |
8 | - | let assetRandom = base58' | |
7 | + | let assetInit = base58'GSZ4kEkHRLaM7zu9GPx1R4XU5nqnrNgh9GCxYXd2pdDR' | |
8 | + | let assetRandom = base58'wgFSVC6kNSrCc1V5BULdAYeHzVawowxEKVUYGEj8Fb1' | |
9 | 9 | let codeR = toBytes("R") | |
10 | 10 | let codeS = toBytes("S") | |
11 | 11 | let codeSize = 45 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let vecroPublicKey = tx.senderPublicKey | |
4 | 4 | let triggerCost = 500000 | |
5 | 5 | let aliasInit = Alias("init@vecro") | |
6 | 6 | let aliasRandom = Alias("random@vecro") | |
7 | - | let assetInit = base58' | |
8 | - | let assetRandom = base58' | |
7 | + | let assetInit = base58'GSZ4kEkHRLaM7zu9GPx1R4XU5nqnrNgh9GCxYXd2pdDR' | |
8 | + | let assetRandom = base58'wgFSVC6kNSrCc1V5BULdAYeHzVawowxEKVUYGEj8Fb1' | |
9 | 9 | let codeR = toBytes("R") | |
10 | 10 | let codeS = toBytes("S") | |
11 | 11 | let codeSize = 45 | |
12 | 12 | let iSig = 0 | |
13 | 13 | let iRaw = 1 | |
14 | 14 | let iTrig = 2 | |
15 | 15 | let iInit = 3 | |
16 | 16 | match tx { | |
17 | 17 | case thisTx: TransferTransaction => | |
18 | 18 | match transactionById(thisTx.proofs[iTrig]) { | |
19 | 19 | case triggerTx: TransferTransaction => | |
20 | 20 | if ((triggerTx.recipient == aliasInit)) | |
21 | 21 | then { | |
22 | 22 | let initTx = thisTx | |
23 | 23 | let triggerInitTx = triggerTx | |
24 | 24 | let initTxbodyBytes = (initTx.bodyBytes + initTx.proofs[iTrig]) | |
25 | 25 | let R = initTx.proofs[iRaw] | |
26 | 26 | if (if (if (if (if (if (if (if (if (!(isDefined(triggerInitTx.assetId))) | |
27 | 27 | then (triggerInitTx.amount >= triggerCost) | |
28 | 28 | else false) | |
29 | 29 | then (triggerInitTx.sender == initTx.recipient) | |
30 | 30 | else false) | |
31 | 31 | then !(isDefined(initTx.feeAssetId)) | |
32 | 32 | else false) | |
33 | 33 | then (initTx.fee == triggerCost) | |
34 | 34 | else false) | |
35 | 35 | then (initTx.assetId == assetInit) | |
36 | 36 | else false) | |
37 | 37 | then (initTx.amount == 1) | |
38 | 38 | else false) | |
39 | 39 | then (size(initTx.attachment) == codeSize) | |
40 | 40 | else false) | |
41 | 41 | then (initTx.attachment == toBytes(toBase58String((codeR + R)))) | |
42 | 42 | else false) | |
43 | 43 | then sigVerify(initTxbodyBytes, initTx.proofs[iSig], vecroPublicKey) | |
44 | 44 | else false | |
45 | 45 | } | |
46 | 46 | else if ((triggerTx.recipient == aliasRandom)) | |
47 | 47 | then match transactionById(thisTx.proofs[iInit]) { | |
48 | 48 | case initTx: TransferTransaction => | |
49 | 49 | match transactionById(initTx.proofs[iTrig]) { | |
50 | 50 | case triggerInitTx: TransferTransaction => | |
51 | 51 | if ((triggerInitTx.recipient == aliasInit)) | |
52 | 52 | then { | |
53 | 53 | let randomTx = thisTx | |
54 | 54 | let triggerRandomTx = triggerTx | |
55 | 55 | let initTxbodyBytes = (initTx.bodyBytes + initTx.proofs[iTrig]) | |
56 | 56 | let randomTxbodyBytes = ((randomTx.bodyBytes + randomTx.proofs[iTrig]) + randomTx.proofs[iInit]) | |
57 | 57 | let R = initTx.proofs[iRaw] | |
58 | 58 | let S = thisTx.proofs[iRaw] | |
59 | 59 | let sig = (R + S) | |
60 | 60 | let msg = triggerRandomTx.attachment | |
61 | 61 | if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if (if ((triggerRandomTx.sender == triggerInitTx.sender)) | |
62 | 62 | then (take(msg, codeSize) == initTx.attachment) | |
63 | 63 | else false) | |
64 | 64 | then sigVerify(msg, sig, vecroPublicKey) | |
65 | 65 | else false) | |
66 | 66 | then !(isDefined(triggerRandomTx.assetId)) | |
67 | 67 | else false) | |
68 | 68 | then (triggerRandomTx.amount >= triggerCost) | |
69 | 69 | else false) | |
70 | 70 | then (triggerRandomTx.sender == randomTx.recipient) | |
71 | 71 | else false) | |
72 | 72 | then !(isDefined(randomTx.feeAssetId)) | |
73 | 73 | else false) | |
74 | 74 | then (randomTx.fee == triggerCost) | |
75 | 75 | else false) | |
76 | 76 | then (randomTx.assetId == assetRandom) | |
77 | 77 | else false) | |
78 | 78 | then (randomTx.amount == 1) | |
79 | 79 | else false) | |
80 | 80 | then (size(randomTx.attachment) == codeSize) | |
81 | 81 | else false) | |
82 | 82 | then (randomTx.attachment == toBytes(toBase58String((codeS + S)))) | |
83 | 83 | else false) | |
84 | 84 | then sigVerify(randomTxbodyBytes, randomTx.proofs[iSig], vecroPublicKey) | |
85 | 85 | else false) | |
86 | 86 | then !(isDefined(triggerInitTx.assetId)) | |
87 | 87 | else false) | |
88 | 88 | then (triggerInitTx.amount >= triggerCost) | |
89 | 89 | else false) | |
90 | 90 | then (triggerInitTx.sender == initTx.recipient) | |
91 | 91 | else false) | |
92 | 92 | then !(isDefined(initTx.feeAssetId)) | |
93 | 93 | else false) | |
94 | 94 | then (initTx.fee == triggerCost) | |
95 | 95 | else false) | |
96 | 96 | then (initTx.assetId == assetInit) | |
97 | 97 | else false) | |
98 | 98 | then (initTx.amount == 1) | |
99 | 99 | else false) | |
100 | 100 | then (size(initTx.attachment) == codeSize) | |
101 | 101 | else false) | |
102 | 102 | then (initTx.attachment == toBytes(toBase58String((codeR + R)))) | |
103 | 103 | else false) | |
104 | 104 | then sigVerify(initTxbodyBytes, initTx.proofs[iSig], vecroPublicKey) | |
105 | 105 | else false | |
106 | 106 | } | |
107 | 107 | else false | |
108 | 108 | case _ => | |
109 | 109 | false | |
110 | 110 | } | |
111 | 111 | case _ => | |
112 | 112 | false | |
113 | 113 | } | |
114 | 114 | else false | |
115 | 115 | case _ => | |
116 | 116 | false | |
117 | 117 | } | |
118 | 118 | case _ => | |
119 | 119 | sigVerify(tx.bodyBytes, tx.proofs[iSig], vecroPublicKey) | |
120 | 120 | } |
github/deemru/w8io/169f3d6 70.29 ms ◑