tx · Cza4Wkp7SKG4mXVfDEP92oXGPL22NfgenHgUAUE45enW
3MyXEmrjz8G5z2Q8xiyBnucF9LUyggiChiP: -0.01400000 Waves
2019.12.14 21:07 [808878] smart account 3MyXEmrjz8G5z2Q8xiyBnucF9LUyggiChiP > SELF 0.00000000 Waves
{
"type": 13,
"id": "Cza4Wkp7SKG4mXVfDEP92oXGPL22NfgenHgUAUE45enW",
"fee": 1400000,
"feeAssetId": null,
"timestamp": 1576346928524,
"version": 1,
"sender": "3MyXEmrjz8G5z2Q8xiyBnucF9LUyggiChiP",
"senderPublicKey": "GRSgAjHJFmqVyE1sdnUmweBHV962Q1MyURh4frCUS1My",
"proofs": [
"4c945nUSsgaZENQFyyB7PoBpV3a8e1rfokb2TDeKbFAPY6XLuuafTyFKgxb8DY3JrB2f1sQK3nRscApADsL8PFuF"
],
"script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgICAgAAAAAAAAAAQAAAAFpAQAAAAphZGREZXBvc2l0AAAABgAAAARoYXNoAAAAB2FjY291bnQAAAAGYW1vdW50AAAAA3NlcQAAAAlnZW5lcmF0b3IAAAAJc2lnbmF0dXJlBAAAAAdtZXNzYWdlCQAAywAAAAIJAADLAAAAAgkAAMsAAAACAQAAAAEZCQABmwAAAAECAAAAGUV0aGVyZXVtIFNpZ25lZCBNZXNzYWdlOgoBAAAAAesJAAGbAAAAAQkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgUAAAAEaGFzaAIAAAABLAUAAAAHYWNjb3VudAIAAAABLAUAAAAGYW1vdW50AgAAAAEsBQAAAANzZXEDCQEAAAABIQAAAAEJAAH0AAAAAwUAAAAHbWVzc2FnZQkAAl0AAAABBQAAAAlzaWduYXR1cmUJAAJdAAAAAQUAAAAJZ2VuZXJhdG9yCQAAAgAAAAEJAAEsAAAAAgIAAAARaW52YWxpZCBzaWduYXR1cmUJAASwAAAAAQUAAAAHbWVzc2FnZQQAAAAOY2FsY3VsYXRlZEhhc2gJAAH1AAAAAQkAAMsAAAACCQAAywAAAAIJAAJdAAAAAQUAAAAHYWNjb3VudAkAAl0AAAABBQAAAAZhbW91bnQJAAJdAAAAAQUAAAADc2VxAwkBAAAAAiE9AAAAAgUAAAAOY2FsY3VsYXRlZEhhc2gJAAJdAAAAAQUAAAAEaGFzaAkAAAIAAAABAgAAAA1oYXNoIG1pc21hdGNoCQEAAAAIV3JpdGVTZXQAAAABBQAAAANuaWwAAAAAiylY/Q==",
"chainId": 84,
"height": 808878,
"spentComplexity": 0
}
View: original | compacted
Prev: 8NvP1xJP2sYsSTGho3coFB3PRGY8GUc539jzyjDaBjAu
Next: GvjyCG9GAAvgDi3WnkisEeDSkXH1pK5UpiJ7TbeYTc5S
Diff:
Old | New | | Differences |
---|
8 | 8 | | let message = (((base58'S' + toBytes("Ethereum Signed Message: |
---|
9 | 9 | | ")) + base58'54') + toBytes(((((((hash + ",") + account) + ",") + amount) + ",") + seq))) |
---|
10 | 10 | | if (!(sigVerify(message, fromBase16String(signature), fromBase16String(generator)))) |
---|
11 | | - | then throw("invalid signature") |
---|
| 11 | + | then throw(("invalid signature" + toUtf8String(message))) |
---|
12 | 12 | | else { |
---|
13 | 13 | | let calculatedHash = keccak256(((fromBase16String(account) + fromBase16String(amount)) + fromBase16String(seq))) |
---|
14 | 14 | | if ((calculatedHash != fromBase16String(hash))) |
---|
Full:
Old | New | | Differences |
---|
1 | 1 | | {-# STDLIB_VERSION 3 #-} |
---|
2 | 2 | | {-# SCRIPT_TYPE ACCOUNT #-} |
---|
3 | 3 | | {-# CONTENT_TYPE DAPP #-} |
---|
4 | 4 | | |
---|
5 | 5 | | |
---|
6 | 6 | | @Callable(i) |
---|
7 | 7 | | func addDeposit (hash,account,amount,seq,generator,signature) = { |
---|
8 | 8 | | let message = (((base58'S' + toBytes("Ethereum Signed Message: |
---|
9 | 9 | | ")) + base58'54') + toBytes(((((((hash + ",") + account) + ",") + amount) + ",") + seq))) |
---|
10 | 10 | | if (!(sigVerify(message, fromBase16String(signature), fromBase16String(generator)))) |
---|
11 | | - | then throw("invalid signature") |
---|
| 11 | + | then throw(("invalid signature" + toUtf8String(message))) |
---|
12 | 12 | | else { |
---|
13 | 13 | | let calculatedHash = keccak256(((fromBase16String(account) + fromBase16String(amount)) + fromBase16String(seq))) |
---|
14 | 14 | | if ((calculatedHash != fromBase16String(hash))) |
---|
15 | 15 | | then throw("hash mismatch") |
---|
16 | 16 | | else WriteSet(nil) |
---|
17 | 17 | | } |
---|
18 | 18 | | } |
---|
19 | 19 | | |
---|
20 | 20 | | |
---|