tx · F66MURRLpJJaq7LojjqSucXocKEmXwsVRDNuv3kULdYE
3MxBxDycPAr36iyVRsp1V6goA2dB9LLTMjP: -0.01000000 Waves
2020.01.20 14:31 [862488] smart account 3MxBxDycPAr36iyVRsp1V6goA2dB9LLTMjP > SELF 0.00000000 Waves
{
"type": 13,
"id": "F66MURRLpJJaq7LojjqSucXocKEmXwsVRDNuv3kULdYE",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1579519934289,
"version": 1,
"sender": "3MxBxDycPAr36iyVRsp1V6goA2dB9LLTMjP",
"senderPublicKey": "BAiWi4z8YduZNLGNqF3i19n199T5V91D5h3q6UPmme7p",
"proofs": [
"2Vfo9ydApB4FPfnmrHYBoxBeWxHCW8kUegmZXcZqjhVYDVumhzE4WcNPKnA8bK7kJFu47rskxBmp1QMD1NC7VChA"
],
"script": "base64:AAIDAAAAAAAAAAIIAQAAAAEAAAAAEHB1YktleUFkbWluc0xpc3QJAARMAAAAAgIAAAAsQmNEMWhhckRMb0RMZGdIRW5ZaEdYNmJ5UFU3QUFFZG9oUVY0YndidnFwY2gJAARMAAAAAgIAAAAsN2YydlNCaDJ0amloTWllM0RFaG44OEUyVXdGNmlyd21jM3oyM1RKSnYyMzYJAARMAAAAAgIAAAAsRzdtU0M5YkZQOEdLSDUzMkdoNWVyWEFMczVuUmh6QjRoZVdSeDFSUnpyTEYFAAAAA25pbAAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAVjb3VudAkAAGQAAAACCQAAZAAAAAIDCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAEAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAIAAAAAAAAAAAEAAAAAAAAAAAADCQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAACBgkAAAIAAAABCQABLAAAAAICAAAAKE5vdCBlbm91Z2ggdmFsaWQgc2lnbmF0dXJlcyBpbiBwcm9vZnMgLSAJAAGkAAAAAQUAAAAFY291bnSkKR8D",
"chainId": 84,
"height": 862488,
"spentComplexity": 0
}
View: original | compacted
Prev: none
Next: none
Full:
Old | New | | Differences |
---|
1 | | - | # no script |
---|
| 1 | + | {-# STDLIB_VERSION 3 #-} |
---|
| 2 | + | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
| 3 | + | {-# CONTENT_TYPE DAPP #-} |
---|
| 4 | + | let pubKeyAdminsList = ["BcD1harDLoDLdgHEnYhGX6byPU7AAEdohQV4bwbvqpch", "7f2vSBh2tjihMie3DEhn88E2UwF6irwmc3z23TJJv236", "G7mSC9bFP8GKH532Gh5erXALs5nRhzB4heWRx1RRzrLF"] |
---|
| 5 | + | |
---|
| 6 | + | |
---|
| 7 | + | @Verifier(tx) |
---|
| 8 | + | func verify () = { |
---|
| 9 | + | let count = (((if (sigVerify(tx.bodyBytes, tx.proofs[0], fromBase58String(pubKeyAdminsList[0]))) |
---|
| 10 | + | then 1 |
---|
| 11 | + | else 0) + (if (sigVerify(tx.bodyBytes, tx.proofs[1], fromBase58String(pubKeyAdminsList[1]))) |
---|
| 12 | + | then 1 |
---|
| 13 | + | else 0)) + (if (sigVerify(tx.bodyBytes, tx.proofs[2], fromBase58String(pubKeyAdminsList[2]))) |
---|
| 14 | + | then 1 |
---|
| 15 | + | else 0)) |
---|
| 16 | + | if ((count >= 2)) |
---|
| 17 | + | then true |
---|
| 18 | + | else throw(("Not enough valid signatures in proofs - " + toString(count))) |
---|
| 19 | + | } |
---|
| 20 | + | |
---|