tx · CUGHmrHreGaU4T5ZwBELfV8iqmsmzui1KbUo9kfmk3K6
3MzwreqrzF6Qd8xxbwArvThBjWrVxS1kR2S: -0.01500000 Waves
2019.03.11 19:49 [531704] smart account 3MzwreqrzF6Qd8xxbwArvThBjWrVxS1kR2S > SELF 0.00000000 Waves
{
"type": 13,
"id": "CUGHmrHreGaU4T5ZwBELfV8iqmsmzui1KbUo9kfmk3K6",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1552322960883,
"version": 1,
"sender": "3MzwreqrzF6Qd8xxbwArvThBjWrVxS1kR2S",
"senderPublicKey": "4ntR8J8HBg1mw7Uj9Vq8dsJLNFJANDuwLeXdSXAtSoh4",
"proofs": [
"2c7LJJANYCYDLbgMEK8M9vrEzad4yBkaJrKDd4Tb27JgyHmEW9SwhMJkGacPNDXHjoGA43ioc58VTVe3Lw53jG8i"
],
"script": "base64:AQQAAAAFYWRtaW4BAAAAIIeIH+Qo8je36FKOHJNdYIy2j0QvwxXyh+Os/R2xNAguBAAAAAV1c2VyMQEAAAAgbgbbTbTg8yzk17XXECjWy8RnDiUQ6oZU9CJCn9As8WEEAAAABXVzZXIyAQAAACB21YzGuoW5aVWvsJthUVt+IdKqIhHUHD7Lm6cfNjv6XgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMDAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAABWFkbWluBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAABXVzZXIxBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAABXVzZXIyBgcGzXDvew==",
"chainId": 84,
"height": 531704,
"spentComplexity": 0
}
View: original | compacted
Prev: DjHNdAMAHEQffsNRs68inDDa5XGQZUQ8UfGRvG7vfo59
Next: 46g2bdZxJnz3FWYevvsaUruU69PGo2j9QaMFkkQ6NgLN
Diff:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let admin = base58'A84RrM74unycVZ1qSeU2DwoXAHt1g823LFcxELDtzDRw' |
---|
| 4 | + | let user1 = base58'8QVupygag3ABQbE2jj4rzZbNFHLob6f3H2XPTzxdhvu6' |
---|
| 5 | + | let user2 = base58'8zsyS2UtbcnH1KqwoGEHf1uJGTeDms3syVkXuB5UQTZo' |
---|
4 | 6 | | match tx { |
---|
5 | 7 | | case t: DataTransaction => |
---|
6 | | - | if (sigVerify(tx.bodyBytes, tx.proofs[1], admin)) |
---|
| 8 | + | if (if (if (sigVerify(tx.bodyBytes, tx.proofs[1], admin)) |
---|
| 9 | + | then true |
---|
| 10 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], user1)) |
---|
| 11 | + | then true |
---|
| 12 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], user2)) |
---|
7 | 13 | | then true |
---|
8 | 14 | | else false |
---|
9 | 15 | | case _ => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let admin = base58'A84RrM74unycVZ1qSeU2DwoXAHt1g823LFcxELDtzDRw' |
---|
| 4 | + | let user1 = base58'8QVupygag3ABQbE2jj4rzZbNFHLob6f3H2XPTzxdhvu6' |
---|
| 5 | + | let user2 = base58'8zsyS2UtbcnH1KqwoGEHf1uJGTeDms3syVkXuB5UQTZo' |
---|
4 | 6 | | match tx { |
---|
5 | 7 | | case t: DataTransaction => |
---|
6 | | - | if (sigVerify(tx.bodyBytes, tx.proofs[1], admin)) |
---|
| 8 | + | if (if (if (sigVerify(tx.bodyBytes, tx.proofs[1], admin)) |
---|
| 9 | + | then true |
---|
| 10 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], user1)) |
---|
| 11 | + | then true |
---|
| 12 | + | else sigVerify(tx.bodyBytes, tx.proofs[1], user2)) |
---|
7 | 13 | | then true |
---|
8 | 14 | | else false |
---|
9 | 15 | | case _ => |
---|
10 | 16 | | true |
---|
11 | 17 | | } |
---|