tx · Evfq7xLLmRX3KwnTyrzHtbZ1rxN21swkkn3qPZ9kJhYy 3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6: -0.04000000 Waves 2021.11.03 15:23 [1774797] smart account 3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6 > SELF 0.00000000 Waves
{ "type": 13, "id": "Evfq7xLLmRX3KwnTyrzHtbZ1rxN21swkkn3qPZ9kJhYy", "fee": 4000000, "feeAssetId": null, "timestamp": 1635942310474, "version": 2, "chainId": 84, "sender": "3Mza5Ao6wJgpw1JG3jxRY1xigD44zgfhdK6", "senderPublicKey": "Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL", "proofs": [ "61u5tBqCwRGSDK1c8q8xNp4wn9ezGiSg8YeNtcYBKF7HuvZrXB3HqM8VotUV8A7AhUpx4V6bf33PgxKWKTxpEL3Q" ], "script": "base64:AAIFAAAAAAAAAAQIAhIAAAAAAAAAAAEAAAABaQEAAAAEY2FsbAAAAAAEAAAABWFzc2V0CQAEQwAAAAcCAAAABUFzc2V0AgAAAAAAAAAAAAAAAAEAAAAAAAAAAAAGBQAAAAR1bml0AAAAAAAAAAAABAAAAAdhc3NldElkCQAEOAAAAAEFAAAABWFzc2V0CQAETAAAAAIJAQAAAAtCaW5hcnlFbnRyeQAAAAICAAAAA2JpbgEAAAAACQAETAAAAAIJAQAAAAxCb29sZWFuRW50cnkAAAACAgAAAARib29sBgkABEwAAAACCQEAAAAMSW50ZWdlckVudHJ5AAAAAgIAAAADaW50AAAAAAAAAAABCQAETAAAAAIJAQAAAAtTdHJpbmdFbnRyeQAAAAICAAAAA3N0cgIAAAAACQAETAAAAAIJAQAAAAtEZWxldGVFbnRyeQAAAAECAAAAA3N0cgkABEwAAAACBQAAAAVhc3NldAkABEwAAAACCQEAAAAHUmVpc3N1ZQAAAAMFAAAAB2Fzc2V0SWQAAAAAAAAAAAEHCQAETAAAAAIJAQAAAARCdXJuAAAAAgUAAAAHYXNzZXRJZAAAAAAAAAAAAQkABEwAAAACCQEAAAAOU2NyaXB0VHJhbnNmZXIAAAADCAUAAAABaQAAAAZjYWxsZXIAAAAAAAAAAAEFAAAAB2Fzc2V0SWQFAAAAA25pbAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAB3NtYXJ0UEsBAAAAIOxaVsoym81WX7f/0c3rXD+lUf0YBPZj/BFAChhL20JdBAAAAAhzZWNvbmRQSwEAAAAgsYI0XJ/6UoSZVLCk1HJwaDhWvEG0ktQGwKp2ht0aQEIEAAAABXNtYXJ0CQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAHc21hcnRQSwQAAAAGc2Vjb25kCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAIc2Vjb25kUEsEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAYDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDADBQAAAAVzbWFydAYFAAAABnNlY29uZAeLBY4e", "height": 1774797, "applicationStatus": "succeeded", "spentComplexity": 0 } View: original | compacted Prev: 6fpSQjyD7BKwWDALo8daPytTy6hAweTrZLUSaxJ6qzDu Next: BwEnHvJonaAjUEmc82HNCWAjNznS2w7ZWThNzUcz9SH3 Diff:
Old | New | Differences | |
---|---|---|---|
13 | 13 | ||
14 | 14 | @Verifier(tx) | |
15 | 15 | func verify () = { | |
16 | - | let publicKey = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL' | |
16 | + | let smartPK = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL' | |
17 | + | let secondPK = base58'CwvKLDcXt3Wd2MEyEemVKawiD7gaCV68wh2GcnJRHFqB' | |
18 | + | let smart = sigVerify(tx.bodyBytes, tx.proofs[0], smartPK) | |
19 | + | let second = sigVerify(tx.bodyBytes, tx.proofs[0], secondPK) | |
17 | 20 | match tx { | |
18 | 21 | case t: SetScriptTransaction => | |
19 | 22 | true | |
20 | 23 | case t: DataTransaction => | |
21 | 24 | true | |
22 | 25 | case t: TransferTransaction => | |
23 | - | sigVerify(tx.bodyBytes, tx.proofs[0], publicKey) | |
26 | + | if (smart) | |
27 | + | then true | |
28 | + | else second | |
24 | 29 | case _ => | |
25 | 30 | false | |
26 | 31 | } |
Old | New | Differences | |
---|---|---|---|
1 | 1 | {-# STDLIB_VERSION 5 #-} | |
2 | 2 | {-# SCRIPT_TYPE ACCOUNT #-} | |
3 | 3 | {-# CONTENT_TYPE DAPP #-} | |
4 | 4 | ||
5 | 5 | ||
6 | 6 | @Callable(i) | |
7 | 7 | func call () = { | |
8 | 8 | let asset = Issue("Asset", "", 1, 0, true, unit, 0) | |
9 | 9 | let assetId = calculateAssetId(asset) | |
10 | 10 | [BinaryEntry("bin", base58''), BooleanEntry("bool", true), IntegerEntry("int", 1), StringEntry("str", ""), DeleteEntry("str"), asset, Reissue(assetId, 1, false), Burn(assetId, 1), ScriptTransfer(i.caller, 1, assetId)] | |
11 | 11 | } | |
12 | 12 | ||
13 | 13 | ||
14 | 14 | @Verifier(tx) | |
15 | 15 | func verify () = { | |
16 | - | let publicKey = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL' | |
16 | + | let smartPK = base58'Gud7Z17wiZEMZiHRbn48k2D9H13jmLEDZZ8b7NCfjRJL' | |
17 | + | let secondPK = base58'CwvKLDcXt3Wd2MEyEemVKawiD7gaCV68wh2GcnJRHFqB' | |
18 | + | let smart = sigVerify(tx.bodyBytes, tx.proofs[0], smartPK) | |
19 | + | let second = sigVerify(tx.bodyBytes, tx.proofs[0], secondPK) | |
17 | 20 | match tx { | |
18 | 21 | case t: SetScriptTransaction => | |
19 | 22 | true | |
20 | 23 | case t: DataTransaction => | |
21 | 24 | true | |
22 | 25 | case t: TransferTransaction => | |
23 | - | sigVerify(tx.bodyBytes, tx.proofs[0], publicKey) | |
26 | + | if (smart) | |
27 | + | then true | |
28 | + | else second | |
24 | 29 | case _ => | |
25 | 30 | false | |
26 | 31 | } | |
27 | 32 | } | |
28 | 33 |
github/deemru/w8io/169f3d6 42.73 ms ◑