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.1.1.tar.gz (20.5 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.1.1-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zerodev_kek-0.1.1.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.16

File hashes

Hashes for zerodev_kek-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6a4ef605bad2aca3d01b09ddea4dcef7eb109b4bf9f28bee72cd2ffcc8802bde
MD5 2f69900c16a627831caa597cd86d443e
BLAKE2b-256 6dffd030c9605965fead5f3a2a6983990bec095a2a3295fd15162cf57bf873ab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for zerodev_kek-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be881685cefc5a962e37fe8c5d8739662a6b43cbf08480888e1c1b0b4afd3c81
MD5 344c8287025320292a643bd322b25686
BLAKE2b-256 5fcd1e8e0a5df2df20baafdb04b24eb3b7fc5d474394f3b7525c11e9628bcd17

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