tx · 61bTKzsobLyGsCzTUFQfgF86AELKKbz4cjnzSCFaD3uF
3N7wisr78en3DHbwkc35dav7MexLnSvu73h: -0.01400000 Waves
2019.01.13 21:00 [448498] smart account 3N7wisr78en3DHbwkc35dav7MexLnSvu73h > SELF 0.00000000 Waves
{
"type": 13,
"id": "61bTKzsobLyGsCzTUFQfgF86AELKKbz4cjnzSCFaD3uF",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1547402436447,
"version": 1,
"sender": "3N7wisr78en3DHbwkc35dav7MexLnSvu73h",
"senderPublicKey": "9GDkDdW7RfGDSqLrPK88Xwy1ttecZARF5jpRBoJ6Zozo",
"proofs": [
"1111111111111111111111111111111111111111111111111111111111111111"
],
"script": "base64:AQQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAADXNlbmRlckFkZHJlc3MJAQAAAAdleHRyYWN0AAAAAQkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM043d2lzcjc4ZW4zREhid2tjMzVkYXY3TWV4TG5TdnU3M2gEAAAAEHJlY2lwaWVudEFkZHJlc3MJAQAAAAdleHRyYWN0AAAAAQkBAAAAEWFkZHJlc3NGcm9tU3RyaW5nAAAAAQIAAAAjM010QnFFdGtGOGNZa05Kdjg1UVVTNHd0ZU5qNDhaTUFudDkEAAAAD3NlbmRlckFkZHJlc3NUeAgFAAAAAXQAAAAGc2VuZGVyBAAAABJyZWNpcGllbnRBZGRyZXNzVHgJAAQkAAAAAQgFAAAAAXQAAAAJcmVjaXBpZW50BAAAAAxzZW5kZXJQdWJLZXkBAAAAIHrDnlcGzAPV8wt/AOYwejyLctnt37+OgmWrhvzZ804ABAAAAA9yZWNpcGllbnRQdWJLZXkBAAAAII59m1WbITiydrSsh5p7DTg06jWuC97IwDX0JxhY8UwtBAAAABFzZW5kZXJBZGRyZXNzU2lnbgkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAxzZW5kZXJQdWJLZXkEAAAAFHJlY2lwaWVudEFkZHJlc3NTaWduCQAB9AAAAAMIBQAAAAF0AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAABdAAAAAZwcm9vZnMAAAAAAAAAAAEFAAAAD3JlY2lwaWVudFB1YktleQMDAwUAAAARc2VuZGVyQWRkcmVzc1NpZ24FAAAAFHJlY2lwaWVudEFkZHJlc3NTaWduBwkAAAAAAAACCAUAAAANc2VuZGVyQWRkcmVzcwAAAAVieXRlcwgFAAAAD3NlbmRlckFkZHJlc3NUeAAAAAVieXRlcwcJAAAAAAAAAggFAAAAEHJlY2lwaWVudEFkZHJlc3MAAAAFYnl0ZXMIBQAAABJyZWNpcGllbnRBZGRyZXNzVHgAAAAFYnl0ZXMHBnmiCm0=",
"chainId": 84,
"height": 448498,
"spentComplexity": 0
}
View: original | compacted
Prev: 99PPZXgWbJ84iTSJGgvKqKNWeU57ZbbymtLumML6Ta2G
Next: 4xSQzvaEBzZxjPnq7tCotMHZAS1KWV8GtkqYY3x49KRm
Diff:
Old | New | | Differences |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case t: TransferTransaction => |
---|
5 | | - | let myAddress = extract(addressFromString("3N7wisr78en3DHbwkc35dav7MexLnSvu73h")) |
---|
| 5 | + | let senderAddress = extract(addressFromString("3N7wisr78en3DHbwkc35dav7MexLnSvu73h")) |
---|
6 | 6 | | let recipientAddress = extract(addressFromString("3MtBqEtkF8cYkNJv85QUS4wteNj48ZMAnt9")) |
---|
7 | | - | let myAddressTx = t.sender |
---|
| 7 | + | let senderAddressTx = t.sender |
---|
8 | 8 | | let recipientAddressTx = addressFromRecipient(t.recipient) |
---|
9 | | - | let myPubKey = base58'9GDkDdW7RfGDSqLrPK88Xwy1ttecZARF5jpRBoJ6Zozo' |
---|
| 9 | + | let senderPubKey = base58'9GDkDdW7RfGDSqLrPK88Xwy1ttecZARF5jpRBoJ6Zozo' |
---|
10 | 10 | | let recipientPubKey = base58'AbDyruBD8QqodWvMWRxAx8FhwRuf4cMFZu6SA1G4YwWU' |
---|
11 | | - | let myAddressSign = sigVerify(t.bodyBytes, t.proofs[0], myPubKey) |
---|
| 11 | + | let senderAddressSign = sigVerify(t.bodyBytes, t.proofs[0], senderPubKey) |
---|
12 | 12 | | let recipientAddressSign = sigVerify(t.bodyBytes, t.proofs[1], recipientPubKey) |
---|
13 | | - | if (if (if (myAddressSign) |
---|
| 13 | + | if (if (if (senderAddressSign) |
---|
14 | 14 | | then recipientAddressSign |
---|
15 | 15 | | else false) |
---|
16 | | - | then (myAddressTx.bytes == myAddress.bytes) |
---|
| 16 | + | then (senderAddress.bytes == senderAddressTx.bytes) |
---|
17 | 17 | | else false) |
---|
18 | 18 | | then (recipientAddress.bytes == recipientAddressTx.bytes) |
---|
19 | 19 | | else false |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case t: TransferTransaction => |
---|
5 | | - | let myAddress = extract(addressFromString("3N7wisr78en3DHbwkc35dav7MexLnSvu73h")) |
---|
| 5 | + | let senderAddress = extract(addressFromString("3N7wisr78en3DHbwkc35dav7MexLnSvu73h")) |
---|
6 | 6 | | let recipientAddress = extract(addressFromString("3MtBqEtkF8cYkNJv85QUS4wteNj48ZMAnt9")) |
---|
7 | | - | let myAddressTx = t.sender |
---|
| 7 | + | let senderAddressTx = t.sender |
---|
8 | 8 | | let recipientAddressTx = addressFromRecipient(t.recipient) |
---|
9 | | - | let myPubKey = base58'9GDkDdW7RfGDSqLrPK88Xwy1ttecZARF5jpRBoJ6Zozo' |
---|
| 9 | + | let senderPubKey = base58'9GDkDdW7RfGDSqLrPK88Xwy1ttecZARF5jpRBoJ6Zozo' |
---|
10 | 10 | | let recipientPubKey = base58'AbDyruBD8QqodWvMWRxAx8FhwRuf4cMFZu6SA1G4YwWU' |
---|
11 | | - | let myAddressSign = sigVerify(t.bodyBytes, t.proofs[0], myPubKey) |
---|
| 11 | + | let senderAddressSign = sigVerify(t.bodyBytes, t.proofs[0], senderPubKey) |
---|
12 | 12 | | let recipientAddressSign = sigVerify(t.bodyBytes, t.proofs[1], recipientPubKey) |
---|
13 | | - | if (if (if (myAddressSign) |
---|
| 13 | + | if (if (if (senderAddressSign) |
---|
14 | 14 | | then recipientAddressSign |
---|
15 | 15 | | else false) |
---|
16 | | - | then (myAddressTx.bytes == myAddress.bytes) |
---|
| 16 | + | then (senderAddress.bytes == senderAddressTx.bytes) |
---|
17 | 17 | | else false) |
---|
18 | 18 | | then (recipientAddress.bytes == recipientAddressTx.bytes) |
---|
19 | 19 | | else false |
---|
20 | 20 | | case _ => |
---|
21 | 21 | | true |
---|
22 | 22 | | } |
---|