Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Yes—if a standard externally owned account (EOA) signed the transaction, its secp256k1 public key can generally be recovered from the signature. The transaction does not normally print a field named “public key.” Instead, the signature, the correct signing hash, and the signature’s recovery value let protocol-aware software reconstruct the key. You can then derive an Ethereum address from that key and compare it with the transaction’s sender.

This is different from exposing the private key. A public key may be recoverable without giving an observer the private key or proving that ordinary private-key theft is possible.

What an Ethereum transaction actually exposes

Ethereum uses two related but different identifiers:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • Public key: the full secp256k1 elliptic-curve key associated with an EOA.
  • Address: a 20-byte identifier derived from the public key. For a normal EOA, Ethereum takes the Keccak-256 hash of the public-key coordinate data and uses the last 20 bytes.

The address is therefore a shortened, hash-derived identifier—not the public key itself. Before an EOA signs a transaction, an observer may know only its address. Once a valid signature is published, the signing hash and recovery information make the public key recoverable.

#1 Best Overall
Sale
Compressed Air Duster,130000RPM Super Power Cordless Air Duster,Rechargeable Brushless Blower,3 Gear Adjustable Blower with LED Light,Dust Remover for Computer/House/Outdoor/Car
  • Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
  • With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
  • Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
  • Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
  • Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.

Ethereum.org’s account documentation expresses the relationship this way: “Others can then take the signature to derive your public key, proving the author of the message.” The statement concerns a signature and its message; a signature value by itself is not enough.

What the result means—and what it does not mean

Finding Correct interpretation
A public key can be recovered from the transaction signature The EOA’s public key is exposed or recoverable from that signed transaction.
The recovered key derives the same address as the transaction sender The signature, signing hash, and sender are internally consistent.
The address is visible on-chain The 20-byte address is public; this alone does not display the full public key.
The private key is not shown Public-key recovery does not reveal the private key. Ethereum’s account documentation states that a private key cannot be derived from a public key.
A proposal discusses risks from exposed public keys That is security context, not evidence that a present-day attacker can routinely calculate the private key.

EIP-8164 discusses exposed ECDSA authentication keys in a conditional post-quantum threat model. Treat that as a long-horizon security consideration. It is not a claim that publishing a normal transaction lets someone ordinarily compute the signer’s private key today.

First determine what kind of account sent the transaction

Externally owned account (EOA)

The recovery procedure in this guide applies to a normal EOA transaction signed with secp256k1. The transaction’s signature authenticates the sender, and the public key can be recovered from the signature and the transaction’s signing hash.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Contract account or smart-account execution

A contract account does not have an EOA-style private key and signature for every action it performs. A top-level transaction that calls a contract is still usually signed by an EOA or another authorization mechanism, but the contract’s internal calls are not separate ECDSA transactions. Smart-account systems can validate signatures, sessions, multisignature approvals, or other schemes inside contract code. For those systems, inspect the authorization format used by that account rather than assuming that the contract address has one recoverable ECDSA public key.

Delegation and relaying caveat

A relayer can submit a transaction on behalf of another party. In that case, the top-level transaction signature may recover the relayer’s key, while the application payload contains a separate authorization. Analyze the exact transaction and protocol rules before labeling the recovered key as the end user’s key.

Information you need before checking

  • The transaction hash and network (for example, Ethereum mainnet or a test network).
  • A transaction object from a node or explorer, including its type and signature fields where available.
  • The raw signed transaction bytes, or a provider method that returns them. A normal transaction lookup may return decoded fields but not the serialized bytes.
  • A maintained Ethereum library that understands legacy and typed transaction formats.

Do not start with the final transaction hash as though it were the signing hash. The final hash commits to the complete serialized signed transaction, including the signature. Public-key recovery instead needs the hash of the appropriate unsigned transaction payload.

Step-by-step: recover and verify the public key

1. Retrieve the transaction object

Use the transaction hash with a node or provider. The standard JSON-RPC call is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
EVEO® Screen Cleaner Spray Kit (Streak-Free) TV Screen Cleaner for Smart TV, Lcd, LEd, Oled | Computer Screen Cleaner Spray and Wipe Microfiber Cloth - TV, Monitor, Laptop, iPad, Car - 6.7oz 1 Pack
  • Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
  • Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
  • Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
  • Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
  • Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
curl -s -X POST https://YOUR_RPC_ENDPOINT -H 'Content-Type: application/json' --data '{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":["0xTRANSACTION_HASH"],"id":1}'

Replace the endpoint and hash with your own values. The response commonly includes from, to, nonce, gas fields, value, input, type, chainId, and signature components such as r, s, and either v or a typed-transaction parity field.

Record the network as well as the hash. The same hexadecimal hash is meaningful only in the context of the chain where it was observed, and the chain ID affects legacy signing.

