tx · 5Q4DMiq9QD8AsrbYj6ikimWmf8JRNr6d95n7eQV5pqpH 3N9HbMm462ufStnEM6Vzeoibp2GPam9dTCw: -0.01400000 Waves 2021.02.17 21:44 [1402539] smart account 3N9HbMm462ufStnEM6Vzeoibp2GPam9dTCw > SELF 0.00000000 Waves
{ "type": 13, "id": "5Q4DMiq9QD8AsrbYj6ikimWmf8JRNr6d95n7eQV5pqpH", "fee": 1400000, "feeAssetId": null, "timestamp": 1613587487898, "version": 1, "sender": "3N9HbMm462ufStnEM6Vzeoibp2GPam9dTCw", "senderPublicKey": "EHCwuvZnJkK33jFT5H1UsASiguDsSokhNCKcmn9y5y9W", "proofs": [ "4UDN63i8fP8Kx9swLdHFcMtLRvZvW3oDDUveCjgUAMix4HuKqiy1rbMHZQ7KyDAbb8jvRiLdM1xNopfRwWZf3hzG" ], "script": "base64:AAIEAAAAAAAAAAYIAhIAEgAAAAADAQAAAA5tYXRoQ29tcGxleDQyNQAAAAEAAAABcAQAAAACcDEJAABsAAAABgAAAAAAAAAAAgAAAAAAAAAAAAUAAAABcAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAGSEFMRlVQBAAAAAJwMgkAAG0AAAAGBQAAAAJwMQAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAUAAAAGSEFMRlVQBAAAAAJwMwkAAGwAAAAGAAAAAAAAAAACAAAAAAAAAAAABQAAAAJwMgAAAAAAAAAAAAAAAAAAAAAAAAUAAAAGSEFMRlVQCQAAbQAAAAYFAAAAAnAzAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAABQAAAAZIQUxGVVABAAAADm1hdGhDb21wbGV4ODUwAAAAAQAAAAFwCQEAAAAObWF0aENvbXBsZXg0MjUAAAABCQEAAAAObWF0aENvbXBsZXg0MjUAAAABBQAAAAFwAQAAABFjcnlwdG9Db21wbGV4MTcwMAAAAAEAAAABYgQAAAADYjMyCQABmwAAAAEJAAEsAAAAAgI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Id": 84, "height": 1402539, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7uPGCWpr2kgj9q4oXGupyA4qRVpaCHG2WyGi3sGRyqwm Next: none Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | ||
14 | 14 | ||
15 | 15 | func cryptoComplex1700 (b) = { | |
16 | - | let b32 = | |
16 | + | let b32 = toBytes(("aaaaabbbbbaaaaabbbbbaaaaabbbbba" + b)) | |
17 | 17 | let b64 = (b32 + b32) | |
18 | 18 | let b128 = (b64 + b64) | |
19 | 19 | let b256 = (b128 + b128) | |
42 | 42 | then true | |
43 | 43 | else cryptoComplex1700("b") | |
44 | 44 | if ((p == false)) | |
45 | - | then throw(" | |
45 | + | then throw("crypto failed") | |
46 | 46 | else [StringEntry(toBase58String(i.transactionId), "success")] | |
47 | 47 | } | |
48 | 48 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 4 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | func mathComplex425 (p) = { | |
5 | 5 | let p1 = pow(2, 0, p, 0, 0, HALFUP) | |
6 | 6 | let p2 = log(p1, 0, 2, 0, 0, HALFUP) | |
7 | 7 | let p3 = pow(2, 0, p2, 0, 0, HALFUP) | |
8 | 8 | log(p3, 0, 2, 0, 0, HALFUP) | |
9 | 9 | } | |
10 | 10 | ||
11 | 11 | ||
12 | 12 | func mathComplex850 (p) = mathComplex425(mathComplex425(p)) | |
13 | 13 | ||
14 | 14 | ||
15 | 15 | func cryptoComplex1700 (b) = { | |
16 | - | let b32 = | |
16 | + | let b32 = toBytes(("aaaaabbbbbaaaaabbbbbaaaaabbbbba" + b)) | |
17 | 17 | let b64 = (b32 + b32) | |
18 | 18 | let b128 = (b64 + b64) | |
19 | 19 | let b256 = (b128 + b128) | |
20 | 20 | let vk = (b256 + b32) | |
21 | 21 | let proof = b128 | |
22 | 22 | let inputs = b32 | |
23 | 23 | let r1 = true | |
24 | 24 | bn256Groth16Verify(vk, proof, inputs) | |
25 | 25 | } | |
26 | 26 | ||
27 | 27 | ||
28 | 28 | @Callable(i) | |
29 | 29 | func bugsHunterMathCheck () = { | |
30 | 30 | let p = 16 | |
31 | 31 | let p1 = mathComplex425(mathComplex850(mathComplex850(mathComplex850(mathComplex850(p))))) | |
32 | 32 | if ((p == p1)) | |
33 | 33 | then throw("math failed") | |
34 | 34 | else [StringEntry(toBase58String(i.transactionId), "success")] | |
35 | 35 | } | |
36 | 36 | ||
37 | 37 | ||
38 | 38 | ||
39 | 39 | @Callable(i) | |
40 | 40 | func bugsHunterCryptoCheck () = { | |
41 | 41 | let p = if (cryptoComplex1700("a")) | |
42 | 42 | then true | |
43 | 43 | else cryptoComplex1700("b") | |
44 | 44 | if ((p == false)) | |
45 | - | then throw(" | |
45 | + | then throw("crypto failed") | |
46 | 46 | else [StringEntry(toBase58String(i.transactionId), "success")] | |
47 | 47 | } | |
48 | 48 | ||
49 | 49 |
github/deemru/w8io/169f3d6 49.33 ms ◑