tx · Exf3DBLqkHzVnPLEAPWxU36T9WEsk56Ep5GAqFMumK48
3MwQziByAMnPprf9dScD8ComUKN6GPnCDpF: -0.01500000 Waves
2019.03.11 19:17 [531675] smart account 3MwQziByAMnPprf9dScD8ComUKN6GPnCDpF > SELF 0.00000000 Waves
{
"type": 13,
"id": "Exf3DBLqkHzVnPLEAPWxU36T9WEsk56Ep5GAqFMumK48",
"fee": 1500000,
"feeAssetId": null,
"timestamp": 1552321090021,
"version": 1,
"sender": "3MwQziByAMnPprf9dScD8ComUKN6GPnCDpF",
"senderPublicKey": "DzRDCA9ARLumoCjL2uqPbgBpQ2Y5ek7cXUQKpqAbyA6H",
"proofs": [
"3MPQf8EmU6Yymjbd3TS6Pv2VspuQN9Y1hTaccfwfTmozqQAtriijY6psedkCkG81nVLHgswG2aipqChc4jgDBreD"
],
"script": "base64:AQQAAAAFYWRtaW4BAAAAIIeIH+Qo8je36FKOHJNdYIy2j0QvwxXyh+Os/R2xNAguBAAAAAV1c2VyMQEAAAAgbgbbTbTg8yzk17XXECjWy8RnDiUQ6oZU9CJCn9As8WEEAAAABXVzZXIyAQAAACB21YzGuoW5aVWvsJthUVt+IdKqIhHUHD7Lm6cfNjv6XgQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAD0RhdGFUcmFuc2FjdGlvbgQAAAABdAUAAAAHJG1hdGNoMAMDAwkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAABWFkbWluBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAABXVzZXIxBgkAAfQAAAADCAUAAAACdHgAAAAJYm9keUJ5dGVzCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAABXVzZXIyBgcGzXDvew==",
"chainId": 84,
"height": 531675,
"spentComplexity": 0
}
View: original | compacted
Prev: 8Fzmos3sTc31RpA6x11UMReHAFCteachB9KkBnqLDpu7
Next: 7ibGrqA6TKGYFMpykKsQMKwcy7CuEFxCXjSa8AaQUWkv
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 | | } |
---|