tx · DjNV7op6wjvjjxfcuMaAhpmWvXsBNwwZmefKrYtdp4pL 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb: -0.01400000 Waves 2019.01.30 10:05 [472674] smart account 3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb > SELF 0.00000000 Waves
{ "type": 13, "id": "DjNV7op6wjvjjxfcuMaAhpmWvXsBNwwZmefKrYtdp4pL", "fee": 1400000, "feeAssetId": null, "timestamp": 1548831934667, "version": 1, "sender": "3N4mapsqVLDdiatjTF2rYB5KiLn2e6Y4eJb", "senderPublicKey": "BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe", "proofs": [ "4UzuJZixgCgEi39eKKoMrLYHPoVPU2BV1ZuH4r9HFfv84snBkT59XMnXE5ug3oKefWi8vuKhqxUVwWYUyHG8bJgm" ], "script": "base64:AQQAAAAIdm90ZUJhbmsJAQAAABRhZGRyZXNzRnJvbVB1YmxpY0tleQAAAAEJAAJZAAAAAQIAAAAsQlRkVG1UQmZMNVRNWG5vNndqS21wRGZnM200TDVBNzFLYXVqYjRrSnR1WWUEAAAAE21pbmltYWxWb3RpbmdIZWlnaHQAAAAAAAAAAAoEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDADAwkAAAAAAAACCQABkAAAAAEIBQAAAAFkAAAABGRhdGEAAAAAAAAAAAMJAAAAAAAAAgkAAZAAAAABCAUAAAABZAAAAAZwcm9vZnMAAAAAAAAAAAQHBAAAAA5hc3NldFRyYW5zZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAQQAAAANZmVlVHJhbnNmZXJJZAkAA+gAAAABCQABkQAAAAIIBQAAAAFkAAAABnByb29mcwAAAAAAAAAAAAQAAAAHJG1hdGNoMQUAAAAOYXNzZXRUcmFuc2VySWQDCQAAAQA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G Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | match tx { | |
6 | 6 | case d: DataTransaction => | |
7 | 7 | if (if ((size(d.data) == 3)) | |
8 | - | then (size(d.proofs) == | |
8 | + | then (size(d.proofs) == 4) | |
9 | 9 | else false) | |
10 | 10 | then { | |
11 | 11 | let assetTranserId = transactionById(d.proofs[1]) | |
37 | 37 | else false) | |
38 | 38 | then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId) | |
39 | 39 | else false) | |
40 | - | then sigVerify(d.bodyBytes, d.proofs[ | |
40 | + | then sigVerify(d.bodyBytes, d.proofs[3], d.proofs[2]) | |
41 | 41 | else false | |
42 | 42 | case _ => | |
43 | 43 | false |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 1 #-} | |
2 | 2 | {-# CONTENT_TYPE EXPRESSION #-} | |
3 | 3 | let voteBank = addressFromPublicKey(fromBase58String("BTdTmTBfL5TMXno6wjKmpDfg3m4L5A71Kaujb4kJtuYe")) | |
4 | 4 | let minimalVotingHeight = 10 | |
5 | 5 | match tx { | |
6 | 6 | case d: DataTransaction => | |
7 | 7 | if (if ((size(d.data) == 3)) | |
8 | - | then (size(d.proofs) == | |
8 | + | then (size(d.proofs) == 4) | |
9 | 9 | else false) | |
10 | 10 | then { | |
11 | 11 | let assetTranserId = transactionById(d.proofs[1]) | |
12 | 12 | let feeTransferId = transactionById(d.proofs[0]) | |
13 | 13 | match assetTranserId { | |
14 | 14 | case aT: TransferTransaction => | |
15 | 15 | match feeTransferId { | |
16 | 16 | case fT: TransferTransaction => | |
17 | 17 | if (if (if (if (if (if (if (if (if (if (if (if (!(isDefined(getString(voteBank, d.data[0].key)))) | |
18 | 18 | then isDefined(getString(aT.sender, "YES")) | |
19 | 19 | else false) | |
20 | 20 | then isDefined(getString(aT.sender, "NO")) | |
21 | 21 | else false) | |
22 | 22 | then (aT.recipient == voteBank) | |
23 | 23 | else false) | |
24 | 24 | then (fT.recipient == voteBank) | |
25 | 25 | else false) | |
26 | 26 | then (fT.amount >= (aT.amount * 500000)) | |
27 | 27 | else false) | |
28 | 28 | then (d.data[0].key == toBase58String(sha256(aT.attachment))) | |
29 | 29 | else false) | |
30 | 30 | then (d.data[0].key == toBase58String(sha256(fT.attachment))) | |
31 | 31 | else false) | |
32 | 32 | then (d.data[1].key == (toBase58String(sha256(fT.attachment)) + "_height")) | |
33 | 33 | else false) | |
34 | 34 | then (d.data[2].key == (toBase58String(sha256(fT.attachment)) + "_asset")) | |
35 | 35 | else false) | |
36 | 36 | then (extract(getInteger(aT.sender, d.data[1].key)) > height) | |
37 | 37 | else false) | |
38 | 38 | then (extract(getBinary(aT.sender, d.data[2].key)) == aT.assetId) | |
39 | 39 | else false) | |
40 | - | then sigVerify(d.bodyBytes, d.proofs[ | |
40 | + | then sigVerify(d.bodyBytes, d.proofs[3], d.proofs[2]) | |
41 | 41 | else false | |
42 | 42 | case _ => | |
43 | 43 | false | |
44 | 44 | } | |
45 | 45 | case _ => | |
46 | 46 | false | |
47 | 47 | } | |
48 | 48 | } | |
49 | 49 | else false | |
50 | 50 | case t: TransferTransaction => | |
51 | 51 | if (isDefined(getString(voteBank, toBase58String(t.attachment)))) | |
52 | 52 | then { | |
53 | 53 | let voteStarter = extract(addressFromString(extract(getString(voteBank, toBase58String(sha256(t.attachment)))))) | |
54 | 54 | if (if (if (if (if (if ((extract(getInteger(voteBank, (toBase58String(sha256(t.attachment)) + "_height"))) > height)) | |
55 | 55 | then if ((addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "YES"))))) | |
56 | 56 | then true | |
57 | 57 | else (addressFromRecipient(t.recipient) == addressFromString(extract(getString(voteStarter, "NO")))) | |
58 | 58 | else false) | |
59 | 59 | then (t.assetId == extract(getBinary(voteStarter, (toBase58String(t.attachment) + "_asset")))) | |
60 | 60 | else false) | |
61 | 61 | then (t.amount == 1) | |
62 | 62 | else false) | |
63 | 63 | then (t.fee == 500000) | |
64 | 64 | else false) | |
65 | 65 | then (wavesBalance(t.sender) > 100000000) | |
66 | 66 | else false) | |
67 | 67 | then sigVerify(t.bodyBytes, t.proofs[0], tx.senderPublicKey) | |
68 | 68 | else false | |
69 | 69 | } | |
70 | 70 | else false | |
71 | 71 | case s: SetScriptTransaction => | |
72 | 72 | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
73 | 73 | case _ => | |
74 | 74 | false | |
75 | 75 | } |
github/deemru/w8io/026f985 23.35 ms ◑