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:AAIEAAAAAAAAAAYIAhIAEgAAAAADAQAAAA5tYXRoQ29tcGxleDQyNQAAAAEAAAABcAQAAAACcDEJAABsAAAABgAAAAAAAAAAAgAAAAAAAAAAAAUAAAABcAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAGSEFMRlVQBAAAAAJwMgkAAG0AAAAGBQAAAAJwMQAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAUAAAAGSEFMRlVQBAAAAAJwMwkAAGwAAAAGAAAAAAAAAAACAAAAAAAAAAAABQAAAAJwMgAAAAAAAAAAAAAAAAAAAAAAAAUAAAAGSEFMRlVQCQAAbQAAAAYFAAAAAnAzAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAABQAAAAZIQUxGVVABAAAADm1hdGhDb21wbGV4ODUwAAAAAQAAAAFwCQEAAAAObWF0aENvbXBsZXg0MjUAAAABCQEAAAAObWF0aENvbXBsZXg0MjUAAAABBQAAAAFwAQAAABFjcnlwdG9Db21wbGV4MTcwMAAAAAEAAAABYgQAAAADYjMyCQABmwAAAAEJAAEsAAAAAg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ainId": 84, "height": 1402539, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 7uPGCWpr2kgj9q4oXGupyA4qRVpaCHG2WyGi3sGRyqwm Next: none Diff:
OldNewDifferences
1313
1414
1515 func cryptoComplex1700 (b) = {
16- let b32 = fromBase58String(("aaaaabbbbbaaaaabbbbbaaaaabbbbba" + b))
16+ let b32 = toBytes(("aaaaabbbbbaaaaabbbbbaaaaabbbbba" + b))
1717 let b64 = (b32 + b32)
1818 let b128 = (b64 + b64)
1919 let b256 = (b128 + b128)
4242 then true
4343 else cryptoComplex1700("b")
4444 if ((p == false))
45- then throw("math failed")
45+ then throw("crypto failed")
4646 else [StringEntry(toBase58String(i.transactionId), "success")]
4747 }
4848
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 4 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44 func mathComplex425 (p) = {
55 let p1 = pow(2, 0, p, 0, 0, HALFUP)
66 let p2 = log(p1, 0, 2, 0, 0, HALFUP)
77 let p3 = pow(2, 0, p2, 0, 0, HALFUP)
88 log(p3, 0, 2, 0, 0, HALFUP)
99 }
1010
1111
1212 func mathComplex850 (p) = mathComplex425(mathComplex425(p))
1313
1414
1515 func cryptoComplex1700 (b) = {
16- let b32 = fromBase58String(("aaaaabbbbbaaaaabbbbbaaaaabbbbba" + b))
16+ let b32 = toBytes(("aaaaabbbbbaaaaabbbbbaaaaabbbbba" + b))
1717 let b64 = (b32 + b32)
1818 let b128 = (b64 + b64)
1919 let b256 = (b128 + b128)
2020 let vk = (b256 + b32)
2121 let proof = b128
2222 let inputs = b32
2323 let r1 = true
2424 bn256Groth16Verify(vk, proof, inputs)
2525 }
2626
2727
2828 @Callable(i)
2929 func bugsHunterMathCheck () = {
3030 let p = 16
3131 let p1 = mathComplex425(mathComplex850(mathComplex850(mathComplex850(mathComplex850(p)))))
3232 if ((p == p1))
3333 then throw("math failed")
3434 else [StringEntry(toBase58String(i.transactionId), "success")]
3535 }
3636
3737
3838
3939 @Callable(i)
4040 func bugsHunterCryptoCheck () = {
4141 let p = if (cryptoComplex1700("a"))
4242 then true
4343 else cryptoComplex1700("b")
4444 if ((p == false))
45- then throw("math failed")
45+ then throw("crypto failed")
4646 else [StringEntry(toBase58String(i.transactionId), "success")]
4747 }
4848
4949

github/deemru/w8io/169f3d6 
49.33 ms