2. Identify the transaction envelope

Read the type field before attempting recovery. A missing or zero type generally indicates a legacy transaction; nonzero values indicate a typed envelope. Do not apply legacy field ordering or legacy v calculations to a typed transaction.

Format Signature/recovery detail Signing-hash rule
Unprotected legacy v normally carries recovery parity as 27 or 28. Hash the six legacy transaction fields without EIP-155 chain-ID padding.
EIP-155 protected legacy v encodes chain ID and recovery parity: chain ID × 2 + 35 + parity. Hash the six fields followed by chain ID, zero, and zero.
Typed transaction Uses type-specific fields and normally an explicit parity value such as yParity. Hash the type byte plus that type’s unsigned payload. The exact field order depends on the type.

EIP-155 defines the chain-ID rules for protected legacy signatures. Typed envelopes use their own serialization rules, so a type-aware library is safer than manually reusing the legacy algorithm.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

3. Obtain serialized signed bytes

A decoded transaction response is useful for inspection, but public-key recovery is least error-prone when you parse the complete signed serialization. Some explorers provide a raw-transaction view; some node providers offer a provider-specific raw-transaction method. Availability and method names vary, so verify the method supported by your node.

If you only have decoded fields, you must reconstruct the exact unsigned payload, including field order, numeric encoding, access lists, fee fields, and the correct chain-ID rule. A one-byte difference produces a different signing hash and an invalid recovered key.

4. Parse the transaction with a type-aware library

The following JavaScript example uses a maintained Ethereum library with transaction parsing and secp256k1 helpers. It assumes rawSignedTx is the complete serialized signed transaction. The library determines whether the transaction is legacy or typed and constructs the correct unsigned serialization.

Rank #3
Sale
BladeHawks RGB Gaming Mouse Pad Extra Large Extended 31.5x12 Inch-Black | LED mouse pad with 14 lighting modes, covers keyboard & mouse, anti-slip rubber base, waterproof surface, USB powered
  • 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
  • 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
  • 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
  • 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
  • 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
import { Transaction, SigningKey, keccak256, computeAddress, getBytes } from 'ethers';

const tx = Transaction.from(rawSignedTx);
if (!tx.signature) {
  throw new Error('The transaction has no recoverable signature');
}

const signingHash = keccak256(tx.unsignedSerialized);
const publicKey = SigningKey.recoverPublicKey(signingHash, tx.signature);
const derivedAddress = computeAddress(publicKey);

console.log({
  type: tx.type,
  senderFromSignature: derivedAddress,
  senderFromTransaction: tx.from,
  publicKey
});

The important operations are conceptual even if you use another language: parse the signed envelope, obtain the unsigned serialization, hash that serialization, recover the public key from the hash and signature, and derive an address from the recovered key.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

5. Compare the derived address with the sender

Use the library’s address function, or derive it manually from the uncompressed public key by removing the leading 0x04 byte, hashing the remaining x- and y-coordinate bytes with Keccak-256, and taking the last 20 bytes. Compare the resulting checksummed address with the transaction’s from field.

A match is the expected result for a correctly parsed EOA transaction. A mismatch usually indicates a wrong signing hash, an incorrect transaction type, a chain-ID mistake, a malformed raw transaction, or an implementation error—not that Ethereum has two different signers for the same transaction.

6. Record a precise result

Report the network, transaction hash, transaction type, chain ID when applicable, software used, and the address comparison. The clearest wording is:

“The public key is recoverable from this transaction signature, and the address derived from the recovered key matches the transaction sender.”

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

This is more precise than saying that the public key is printed in the transaction. Interfaces may show r, s, v, or parity without displaying a separately labeled public-key field.

Why the transaction hash is the wrong recovery input

Three hashes or hash-like values are easy to confuse:

Rank #4
Sale
Vaydeer Wrist Rest for Keyboard and Mouse, Computer Ergonomic Wrist Support Pad, Soft Memory Foam Arm Cushion for Desk, Palm Hand Office Laptop Typing
  • 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
  • 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
  • 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
  • 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
  • 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
  1. Final transaction hash: the hash used to identify the submitted signed transaction. It includes the signature and is not the message digest that ECDSA signed.
  2. Signing hash: the digest of the unsigned transaction payload under the applicable legacy or typed-transaction rules. This is the digest required for public-key recovery.
  3. Address derivation hash: the Keccak-256 hash of the recovered public-key coordinate data, from which the final 20 bytes form the address.

Using the final transaction hash in the recovery function can produce a key that does not match the sender, even when the transaction and signature are valid. Always let a transaction parser construct the unsigned serialization for the specific envelope.

Legacy and typed transactions in more detail

