tx · CBXk7chM64s11JacJwcbczjei4mrK9WuWVfRmseRtbJv

3MyXEmrjz8G5z2Q8xiyBnucF9LUyggiChiP:  -0.01400000 Waves

2019.12.14 21:23 [808899] smart account 3MyXEmrjz8G5z2Q8xiyBnucF9LUyggiChiP > SELF 0.00000000 Waves

{ "type": 13, "id": "CBXk7chM64s11JacJwcbczjei4mrK9WuWVfRmseRtbJv", "fee": 1400000, "feeAssetId": null, "timestamp": 1576347787378, "version": 1, "sender": "3MyXEmrjz8G5z2Q8xiyBnucF9LUyggiChiP", "senderPublicKey": "GRSgAjHJFmqVyE1sdnUmweBHV962Q1MyURh4frCUS1My", "proofs": [ "4gcntn21jF4jC597wfdPseg7URtceUWzYis8LBYNZ92Vu74ubcXSFrhzc7pQKuPmrQ9Wkv7VjkrfuRPUaqmiiUB3" ], "script": "base64:AAIDAAAAAAAAAAwIARIICgYICAgICAgAAAAAAAAAAQAAAAFpAQAAAAphZGREZXBvc2l0AAAABgAAAARoYXNoAAAAB2FjY291bnQAAAAGYW1vdW50AAAAA3NlcQAAAAlnZW5lcmF0b3IAAAAJc2lnbmF0dXJlBAAAAAdtZXNzYWdlCQABmwAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABGhhc2gCAAAAASwFAAAAB2FjY291bnQCAAAAASwFAAAABmFtb3VudAIAAAABLAUAAAADc2VxBAAAABFtZXNzYWdlV2l0aFByZWZpeAkAAMsAAAACCQAAywAAAAIJAADLAAAAAgEAAAABGQkAAZsAAAABAgAAABlFdGhlcmV1bSBTaWduZWQgTWVzc2FnZToKAQAAAAHrCQABmwAAAAEJAAEsAAAAAgkAASwAAAACCQABLAAAAAIJAAEsAAAAAgkAASwAAAACCQABLAAAAAIFAAAABGhhc2gCAAAAASwFAAAAB2FjY291bnQCAAAAASwFAAAABmFtb3VudAIAAAABLAUAAAADc2VxAwkBAAAAASEAAAABCQAB9AAAAAMFAAAAB21lc3NhZ2UJAAJdAAAAAQUAAAAJc2lnbmF0dXJlCQACXQAAAAEFAAAACWdlbmVyYXRvcgkAAAIAAAABCQACXAAAAAEJAAH1AAAAAQUAAAAHbWVzc2FnZQQAAAAOY2FsY3VsYXRlZEhhc2gJAAH1AAAAAQkAAMsAAAACCQAAywAAAAIJAAJdAAAAAQUAAAAHYWNjb3VudAkAAl0AAAABBQAAAAZhbW91bnQJAAJdAAAAAQUAAAADc2VxAwkBAAAAAiE9AAAAAgUAAAAOY2FsY3VsYXRlZEhhc2gJAAJdAAAAAQUAAAAEaGFzaAkAAAIAAAABAgAAAA1oYXNoIG1pc21hdGNoCQEAAAAIV3JpdGVTZXQAAAABBQAAAANuaWwAAAAAN7h3kA==", "chainId": 84, "height": 808899, "spentComplexity": 0 } View: original | compacted Prev: GvjyCG9GAAvgDi3WnkisEeDSkXH1pK5UpiJ7TbeYTc5S Next: 4aMeDa7MaAZ6BRwtACRqZi5y9VyPotAFbE1BG6cfY6ya Diff:
OldNewDifferences
55
66 @Callable(i)
77 func addDeposit (hash,account,amount,seq,generator,signature) = {
8- let message = (((base58'S' + toBytes("Ethereum Signed Message:
8+ let message = toBytes(((((((hash + ",") + account) + ",") + amount) + ",") + seq))
9+ let messageWithPrefix = (((base58'S' + toBytes("Ethereum Signed Message:
910 ")) + base58'54') + toBytes(((((((hash + ",") + account) + ",") + amount) + ",") + seq)))
1011 if (!(sigVerify(message, fromBase16String(signature), fromBase16String(generator))))
1112 then throw(toBase16String(keccak256(message)))
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) = {
8- let message = (((base58'S' + toBytes("Ethereum Signed Message:
8+ let message = toBytes(((((((hash + ",") + account) + ",") + amount) + ",") + seq))
9+ let messageWithPrefix = (((base58'S' + toBytes("Ethereum Signed Message:
910 ")) + base58'54') + toBytes(((((((hash + ",") + account) + ",") + amount) + ",") + seq)))
1011 if (!(sigVerify(message, fromBase16String(signature), fromBase16String(generator))))
1112 then throw(toBase16String(keccak256(message)))
1213 else {
1314 let calculatedHash = keccak256(((fromBase16String(account) + fromBase16String(amount)) + fromBase16String(seq)))
1415 if ((calculatedHash != fromBase16String(hash)))
1516 then throw("hash mismatch")
1617 else WriteSet(nil)
1718 }
1819 }
1920
2021

github/deemru/w8io/026f985 
31.99 ms