CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-web3

A Python library for interacting with Ethereum blockchain

88

1.01x
Quality

Pending

Does it follow best practices?

Impact

88%

1.01x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.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
    }
  ]
}

tile.json