tx · JBv4GHsjvbxSwA4KJRCDiiwtXXqDdMS5oehFjC7W59Xs 3N7YFL8JEHu2cnANSVXMB7FPo5KwWxqTq1u: -0.01400000 Waves 2021.08.16 21:15 [1661250] smart account 3N7YFL8JEHu2cnANSVXMB7FPo5KwWxqTq1u > SELF 0.00000000 Waves
{ "type": 13, "id": "JBv4GHsjvbxSwA4KJRCDiiwtXXqDdMS5oehFjC7W59Xs", "fee": 1400000, "feeAssetId": null, "timestamp": 1629137743043, "version": 2, "chainId": 84, "sender": "3N7YFL8JEHu2cnANSVXMB7FPo5KwWxqTq1u", "senderPublicKey": "Ere562jAj4iKVycxEgmZEfj5CTAUYvE2Tu6AicUjZmPY", "proofs": [ "34dboZaAehc4ghigiBxjBAdH94hxEXhXSRfQRrMZ49fqSnMMFosm6ZPAyQbbkUuzu6CFEe9PjjHsvqH75BTGsNjL" ], "script": "base64:AAIEAAAAAAAAAAIIAgAAAAAAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAQAAAAKYm9keUJhc2U2NAkAAloAAAABCAUAAAACdHgAAAAJYm9keUJ5dGVzBAAAAA1zaWduZWRNZXNzYWdlCQABmwAAAAEJAAEsAAAAAgkAASwAAAACAgAAABoZRXRoZXJldW0gU2lnbmVkIE1lc3NhZ2U6CgkAAaQAAAABCQABMQAAAAEFAAAACmJvZHlCYXNlNjQFAAAACmJvZHlCYXNlNjQEAAAABXByb29mBAAAAAlwcm9vZnNTdW0DAwkAAGYAAAACCQAAyAAAAAEJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAAAAAAAAAAAQAYJAABmAAAAAgkAAMgAAAABCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEAAAAAAAAAAEAJAAACAAAAAQIAAAAuUHJvb2YgbGVuZ3RoIG11c3QgYmUgZXF1YWwgdG8gNjQgYnl0ZXMgb3IgbGVzcwMDAwMDAwkBAAAAAiE9AAAAAgkAAMgAAAABCQ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/tci2lQ1DbezGpn5IIABgGEM39SBoXWAhstuWZ+8", "height": 1661250, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: none Next: none Full:
Old | New | Differences | |
---|---|---|---|
1 | - | # no script | |
1 | + | {-# STDLIB_VERSION 4 #-} | |
2 | + | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | + | {-# CONTENT_TYPE DAPP #-} | |
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | @Verifier(tx) | |
8 | + | func verify () = { | |
9 | + | let bodyBase64 = toBase64String(tx.bodyBytes) | |
10 | + | let signedMessage = toBytes((("Ethereum Signed Message: | |
11 | + | " + toString(size(bodyBase64))) + bodyBase64)) | |
12 | + | let proof = { | |
13 | + | let proofsSum = if (if ((size(tx.proofs[0]) > 64)) | |
14 | + | then true | |
15 | + | else (size(tx.proofs[1]) > 64)) | |
16 | + | then throw("Proof length must be equal to 64 bytes or less") | |
17 | + | else if (if (if (if (if (if ((size(tx.proofs[2]) != 0)) | |
18 | + | then true | |
19 | + | else (size(tx.proofs[3]) != 0)) | |
20 | + | then true | |
21 | + | else (size(tx.proofs[4]) != 0)) | |
22 | + | then true | |
23 | + | else (size(tx.proofs[5]) != 0)) | |
24 | + | then true | |
25 | + | else (size(tx.proofs[6]) != 0)) | |
26 | + | then true | |
27 | + | else (size(tx.proofs[7]) != 0)) | |
28 | + | then throw("There must be no more than 2 proofs") | |
29 | + | else (tx.proofs[0] + tx.proofs[1]) | |
30 | + | let proofSize = size(proofsSum) | |
31 | + | if ((proofSize != 65)) | |
32 | + | then throw((("Wrong proof size. Actual: " + toString(proofSize)) + " bytes. Expected: 65 bytes.")) | |
33 | + | else proofsSum | |
34 | + | } | |
35 | + | let pbk = ecrecover(keccak256(signedMessage), proof) | |
36 | + | (pbk == base58'5HzqFcjFN9tPFNWreRBHahXy6jc4xA88kg8d2Psh9m2JeC2Lkm2HXhwjqySvjyJnHE8XWfYP48tHynaFkUA1WogN') | |
37 | + | } | |
38 | + |
github/deemru/w8io/169f3d6 47.89 ms ◑