tx · EhvZS5vo21taYsVSSRS9HztAsYNFp5KtPAKvTtu1BAEU
3N7d4LvfXfWuRfgH7FryT1aTKgTcxYEpiS1: -0.01400000 Waves
2019.02.25 22:00 [511306] smart account 3N7d4LvfXfWuRfgH7FryT1aTKgTcxYEpiS1 > SELF 0.00000000 Waves
{
"type": 13,
"id": "EhvZS5vo21taYsVSSRS9HztAsYNFp5KtPAKvTtu1BAEU",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1551121248734,
"version": 1,
"sender": "3N7d4LvfXfWuRfgH7FryT1aTKgTcxYEpiS1",
"senderPublicKey": "5qUaAgjqPX93UsDezatjFhkaMsdGsR28R7pPFwU2sQNc",
"proofs": [
"L6hWmT9SnHBM14pwjQ8NDeETrWeWXkdFyAjg35hMmVkeT2CK6TcVs4xwqcF3MfRgv1FUD6YyAt8xb9eFRE6chE8"
],
"script": "base64:AQQAAAALbWVQdWJsaWNLZXkBAAAAIEfZzVgRZus8RnSOQ2laO0Z2GcfqJoWbyTllnxPauaxhBAAAAAJtZQkBAAAAFGFkZHJlc3NGcm9tUHVibGljS2V5AAAAAQUAAAALbWVQdWJsaWNLZXkEAAAAByRtYXRjaDAFAAAAAnR4AwkAAAEAAAACBQAAAAckbWF0Y2gwAgAAAA9EYXRhVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAABGhhc2gCAAAALDQxOW40b0VVbWZtR1VWaFExV3RwUHczUm8zUXZ6SFBocnhWVGdFQmhwTmI3BAAAAAZudW1iZXIJAQAAAAdleHRyYWN0AAAAAQkABBAAAAACCAUAAAABdAAAAARkYXRhAgAAAAZudW1iZXIEAAAABHNhbHQJAQAAAAdleHRyYWN0AAAAAQkABBMAAAACCAUAAAABdAAAAARkYXRhAgAAAARzYWx0BAAAAAZiaW5hcnkJAAGbAAAAAQkAASwAAAACCQABpAAAAAEFAAAABm51bWJlcgUAAAAEc2FsdAMJAAAAAAAAAgkAAfcAAAABBQAAAAZiaW5hcnkJAAJZAAAAAQUAAAAEaGFzaAkAAfQAAAADCAUAAAABdAAAAAlib2R5Qnl0ZXMJAAGRAAAAAggFAAAAAXQAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAttZVB1YmxpY0tleQcJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAABQAAAAttZVB1YmxpY0tleXYBFpg=",
"chainId": 84,
"height": 511306,
"spentComplexity": 0
}
View: original | compacted
Prev: E3sUDprcKU2L3TGi61zyapBWyNra1ygw3zfXjLKzsCuA
Next: 3SwNeNxvPV7xLdCxbo5H6s8V1Nukb8vx8vUFgYVG2E3W
Diff:
Old | New | | Differences |
---|
12 | 12 | | then sigVerify(t.bodyBytes, t.proofs[0], mePublicKey) |
---|
13 | 13 | | else false |
---|
14 | 14 | | case _ => |
---|
15 | | - | true |
---|
| 15 | + | sigVerify(tx.bodyBytes, tx.proofs[0], mePublicKey) |
---|
16 | 16 | | } |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 1 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | let mePublicKey = base58'5qUaAgjqPX93UsDezatjFhkaMsdGsR28R7pPFwU2sQNc' |
---|
4 | 4 | | let me = addressFromPublicKey(mePublicKey) |
---|
5 | 5 | | match tx { |
---|
6 | 6 | | case t: DataTransaction => |
---|
7 | 7 | | let hash = "419n4oEUmfmGUVhQ1WtpPw3Ro3QvzHPhrxVTgEBhpNb7" |
---|
8 | 8 | | let number = extract(getInteger(t.data, "number")) |
---|
9 | 9 | | let salt = extract(getString(t.data, "salt")) |
---|
10 | 10 | | let binary = toBytes((toString(number) + salt)) |
---|
11 | 11 | | if ((sha256(binary) == fromBase58String(hash))) |
---|
12 | 12 | | then sigVerify(t.bodyBytes, t.proofs[0], mePublicKey) |
---|
13 | 13 | | else false |
---|
14 | 14 | | case _ => |
---|
15 | | - | true |
---|
| 15 | + | sigVerify(tx.bodyBytes, tx.proofs[0], mePublicKey) |
---|
16 | 16 | | } |
---|