Papers2 providers · 2 records
January 1, 2026· Zenodo (CERN European Organization for Nuclear Research)
book-chapter
Open access

Deriving and Validating an EVM Address with Shell Tools Key generation (addr.sh) and message signing (sign.sh) on a restricted Android 2.3 environment

Abstract

Abstract This report documents two shell scripts. addr.sh draws a secp256k1 private key from /dev/urandom, computes the public key by scalar multiplication, and derives the Ethereum/EVM address as the last 20 bytes of its Keccak-256 hash. sign.sh signs a text message with the EIP-191 personal_sign convention using ECDSA. Neither script uses OpenSSL, Python or a network. They need only bash, dc, od, head and tr. The target device is Terminal IDE on Android 2.3, which provides or is expected to provide these tools. Every algorithm is given in pseudocode. The report also states the test evidence and the limitations. The scripts use bash features such as arrays, substring expansion and [[ ]], so they are not strictly POSIX shell. "POSIX tools" describes their style, not strict conformance.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.