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