Legacy transactions without EIP-155 protection

Older unprotected legacy signatures use the original six transaction fields for the signing payload. The v value conventionally contains 27 or 28, representing the two recovery parities. This format does not commit the signature to a chain ID in the EIP-155 manner.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

EIP-155-protected legacy transactions

For a protected legacy transaction, the signing payload contains nonce, gas price, gas limit, recipient, value, and data, followed by the chain ID, zero, and zero. The resulting v value carries both the chain ID and the recovery parity. Recovering with the six-field hash or interpreting v as plain 27/28 will give the wrong result.

Typed envelopes

Typed transactions have a type byte and type-specific unsigned fields. Fee-market transactions, access-list transactions, and later typed formats do not all serialize the same way. Their signatures normally expose a parity value directly rather than the legacy chain-ID encoding in v. The transaction type determines which fields belong in the signing payload, so a maintained parser should be preferred over hand-built RLP.

Explorer-only checks: useful but incomplete

An explorer can help you confirm the transaction’s sender, status, type, nonce, fee fields, and visible signature components. Those details are useful for selecting the correct recovery path, but an explorer is not required to show a recovered public key. Different interfaces expose different fields, and the reviewed Ethereum documentation does not establish that every explorer offers a labeled public-key view.

If an explorer displays a public key, independently verify it by deriving the address and comparing it with from. If it displays only r, s, and v or parity, that is still enough for recovery when you also have the correct signing hash.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Troubleshooting failed recovery

The library says the signature is invalid

  • Confirm that the raw bytes are a complete signed transaction, not an unsigned payload.
  • Check that the transaction was not truncated or altered when copied.
  • Make sure the signature’s s value and recovery field are parsed according to the transaction type.

The derived address does not equal from

  • Verify the transaction type and field order.
  • For legacy transactions, distinguish EIP-155-protected signing from the unprotected six-field form.
  • Do not hash the final transaction hash.
  • Confirm that the chain ID in the signing payload matches the network and encoded signature information.
  • Check whether the provider returned a normalized transaction object rather than the original raw bytes.

There is no raw transaction available

Use a node or provider that supports retrieval of serialized signed bytes, or reconstruct the unsigned payload only with a library that documents support for the exact transaction type. If neither is possible, you can explain that the visible signature fields indicate recoverability in principle, but you should not claim a completed key recovery without verifying the derived address.

Best Value
Sale
Under Desk Cable Management Tray No Drill, Metal Mesh Cable Management Under Desk with Clamp Mount, 2 Hole Cable Tray with Wire Management and Cord Organizer for Home Office Standing Desk
  • 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
  • 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
  • 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
  • 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
  • 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.

The transaction is an internal contract call

Internal calls do not carry independent top-level ECDSA signatures. Trace the originating transaction and identify which account or contract authorization actually approved the action. A contract address alone is not evidence of a recoverable EOA public key.

The transaction was submitted by a relayer

Separate the relayer’s transaction signature from any signed message, permit, meta-transaction, or account-abstraction authorization embedded in calldata. Recovering the outer signature may identify only the relayer.

Privacy and long-term security considerations

Once an EOA has signed and published a transaction, an observer can generally recover its public key from that signature. This is a durable on-chain property: copying the transaction to another database or changing the explorer does not remove the signature from the public record.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

That exposure does not make the private key public. ECDSA is designed so that signatures can be verified with a public key while the private key remains secret. A recovered public key is therefore evidence of authorship and a privacy fact, not proof that the account has been compromised.

The security distinction matters when reading post-quantum discussions. EIP-8164 describes a conditional threat in which exposed authentication public keys may matter to a sufficiently capable future attacker. It does not establish a current, routine method for calculating Ethereum private keys from ordinary published public keys. Keep protocol proposals, present-day cryptographic capability, and an individual incident report separate.

A compact decision checklist

  1. Confirm the chain and transaction hash.
  2. Retrieve the decoded transaction and note its type, chain ID, sender, and signature fields.
  3. Obtain the complete raw signed serialization if possible.
  4. Parse it with a library that supports that transaction type.
  5. Construct the unsigned signing serialization and hash it.
  6. Recover the secp256k1 public key from the signing hash and signature.
  7. Derive the address from the recovered key.
  8. Compare the derived address with from.
  9. Report whether the key is recoverable, without claiming that the private key was exposed.

What you can safely conclude

For a correctly parsed EOA transaction, a matching recovered address establishes that the signer’s public key is recoverable from the published signature. It does not establish that an explorer visibly prints that key, that a contract account has an EOA key, or that the private key can be derived. The transaction type and signing-hash rules determine whether your check is valid, so the most reliable workflow is to use a type-aware parser and verify the derived address.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.