tx · 4TDXqStYhDBFMMfWjWVXAAp3sHqjo7QxMZCG5f7U7dVH 3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW: -0.01400000 Waves 2020.03.11 13:43 [904390] smart account 3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW > SELF 0.00000000 Waves
{ "type": 13, "id": "4TDXqStYhDBFMMfWjWVXAAp3sHqjo7QxMZCG5f7U7dVH", "fee": 1400000, "feeAssetId": null, "timestamp": 1583923478598, "version": 1, "sender": "3N6KWtjpEqhL8oRk3YEQFVYsUwhjzA2rCUW", "senderPublicKey": "7wiL4SU2VfpuDUUtTqN4WrWXBp7awHtxk4BjkK1vYuSY", "proofs": [ "2i4nebLBiCY8E34t4vKhq1bthtaAiCJXcXHD1nbJvDUMkdaZyV9Gu5DWzVHNgnY2ozYJ1DM5G7WaPwA8QeFs9Zmt" ], "script": "base64:AAIDAAAAAAAAAAIIAQAAAAUAAAAABndhbGxldAEAAAAgZyo3NScvF56e9La2lYCsgs0dgVdeQU7xmJjRzUPPRkEAAAAACWFkbWluVXNlcgEAAAAghFnXNsQSGpUKiNBWUUMLCM69H3jgPMEiP2tt1KoPcB8AAAAACWZpcnN0VXNlcgEAAAAgiJ99vj+HoDwaRgk6FA0lIwCoEoSal/XDv4tQ9F2utxQAAAAACnNlY29uZFVzZXIBAAAAIHSXC2hB/uCGZAwGQuSEpIy0EqtrNnegqv2ol4A0pTgJAAAAAAl0aGlyZFVzZXIBAAAAIJ3dhvUtLPxPjRTGB9nWTe2gQwrS/YipjiauU3zZWWJZAAAAAAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAADHdhbGxldFNpZ25lZAMDAwMDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAGd2FsbGV0BgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0e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1mriUzWWfuNGBqks1vGC4t2E7uKhfbg6XtHsCJc9 Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | let adminUser = base58'9ueGkrW1TASrdthpEUTh9edK7tjp3kxNadNLjJrJAbJe' | |
7 | 7 | ||
8 | - | let firstUser = base58' | |
8 | + | let firstUser = base58'ACKW6k8NZzG5sZB3ZPCZZbrnz4dJup9T71hkmw5LrTW3' | |
9 | 9 | ||
10 | - | let secondUser = base58' | |
10 | + | let secondUser = base58'8r7stxcW7GogCzP3xpgLykkocDrAHBUt5jFXJm4DRWAC' | |
11 | 11 | ||
12 | - | let thirdUser = base58' | |
12 | + | let thirdUser = base58'BdEvqq5qvNM3WfpUhd8ekryiGHxxS58nsbYhz7bMer1n' | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Verifier(tx) |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 3 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | let wallet = base58'7wiL4SU2VfpuDUUtTqN4WrWXBp7awHtxk4BjkK1vYuSY' | |
5 | 5 | ||
6 | 6 | let adminUser = base58'9ueGkrW1TASrdthpEUTh9edK7tjp3kxNadNLjJrJAbJe' | |
7 | 7 | ||
8 | - | let firstUser = base58' | |
8 | + | let firstUser = base58'ACKW6k8NZzG5sZB3ZPCZZbrnz4dJup9T71hkmw5LrTW3' | |
9 | 9 | ||
10 | - | let secondUser = base58' | |
10 | + | let secondUser = base58'8r7stxcW7GogCzP3xpgLykkocDrAHBUt5jFXJm4DRWAC' | |
11 | 11 | ||
12 | - | let thirdUser = base58' | |
12 | + | let thirdUser = base58'BdEvqq5qvNM3WfpUhd8ekryiGHxxS58nsbYhz7bMer1n' | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | @Verifier(tx) | |
16 | 16 | func verify () = { | |
17 | 17 | let walletSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], wallet)) | |
18 | 18 | then true | |
19 | 19 | else sigVerify(tx.bodyBytes, tx.proofs[1], wallet)) | |
20 | 20 | then true | |
21 | 21 | else sigVerify(tx.bodyBytes, tx.proofs[2], wallet)) | |
22 | 22 | then true | |
23 | 23 | else sigVerify(tx.bodyBytes, tx.proofs[3], wallet)) | |
24 | 24 | then true | |
25 | 25 | else sigVerify(tx.bodyBytes, tx.proofs[4], wallet)) | |
26 | 26 | then 1 | |
27 | 27 | else 0 | |
28 | 28 | let adminUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], adminUser)) | |
29 | 29 | then true | |
30 | 30 | else sigVerify(tx.bodyBytes, tx.proofs[1], adminUser)) | |
31 | 31 | then true | |
32 | 32 | else sigVerify(tx.bodyBytes, tx.proofs[2], adminUser)) | |
33 | 33 | then true | |
34 | 34 | else sigVerify(tx.bodyBytes, tx.proofs[3], adminUser)) | |
35 | 35 | then true | |
36 | 36 | else sigVerify(tx.bodyBytes, tx.proofs[4], adminUser)) | |
37 | 37 | then 1 | |
38 | 38 | else 0 | |
39 | 39 | let firstUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
40 | 40 | then true | |
41 | 41 | else sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
42 | 42 | then true | |
43 | 43 | else sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
44 | 44 | then true | |
45 | 45 | else sigVerify(tx.bodyBytes, tx.proofs[3], firstUser)) | |
46 | 46 | then true | |
47 | 47 | else sigVerify(tx.bodyBytes, tx.proofs[4], firstUser)) | |
48 | 48 | then 1 | |
49 | 49 | else 0 | |
50 | 50 | let secondUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
51 | 51 | then true | |
52 | 52 | else sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
53 | 53 | then true | |
54 | 54 | else sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
55 | 55 | then true | |
56 | 56 | else sigVerify(tx.bodyBytes, tx.proofs[3], secondUser)) | |
57 | 57 | then true | |
58 | 58 | else sigVerify(tx.bodyBytes, tx.proofs[4], secondUser)) | |
59 | 59 | then 1 | |
60 | 60 | else 0 | |
61 | 61 | let thirdUserSigned = if (if (if (if (if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
62 | 62 | then true | |
63 | 63 | else sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
64 | 64 | then true | |
65 | 65 | else sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
66 | 66 | then true | |
67 | 67 | else sigVerify(tx.bodyBytes, tx.proofs[3], thirdUser)) | |
68 | 68 | then true | |
69 | 69 | else sigVerify(tx.bodyBytes, tx.proofs[4], thirdUser)) | |
70 | 70 | then 1 | |
71 | 71 | else 0 | |
72 | 72 | match tx { | |
73 | 73 | case e: Order|ExchangeTransaction => | |
74 | 74 | true | |
75 | 75 | case d: SetAssetScriptTransaction|DataTransaction|ReissueTransaction|CreateAliasTransaction|IssueTransaction|SetScriptTransaction => | |
76 | 76 | if (sigVerify(tx.bodyBytes, tx.proofs[0], adminUser)) | |
77 | 77 | then true | |
78 | 78 | else sigVerify(tx.bodyBytes, tx.proofs[1], adminUser) | |
79 | 79 | case t: TransferTransaction => | |
80 | 80 | let signCount = if (isDefined(t.assetId)) | |
81 | 81 | then 1 | |
82 | 82 | else 4 | |
83 | 83 | (((((walletSigned + adminUserSigned) + firstUserSigned) + secondUserSigned) + thirdUserSigned) >= signCount) | |
84 | 84 | case b: BurnTransaction => | |
85 | 85 | if (sigVerify(tx.bodyBytes, tx.proofs[0], wallet)) | |
86 | 86 | then true | |
87 | 87 | else sigVerify(tx.bodyBytes, tx.proofs[1], wallet) | |
88 | 88 | case _ => | |
89 | 89 | false | |
90 | 90 | } | |
91 | 91 | } | |
92 | 92 |
github/deemru/w8io/026f985 34.12 ms ◑