tx · qSvcZnX4ReGJt3yTuaYYdytdxnQptQ13Z4Kg8FZExeu
3My4Z1NgAXFiuW5go6ANnqABybkCHZiL3eb: -0.01400000 Waves
2019.08.04 19:26 [616378] smart account 3My4Z1NgAXFiuW5go6ANnqABybkCHZiL3eb > SELF 0.00000000 Waves
{
"type": 13,
"id": "qSvcZnX4ReGJt3yTuaYYdytdxnQptQ13Z4Kg8FZExeu",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1564935999075,
"version": 1,
"sender": "3My4Z1NgAXFiuW5go6ANnqABybkCHZiL3eb",
"senderPublicKey": "9Jgo1sPGfxQcLKZcJLNyKUtSdDhwcXjXSWiyJvi6LcRi",
"proofs": [
"QcSQRYj8uTC9s5GrAVX8dKJzMsxaFwQU2f9217ZDpv97tdoxS8xg6HwGofUTKSfdBxTbJEFLC9cAxLcBFDeWELN"
],
"script": "base64:AAIDAAAAAAAAAAAAAAABAAAAAA1hY2NvdW50UHViS2V5AQAAACxCNDRnS2kzU3hQaXFSS25oMVhjZjNZOW9oOWZyQkxxWnk1bTZqSGpIYnh2cQAAAAAAAAABAAAAAnR4AQAAAAZ2ZXJpZnkAAAAABAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAUU2V0U2NyaXB0VHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAWQFAAAAByRtYXRjaDAGAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNUcmFuc2ZlclRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwCQAB9AAAAAMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAgFAAAAAnR4AAAACWJvZHlCeXRlcwUAAAANYWNjb3VudFB1YktleQftT2a3",
"chainId": 84,
"height": 616378,
"spentComplexity": 0
}
View: original | compacted
Prev: GuMapjx4nkzBFE3c96Nmv9KPRB2eghJW58e7TzjnoT6Y
Next: 9oE8MsCYj9jvsPC2Sx7gQMKWRwEeiE9rF6RzM2GF6DUR
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
| 4 | + | let accountPubKey = base58'NXULybiQsDVrL5r6jKAegbfYnWYJyMhs4Sua7yFKqH6x2Sd5CZS2S7Jz9awa' |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Verifier(tx) |
---|
|
10 | 10 | | true |
---|
11 | 11 | | case d: DataTransaction => |
---|
12 | 12 | | true |
---|
13 | | - | case TransferTransaction => |
---|
14 | | - | true |
---|
| 13 | + | case d: TransferTransaction => |
---|
| 14 | + | sigVerify(tx.proofs[0], tx.bodyBytes, accountPubKey) |
---|
| 15 | + | case _ => |
---|
| 16 | + | false |
---|
15 | 17 | | } |
---|
16 | 18 | | |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | | - | |
---|
| 4 | + | let accountPubKey = base58'NXULybiQsDVrL5r6jKAegbfYnWYJyMhs4Sua7yFKqH6x2Sd5CZS2S7Jz9awa' |
---|
5 | 5 | | |
---|
6 | 6 | | |
---|
7 | 7 | | @Verifier(tx) |
---|
8 | 8 | | func verify () = match tx { |
---|
9 | 9 | | case d: SetScriptTransaction => |
---|
10 | 10 | | true |
---|
11 | 11 | | case d: DataTransaction => |
---|
12 | 12 | | true |
---|
13 | | - | case TransferTransaction => |
---|
14 | | - | true |
---|
| 13 | + | case d: TransferTransaction => |
---|
| 14 | + | sigVerify(tx.proofs[0], tx.bodyBytes, accountPubKey) |
---|
| 15 | + | case _ => |
---|
| 16 | + | false |
---|
15 | 17 | | } |
---|
16 | 18 | | |
---|