tx · 7podcyZnKCyb7TX18Wc9jZRCAMviCmnYxQgVQjHdDdNc
3Mu5az6au8YX5m5TRUsP6AikYd1sEYuHpuX: -0.01400000 Waves
2019.09.15 21:36 [677690] smart account 3Mu5az6au8YX5m5TRUsP6AikYd1sEYuHpuX > SELF 0.00000000 Waves
{
"type": 13,
"id": "7podcyZnKCyb7TX18Wc9jZRCAMviCmnYxQgVQjHdDdNc",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1568572563747,
"version": 1,
"sender": "3Mu5az6au8YX5m5TRUsP6AikYd1sEYuHpuX",
"senderPublicKey": "3HfyXf2ZAkJWH8JFGthdvdbGCpzxifMdMtzmC9LgpNdA",
"proofs": [
"5o4GDbS81wFAwwFriuj1BP8teugoJHPfAT7RgnZDNfffBLoTL1gxjj245x83PiZdhe333yKvjpCumqfJHzVnKcQB"
],
"script": "base64:AAIDAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAACdHgBAAAABnZlcmlmeQAAAAAEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAHAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABRTZXRTY3JpcHRUcmFuc2FjdGlvbgQAAAABcwUAAAAHJG1hdGNoMAkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAAIBQAAAAJ0eAAAAA9zZW5kZXJQdWJsaWNLZXkDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5B0sGH+I=",
"chainId": 84,
"height": 677690,
"spentComplexity": 0
}
View: original | compacted
Prev: ExCmZj9gxBL9TinmoBi439JHe8iVBKgdJUxj38Rg1sHn
Next: GHTmnpf16Ssv91eXqnJ8z1VLfz1NbVzrsVpmoJ575qji
Diff:
Old | New | | Differences |
---|
7 | 7 | | @Verifier(tx) |
---|
8 | 8 | | func verify () = match tx { |
---|
9 | 9 | | case d: DataTransaction => |
---|
10 | | - | true |
---|
11 | | - | case t: SetScriptTransaction => |
---|
| 10 | + | false |
---|
| 11 | + | case s: SetScriptTransaction => |
---|
| 12 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 13 | + | case t: TransferTransaction => |
---|
12 | 14 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
13 | 15 | | case _ => |
---|
14 | 16 | | false |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Verifier(tx) |
---|
8 | 8 | | func verify () = match tx { |
---|
9 | 9 | | case d: DataTransaction => |
---|
10 | | - | true |
---|
11 | | - | case t: SetScriptTransaction => |
---|
| 10 | + | false |
---|
| 11 | + | case s: SetScriptTransaction => |
---|
| 12 | + | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
| 13 | + | case t: TransferTransaction => |
---|
12 | 14 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
13 | 15 | | case _ => |
---|
14 | 16 | | false |
---|
15 | 17 | | } |
---|
16 | 18 | | |
---|