A Python library for interacting with Ethereum blockchain
Overall
score
88%
Evaluation — 88%
↑ 1.01xAgent success when using this tile
Build a Python utility that hashes various Ethereum-related data types using cryptographic hashing functions. The utility should handle text strings, byte data, and compute domain-specific hashes for Ethereum name resolution.
@generates
def hash_text(text: str) -> str:
"""
Hash a text string using Ethereum's standard cryptographic hash function.
Args:
text: The text string to hash
Returns:
Hexadecimal string representation of the hash (with '0x' prefix)
"""
pass
def hash_bytes(data: bytes) -> str:
"""
Hash raw bytes data using Ethereum's standard cryptographic hash function.
Args:
data: The bytes data to hash
Returns:
Hexadecimal string representation of the hash (with '0x' prefix)
"""
pass
def compute_namehash(domain: str) -> str:
"""
Compute the namehash for an Ethereum domain name.
Args:
domain: The domain name (e.g., "example.eth")
Returns:
Hexadecimal string representation of the namehash (with '0x' prefix)
"""
passProvides Ethereum blockchain interaction capabilities including cryptographic hashing functions.
Install with Tessl CLI
npx tessl i tessl/pypi-web3docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10