Skip to main content

KEK: Kernel Examination Kit - A CLI tool to parse, hash, and debug EIP-4337 UserOperations for Kernel.

Project description

KEK: Kernel Examination Kit

A CLI tool to parse, hash, verify signatures, and debug EIP-4337 UserOperations, designed for use with Kernel.

Installation

pip install zerodev_kek

Usage

The tool provides several commands:

# Get help
kek --help

# Format input (raw text, UserOp JSON, PackedUserOp JSON) to specified output JSON
kek format "<input_data>" [--output <packed|userop>] # Default output is packed

# Calculate UserOp hash from any input format
kek userOpHash "<input_data>" --chainId <id> [--entrypoint <addr>]

# Recover signer (show all attempts) from any input format
kek signer "<input_data>" --chainId <id> --signer [--entrypoint <addr>]

# Verify signer against a specific address from any input format
kek signer "<input_data>" --chainId <id> --signer <expected_addr> [--entrypoint <addr>]

# Generate debug cast call command from any input format (DEFAULT: prints command)
kek debug "<input_data>" --rpc-url <url>

# Generate AND execute debug cast call command
kek debug "<input_data>" --rpc-url <url> | sh

Note: Wrap multi-line raw UserOperation text in quotes ("...").

  • Use entrypoint simulation contract to get the detailed trace

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zerodev_kek-0.2.0.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zerodev_kek-0.2.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file zerodev_kek-0.2.0.tar.gz.

File metadata

  • Download URL: zerodev_kek-0.2.0.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for zerodev_kek-0.2.0.tar.gz
Algorithm Hash digest
SHA256 39ab3804345b7e9613e38e45b0192109a7d730dd0fbf12a0760986278c3b94d4
MD5 02e0ebe8846a722f2cd9b2da67ba1aa4
BLAKE2b-256 380ffa380f7338273c3a49b1a0414e0f426df43debb5c7836b9157f3e563bb7f

See more details on using hashes here.

File details

Details for the file zerodev_kek-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: zerodev_kek-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for zerodev_kek-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 700f23ac557c2318fc548a1c61cf2fac8b51ca791c40f427a4f7c1230be21aa3
MD5 2bac3bbd8984e4238dc1e9ad73fc3670
BLAKE2b-256 165444f87e1157e75f781d08783aeb78bc0392c2fb475fbd013b9afcf7d93a9e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page