tx · 6MQgBrto6Z9g2W9Nbx1FfaSjHnEbaD15gYfr3ZJP47wN
3Mp1fcKD6gRuaRYtaLifUYnMkDsKZz6zCeW: -0.01000000 Waves
2020.01.20 14:32 [862489] smart account 3Mp1fcKD6gRuaRYtaLifUYnMkDsKZz6zCeW > SELF 0.00000000 Waves
{
"type": 13,
"id": "6MQgBrto6Z9g2W9Nbx1FfaSjHnEbaD15gYfr3ZJP47wN",
"fee": 1000000,
"feeAssetId": null,
"timestamp": 1579519953922,
"version": 1,
"sender": "3Mp1fcKD6gRuaRYtaLifUYnMkDsKZz6zCeW",
"senderPublicKey": "14gLEYjUvUhy6omikYafpH3bbBUePTS9zvPes1Lu7RDT",
"proofs": [
"2avnQABpWShNkEj1sNZEkgchPDWzNEgXWo9Y3znxp4pLLhqfemcmJeDRoYnmoGjiw36CAgWaabiqxakUD28LyMp2"
],
"script": "base64:AAIDAAAAAAAAAAIIAQAAAAEAAAAAEHB1YktleUFkbWluc0xpc3QJAARMAAAAAgIAAAAsQmNEMWhhckRMb0RMZGdIRW5ZaEdYNmJ5UFU3QUFFZG9oUVY0YndidnFwY2gJAARMAAAAAgIAAAAsN2YydlNCaDJ0amloTWllM0RFaG44OEUyVXdGNmlyd21jM3oyM1RKSnYyMzYJAARMAAAAAgIAAAAsRzdtU0M5YkZQOEdLSDUzMkdoNWVyWEFMczVuUmh6QjRoZVdSeDFSUnpyTEYFAAAAA25pbAAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAVjb3VudAkAAGQAAAACAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAJAAJZAAAAAQkAAZEAAAACBQAAABBwdWJLZXlBZG1pbnNMaXN0AAAAAAAAAAAAAAAAAAAAAAABCQAAZAAAAAIAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAEAAAAAAAAAAAEAAAAAAAAAAAADCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAgkAAlkAAAABCQABkQAAAAIFAAAAEHB1YktleUFkbWluc0xpc3QAAAAAAAAAAAIAAAAAAAAAAAEAAAAAAAAAAAADCQAAZwAAAAIFAAAABWNvdW50AAAAAAAAAAACBgkAAAIAAAABCQABLAAAAAICAAAAKE5vdCBlbm91Z2ggdmFsaWQgc2lnbmF0dXJlcyBpbiBwcm9vZnMgLSAJAAGkAAAAAQUAAAAFY291bnTdta0+",
"chainId": 84,
"height": 862489,
"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 a = ["BcD1harDLoDLdgHEnYhGX6byPU7AAEdohQV4bwbvqpch", "7f2vSBh2tjihMie3DEhn88E2UwF6irwmc3z23TJJv236", "G7mSC9bFP8GKH532Gh5erXALs5nRhzB4heWRx1RRzrLF"] |
---|
| 5 | + | |
---|
| 6 | + | |
---|
| 7 | + | @Verifier(b) |
---|
| 8 | + | func c () = { |
---|
| 9 | + | let d = ((if (sigVerify(b.bodyBytes, b.proofs[0], fromBase58String(a[0]))) |
---|
| 10 | + | then 1 |
---|
| 11 | + | else (0 + (if (sigVerify(b.bodyBytes, b.proofs[1], fromBase58String(a[1]))) |
---|
| 12 | + | then 1 |
---|
| 13 | + | else 0))) + (if (sigVerify(b.bodyBytes, b.proofs[2], fromBase58String(a[2]))) |
---|
| 14 | + | then 1 |
---|
| 15 | + | else 0)) |
---|
| 16 | + | if ((d >= 2)) |
---|
| 17 | + | then true |
---|
| 18 | + | else throw(("Not enough valid signatures in proofs - " + toString(d))) |
---|
| 19 | + | } |
---|
| 20 | + | |
---|