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

Uploaded Python 3

File details

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

File metadata

  • Download URL: zerodev_kek-0.1.3.tar.gz
  • Upload date:
  • Size: 20.3 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.1.3.tar.gz
Algorithm Hash digest
SHA256 8eabc7ce9ac278fb2c670c863def8bc8930cb2efeff676d8f88774ef4ffc1b4d
MD5 8b13a9d4fcfba5928ef6b602bf43dd25
BLAKE2b-256 56228820b22eed62fd967473748a38f3156ee164eb86b750f3d1f4a39cc82cc5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zerodev_kek-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 17.8 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.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d502b2b9dff8d42e99b0913df8ed7e5788c188d03b9e8f9315b83ec3b2d37fca
MD5 4e41f2c18e3ac288195eae5f5041c90a
BLAKE2b-256 a9c02c4243a67b1b93fd33fa9a5d89faf93b10a14eee9020fe90be34922d6299

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