CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-web3

A Python library for interacting with Ethereum blockchain

Overall
score

88%

Evaluation88%

1.01x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "context": "This criteria evaluates the engineer's ability to use web3.py's cryptographic hashing capabilities, specifically the keccak hashing functions and ENS namehash computation. The evaluation focuses exclusively on proper usage of web3.py's hashing utilities.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses Web3.keccak",
      "description": "Uses Web3.keccak() or Web3.solidity_keccak() for hashing operations in both hash_text and hash_bytes functions",
      "max_score": 30
    },
    {
      "name": "Text encoding",
      "description": "Properly encodes text strings to bytes before hashing in hash_text function, using appropriate encoding method (e.g., .encode() or Web3.to_bytes())",
      "max_score": 15
    },
    {
      "name": "Hex conversion",
      "description": "Uses Web3.to_hex() or similar web3.py utility to convert hash results to hexadecimal strings with '0x' prefix",
      "max_score": 15
    },
    {
      "name": "Handles bytes data",
      "description": "Correctly passes raw bytes data directly to Web3.keccak() in hash_bytes function without unnecessary conversions",
      "max_score": 15
    },
    {
      "name": "ENS namehash",
      "description": "Uses Web3.ens.namehash() or the ens module's namehash function for computing domain name hashes in compute_namehash function",
      "max_score": 25
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-web3

tile.json