tx · 6eifAwzovmvm2Wnnj128ThbHaUCiNBUXTWVjCtm4Ko6j 3P4vXL8gU27PhQv8sMT9jmoQY3oFqJNRWT9: -0.01000000 Waves 2023.11.28 19:08 [3929331] smart account 3P4vXL8gU27PhQv8sMT9jmoQY3oFqJNRWT9 > SELF 0.00000000 Waves
{ "type": 13, "id": "6eifAwzovmvm2Wnnj128ThbHaUCiNBUXTWVjCtm4Ko6j", "fee": 1000000, "feeAssetId": null, "timestamp": 1701187735431, "version": 2, "chainId": 87, "sender": "3P4vXL8gU27PhQv8sMT9jmoQY3oFqJNRWT9", "senderPublicKey": "H3uYiohWLstHgnUqG1XQaByKhHeNewGoeH16WNFFGFR4", "proofs": [ "3xVWbHXBo9vx8gvi82gRwB2DjZeRzScWHp4Kb1oWDq1MbZoVstPxVgoUnbRoAJUYtBAuoZHWBy9kWyAn4bBExXva", "33HJj33eeGKyVZQ4tfH3E1nBxyZqqzsH8zh55Nkuu5gepsyxHYTVd3pwuPB31MW4mpFuW8FeyFV562FsQr2X1JNd" ], "script": "base64:AAIFAAAAAAAAAAIIAgAAAAAAAAAAAAAAAQAAAAJ0eAEAAAAGdmVyaWZ5AAAAAAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXl27vNz", "height": 3929331, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 5GgG8db2Qfe2KuyQ2116Fj4KUbrKzzwEpbkShnRoSfTo Next: none Diff:
Old | New | Differences | |
---|---|---|---|
5 | 5 | ||
6 | 6 | ||
7 | 7 | @Verifier(tx) | |
8 | - | func verify () = { | |
9 | - | let firstUser = base58'FzsTVRXqD46KW5yj6qGNVrsouvWjpCQvD1446A96iGt4' | |
10 | - | let secondUser = base58'E23yUg8eun5nXB1nZRDf7RTyRADKxQhGNXdpTYonEvtU' | |
11 | - | let thirdUser = base58'H3uYiohWLstHgnUqG1XQaByKhHeNewGoeH16WNFFGFR4' | |
12 | - | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
13 | - | then 1 | |
14 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
15 | - | then 1 | |
16 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
17 | - | then 1 | |
18 | - | else 0 | |
19 | - | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
20 | - | then 1 | |
21 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
22 | - | then 1 | |
23 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
24 | - | then 1 | |
25 | - | else 0 | |
26 | - | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
27 | - | then 1 | |
28 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
29 | - | then 1 | |
30 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
31 | - | then 1 | |
32 | - | else 0 | |
33 | - | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
34 | - | match tx { | |
35 | - | case _ => | |
36 | - | (signaturesCount >= 2) | |
37 | - | } | |
38 | - | } | |
8 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
39 | 9 |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | ||
7 | 7 | @Verifier(tx) | |
8 | - | func verify () = { | |
9 | - | let firstUser = base58'FzsTVRXqD46KW5yj6qGNVrsouvWjpCQvD1446A96iGt4' | |
10 | - | let secondUser = base58'E23yUg8eun5nXB1nZRDf7RTyRADKxQhGNXdpTYonEvtU' | |
11 | - | let thirdUser = base58'H3uYiohWLstHgnUqG1XQaByKhHeNewGoeH16WNFFGFR4' | |
12 | - | let firstUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], firstUser)) | |
13 | - | then 1 | |
14 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[1], firstUser)) | |
15 | - | then 1 | |
16 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[2], firstUser)) | |
17 | - | then 1 | |
18 | - | else 0 | |
19 | - | let secondUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], secondUser)) | |
20 | - | then 1 | |
21 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[1], secondUser)) | |
22 | - | then 1 | |
23 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[2], secondUser)) | |
24 | - | then 1 | |
25 | - | else 0 | |
26 | - | let thirdUserSigned = if (sigVerify(tx.bodyBytes, tx.proofs[0], thirdUser)) | |
27 | - | then 1 | |
28 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[1], thirdUser)) | |
29 | - | then 1 | |
30 | - | else if (sigVerify(tx.bodyBytes, tx.proofs[2], thirdUser)) | |
31 | - | then 1 | |
32 | - | else 0 | |
33 | - | let signaturesCount = ((firstUserSigned + secondUserSigned) + thirdUserSigned) | |
34 | - | match tx { | |
35 | - | case _ => | |
36 | - | (signaturesCount >= 2) | |
37 | - | } | |
38 | - | } | |
8 | + | func verify () = sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) | |
39 | 9 |
github/deemru/w8io/6500d08 19.83 ms ◑