tx · AQcZvP7BLAXgk4J6RdEQxUo2RwNFanyCWMbupAAnJcq9
3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE: -1.00000000 Waves
2019.07.04 10:26 [570369] smart account 3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE > SELF 0.00000000 Waves
{
"type": 13,
"id": "AQcZvP7BLAXgk4J6RdEQxUo2RwNFanyCWMbupAAnJcq9",
"fee": 100000000,
"feeAssetId": null,
"timestamp": 1562225236829,
"version": 1,
"sender": "3N9Sgptqbbc9whta6iLeeQENfHd833G9hQE",
"senderPublicKey": "5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES",
"proofs": [
"19GbV855zHWZgQYa7ZsKhfnjXN41aRjALwDvZhnDyC4ZkacmRGd4f6ch2jb9BdHsNoHGiL3PZAau76Hso5DJhGS"
],
"script": "base64:AgQAAAAOb3duZXJQdWJsaWNLZXkBAAAAIEWL9bYTPmjYp+f8WUAtz6DaJ6KrIAyb2bOoFYKH1nAPBAAAABJvcGVyYXRvcjFQdWJsaWNLZXkBAAAAIEg6FT7R2L+ORSTKesOdjfqT8Bv9os+a8+Gj5JnT8TwOBAAAAAckbWF0Y2gwBQAAAAJ0eAMJAAABAAAAAgUAAAAHJG1hdGNoMAIAAAAPRGF0YVRyYW5zYWN0aW9uBAAAAAFkBQAAAAckbWF0Y2gwBAAAAA1zaWduZWRCeU93bmVyCQAB9AAAAAMIBQAAAAJ0eAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAAUAAAAOb3duZXJQdWJsaWNLZXkEAAAAEHNpZ25lZEJ5T3BlcmF0b3IJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAABJvcGVyYXRvcjFQdWJsaWNLZXkJAQAAAAdleHRyYWN0AAAAAQMFAAAADXNpZ25lZEJ5T3duZXIGBQAAABBzaWduZWRCeU9wZXJhdG9yAwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAABNFeGNoYW5nZVRyYW5zYWN0aW9uBAAAAAFlBQAAAAckbWF0Y2gwAwkAAfQAAAADCAgFAAAAAWUAAAAIYnV5T3JkZXIAAAAJYm9keUJ5dGVzCQABkQAAAAIICAUAAAABZQAAAAhidXlPcmRlcgAAAAZwcm9vZnMAAAAAAAAAAAAFAAAADm93bmVyUHVibGljS2V5BgkAAfQAAAADCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAACWJvZHlCeXRlcwkAAZEAAAACCAgFAAAAAWUAAAAJc2VsbE9yZGVyAAAABnByb29mcwAAAAAAAAAAAAUAAAAOb3duZXJQdWJsaWNLZXkJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAA5vd25lclB1YmxpY0tleRvIei4=",
"chainId": 84,
"height": 570369,
"spentComplexity": 0
}
View: original | compacted
Prev: 2aVC3aqE3TnznGSf1mesEYiR4YxtxcWJj2awccgVLMb7
Next: 94iWD4V66vVJ2jjtDTSmgwqAHEzyoRCxSzNmzQyEzD7A
Diff:
Old | New | | Differences |
---|
10 | 10 | | then true |
---|
11 | 11 | | else signedByOperator) |
---|
12 | 12 | | case e: ExchangeTransaction => |
---|
13 | | - | sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], ownerPublicKey) |
---|
| 13 | + | if (sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], ownerPublicKey)) |
---|
| 14 | + | then true |
---|
| 15 | + | else sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], ownerPublicKey) |
---|
14 | 16 | | case _ => |
---|
15 | 17 | | sigVerify(tx.bodyBytes, tx.proofs[0], ownerPublicKey) |
---|
16 | 18 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 2 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let ownerPublicKey = base58'5gUuv1jjtePpX8rffb1RvQ6FvX2oJ2rNshfF9Dt2NUES' |
---|
4 | 4 | | let operator1PublicKey = base58'5rwiwcENa9JEdLVHJbBFGPrMybk74HwnGq32d2cMPLt5' |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case d: DataTransaction => |
---|
7 | 7 | | let signedByOwner = sigVerify(tx.bodyBytes, tx.proofs[0], ownerPublicKey) |
---|
8 | 8 | | let signedByOperator = sigVerify(tx.bodyBytes, tx.proofs[0], operator1PublicKey) |
---|
9 | 9 | | extract(if (signedByOwner) |
---|
10 | 10 | | then true |
---|
11 | 11 | | else signedByOperator) |
---|
12 | 12 | | case e: ExchangeTransaction => |
---|
13 | | - | sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], ownerPublicKey) |
---|
| 13 | + | if (sigVerify(e.buyOrder.bodyBytes, e.buyOrder.proofs[0], ownerPublicKey)) |
---|
| 14 | + | then true |
---|
| 15 | + | else sigVerify(e.sellOrder.bodyBytes, e.sellOrder.proofs[0], ownerPublicKey) |
---|
14 | 16 | | case _ => |
---|
15 | 17 | | sigVerify(tx.bodyBytes, tx.proofs[0], ownerPublicKey) |
---|
16 | 18 | | } |
---|