tx · 9mYtfKG6Xfsy9YPWyaeAki1VnL7NgvjsGR8wTsh8EQt4
3MwugYAiToQJAofPPWTosLaNqb6dT3w6Wm1: -0.01400000 Waves
2019.12.05 17:11 [795532] smart account 3MwugYAiToQJAofPPWTosLaNqb6dT3w6Wm1 > SELF 0.00000000 Waves
{
"type": 13,
"id": "9mYtfKG6Xfsy9YPWyaeAki1VnL7NgvjsGR8wTsh8EQt4",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1575555147179,
"version": 1,
"sender": "3MwugYAiToQJAofPPWTosLaNqb6dT3w6Wm1",
"senderPublicKey": "7Cth3vi3QxBv1kwYSqPKPwp2tiddiotbKz9KHPE3SLJ9",
"proofs": [
"46gwSJVKygKUn4zKrHoR9L9BP2FJp1z32WTgkZuujy3KazWTh8M5yJNtB1B2nZr7xUvGLG75uEYys83ZomMkvoPP"
],
"script": "base64:AwQAAAAHJG1hdGNoMAUAAAACdHgDCQAAAQAAAAIFAAAAByRtYXRjaDACAAAAE1RyYW5zZmVyVHJhbnNhY3Rpb24EAAAAAXQFAAAAByRtYXRjaDAEAAAACHBhc3N3b3JkAgAAAAZ0b3J0dWUEAAAADHBhc3N3b3JkSGFzaAIAAABAYzc4OGNkMWFhMzk0YjAzZWY3NWE3NGVkNzI0YWE1NTY1NmY2N2I3MzQwMWI1ZTIyMmZhZTM2MWM5YzE2ZjcwZQQAAAAKcGFzc1NlY3JldAkABLAAAAABCQAB9wAAAAEJAAGRAAAAAggFAAAAAnR4AAAABnByb29mcwAAAAAAAAAAAQMJAAAAAAAAAgUAAAAIcGFzc3dvcmQFAAAACnBhc3NTZWNyZXQGCQAAAgAAAAEFAAAACnBhc3NTZWNyZXQJAAH0AAAAAwgFAAAAAnR4AAAACWJvZHlCeXRlcwkAAZEAAAACCAUAAAACdHgAAAAGcHJvb2ZzAAAAAAAAAAAACAUAAAACdHgAAAAPc2VuZGVyUHVibGljS2V5quj5pQ==",
"chainId": 84,
"height": 795532,
"spentComplexity": 0
}
View: original | compacted
Prev: D9KBUcRtZ2C8fXq2kX7SZ8WfMwJyHpRgEW3xSbQ6BCao
Next: EjdVCorYsVRQCTNsLjDEJboCzsoBHg1yYzJvvaiPxyqu
Diff:
Old | New | | Differences |
---|
4 | 4 | | case t: TransferTransaction => |
---|
5 | 5 | | let password = "tortue" |
---|
6 | 6 | | let passwordHash = "c788cd1aa394b03ef75a74ed724aa55656f67b73401b5e222fae361c9c16f70e" |
---|
7 | | - | let passSecret = toUtf8String(tx.proofs[1]) |
---|
| 7 | + | let passSecret = toUtf8String(sha256(tx.proofs[1])) |
---|
8 | 8 | | if ((password == passSecret)) |
---|
9 | 9 | | then true |
---|
10 | 10 | | else throw(passSecret) |
---|
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 = "tortue" |
---|
6 | 6 | | let passwordHash = "c788cd1aa394b03ef75a74ed724aa55656f67b73401b5e222fae361c9c16f70e" |
---|
7 | | - | let passSecret = toUtf8String(tx.proofs[1]) |
---|
| 7 | + | let passSecret = toUtf8String(sha256(tx.proofs[1])) |
---|
8 | 8 | | if ((password == passSecret)) |
---|
9 | 9 | | then true |
---|
10 | 10 | | else throw(passSecret) |
---|
11 | 11 | | case _ => |
---|
12 | 12 | | sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey) |
---|
13 | 13 | | } |
---|