I am trying to build the namehash() algorithm in python for https://eips.ethereum.org/EIPS/eip-137 A screenshot of the algorithm is below. I'm able to get the keccak/sha3 of a specific labelHash (like 'vitalik' and 'eth' for example). However, I can't for the life of me figure out how to do this recursively. I have tried about every way of adding the 2 hashes together and then hashing again with no luck. Basically, where it says
Does anyone have any tips to do this, or better yet, a working python namehash function? [link] [comments] |
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments