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:
OldNewDifferences
88 let message = (((base58'S' + toBytes("Ethereum Signed Message:
99 ")) + base58'54') + toBytes(((((((hash + ",") + account) + ",") + amount) + ",") + seq)))
1010 if (!(sigVerify(message, fromBase16String(signature), fromBase16String(generator))))
11- then throw("invalid signature")
11+ then throw(("invalid signature" + toUtf8String(message)))
1212 else {
1313 let calculatedHash = keccak256(((fromBase16String(account) + fromBase16String(amount)) + fromBase16String(seq)))
1414 if ((calculatedHash != fromBase16String(hash)))
Full:
OldNewDifferences
11 {-# STDLIB_VERSION 3 #-}
22 {-# SCRIPT_TYPE ACCOUNT #-}
33 {-# CONTENT_TYPE DAPP #-}
44
55
66 @Callable(i)
77 func addDeposit (hash,account,amount,seq,generator,signature) = {
88 let message = (((base58'S' + toBytes("Ethereum Signed Message:
99 ")) + base58'54') + toBytes(((((((hash + ",") + account) + ",") + amount) + ",") + seq)))
1010 if (!(sigVerify(message, fromBase16String(signature), fromBase16String(generator))))
11- then throw("invalid signature")
11+ then throw(("invalid signature" + toUtf8String(message)))
1212 else {
1313 let calculatedHash = keccak256(((fromBase16String(account) + fromBase16String(amount)) + fromBase16String(seq)))
1414 if ((calculatedHash != fromBase16String(hash)))
1515 then throw("hash mismatch")
1616 else WriteSet(nil)
1717 }
1818 }
1919
2020

github/deemru/w8io/026f985 
19.30 ms