Hi Coders, I’m trying to reverse engineer a Kraken deposit contract to understand exactly how “unretrievable” my recent incorrect ERC-20 send is… I was going to start with “Mastering Ethereum” as my guide … Is that a good place to start or is there a better crash course book you

Jan 19, 2021, 3:19 PM
‘d recommend I start with?
(I took a 10 hr Solidity course a few years ago so I’m not totally starting from scratch, but I don’t remember much)
Yeah I loved the Udemy course I took, and built a couple simple contracts… I was hoping for a dense PDF I could use to translate things quickly, but maybe you’re right I should just try YouTube first
I was surprised to learn the deposit address for Kraken is actually a contract whereas the address for Coinbase is just a reg ETH address… i would have thought the exchange security measures were pretty standardized at this point
Jan 19, 2021, 3:32 PM
what do you mean by reverse engineering?
can't you see the clean contract code? source code
Jan 19, 2021, 4:01 PM
I think so but I don’t understand what I’m seeing
I’ll send link in a sec
Jan 19, 2021, 4:02 PM
ok
Jan 19, 2021, 4:02 PM
did that link just get deleted? i’ll just send the contract address
0xa24787320ede4cc19d800bf87b41ab9539c4da9d
Jan 19, 2021, 4:04 PM
ByteCode Decompilation Result: source code
Jan 19, 2021, 4:04 PM
right, looking at that decomp, i don’t understand 98% of it …
Jan 19, 2021, 4:05 PM
to decompile means to translate from byte code into high level language
and then understand the source code
Jan 19, 2021, 4:07 PM
right, so i can see the high level language, but i don’t understand what i see
Jan 19, 2021, 4:07 PM
I see that the code is similar to python, most likely it is either a mutan or a serpen, I don't know for sure
Jan 19, 2021, 4:08 PM
oh so it doesn’t have to be solidity? i didn’t even know that
Jan 19, 2021, 4:08 PM
teach materiel
Jan 19, 2021, 4:09 PM
wow i’ve never even heard of Vyper
Jan 19, 2021, 4:11 PM
the virtual machine supports multiple languages, you need to understand how the compiler works, etc. you still have to study and learn
Jan 19, 2021, 4:13 PM
Ok got it, thank you
Are there tools for mapping out structures of related contracts automatically, or i just have to do it all by hand using Etherscan?
I found a website called contract-library that appears to do a more detailed decompiling of that vyper contract
Jan 19, 2021, 4:36 PM
I use bloxy.info but if you find it better let me know
Jan 19, 2021, 4:51 PM
the bloxy info on related contracts etc is super helpful, thank you
turns out Chapter 8 in Mastering Ethereum is about Vyper so just got a good overview there, since it’s free on github
Jan 19, 2021, 5:15 PM
where is this course, what is its name
Jan 19, 2021, 5:22 PM
It was pretty technical and hard at times, but he’s a great teacher
Jan 19, 2021, 5:26 PM
whats the name
Jan 19, 2021, 5:34 PM
I guess i’m not allowed to post links
“Ethereum and Solidity: The Complete Developer’s Guide” by Stephen Grider
Jan 19, 2021, 5:50 PM
thanks
Jan 19, 2021, 7:41 PM
thanks for asking! reminds me maybe i should just take the course again… i dont remember anything from when i took it 2 years ago
Jan 19, 2021, 7:43 PM
hello need some help on a ERC721 store if anyone is interested
assistance in building a store
or just general advice
Jan 19, 2021, 8:30 PM

© 2024 Draquery.com All rights reserved.