tx · 9KQD1dwXEPr8u5tMYP9eggJ6TmESaLmLF99JPQYMtQDx
3MwugYAiToQJAofPPWTosLaNqb6dT3w6Wm1: -0.01400000 Waves
2019.12.05 13:40 [795323] smart account 3MwugYAiToQJAofPPWTosLaNqb6dT3w6Wm1 > SELF 0.00000000 Waves
{
"type": 13,
"id": "9KQD1dwXEPr8u5tMYP9eggJ6TmESaLmLF99JPQYMtQDx",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1575542443014,
"version": 1,
"sender": "3MwugYAiToQJAofPPWTosLaNqb6dT3w6Wm1",
"senderPublicKey": "7Cth3vi3QxBv1kwYSqPKPwp2tiddiotbKz9KHPE3SLJ9",
"proofs": [
"4r2NPkdYx14UMPkaEvKAT46QiotsZvFR85JhHKZJG48UT15tMdx4asai1gwTDHZe4tVG7pzmcXLRX9go3FDS3Gqo"
],
"script": "base64:AwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAACHBhc3N3b3JkAgAAAEBjNzg4Y2QxYWEzOTRiMDNlZjc1YTc0ZWQ3MjRhYTU1NjU2ZjY3YjczNDAxYjVlMjIyZmFlMzYxYzljMTZmNzBlBAAAAApwYXNzU2VjcmV0CQAB9wAAAAEJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQMJAAAAAAAAAgUAAAAIcGFzc3dvcmQJAASwAAAAAQUAAAAKcGFzc1NlY3JldAYJAAACAAAAAQkABLAAAAABCQABkQAAAAIIBQAAAAJ0eAAAAAZwcm9vZnMAAAAAAAAAAAEJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5zYVdDA==",
"chainId": 84,
"height": 795323,
"spentComplexity": 0
}
View: original | compacted
Prev: 7FBjcvbgRypBvgRJeJ3eSkFP4CBQjwKqueb47iVcvHdk
Next: GvZrv4WzebKeAm7GLSLyvijYaQWiD4UuursZuCsbaDtu
Diff:
Old | New | | Differences |
---|
4 | 4 | | case t: TransferTransaction => |
---|
5 | 5 | | let password = "c788cd1aa394b03ef75a74ed724aa55656f67b73401b5e222fae361c9c16f70e" |
---|
6 | 6 | | let passSecret = sha256(tx.proofs[1]) |
---|
7 | | - | if ((toBytes(password) == passSecret)) |
---|
| 7 | + | if ((password == toUtf8String(passSecret))) |
---|
8 | 8 | | then true |
---|
9 | 9 | | else throw(toUtf8String(tx.proofs[1])) |
---|
10 | 10 | | case _ => |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# CONTENT_TYPE EXPRESSION #-} |
---|
3 | 3 | | match tx { |
---|
4 | 4 | | case t: TransferTransaction => |
---|
5 | 5 | | let password = "c788cd1aa394b03ef75a74ed724aa55656f67b73401b5e222fae361c9c16f70e" |
---|
6 | 6 | | let passSecret = sha256(tx.proofs[1]) |
---|
7 | | - | if ((toBytes(password) == passSecret)) |
---|
| 7 | + | if ((password == toUtf8String(passSecret))) |
---|
8 | 8 | | then true |
---|
9 | 9 | | else throw(toUtf8String(tx.proofs[1])) |
---|
10 | 10 | | case _ => |
---|
11 | 11 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
12 | 12 | | } |
---|