Pay-to-Public-Key-Hash (P2PKH) and Trezor (2024)

Pay-to-Public-Key-Hash (P2PKH) is a method of sending bitcoin to a specific address. In this method, instead of sending money to a public key, as in P2PK transactions, a hash of the public key is used.

You know how you have an address to receive mail at your house? P2PKH is like a digital address where people can send bitcoin to, but instead of your name and address, it uses a long string of numbers and letters. This is called a "hash", and it helps keep your information private.

By using the hash of the public key rather than the public key itself, P2PKH enchances bitcoin security. This is because the hash is secured by SHA-256 encryption.Currently no known quantum algorithms can break the SHA-256 encryption. This means that even if a quantum computer were to be used to try to derive the private key from the public key, it would not be able to do so because the public key is not visible on the blockchain, only its hash is.

In the context of P2PKH, SHA-256 is used to create a hash of the public key. This hash is then used in the ScriptPubKey of the P2PKH transaction.A scriptPubKey is a script that is included in the output of a transaction. It sets the rules that must be satisfied in order to use the funds related to that output.

In P2PKH, the scriptPubKey contains the hash of the public key, while the ScriptSig includes the signature and the public key. The public key is only visible on the blockchain when the coins are spent, and not when they are received.

It is one of the most commonly used transaction types in bitcoin transactions.

P2PKH addresses start with a "1"

A closer look at transaction scripts

Anoutputthat pays to a P2PKHscriptPubKeyis spent by aninputwith a simplescriptSigthat providespublic keyand the correspondingsignature:

scriptPubKey: OP_DUP OP_HASH160 <publicKeyHash> OP_EQUALVERIFY OP_CHECKSIG
scriptSig: <signature> <publicKey>


Check out the following example of a Bitcoin transaction with one P2PKH input and two P2PKH outputs on theblockchain explorer.


To learn even more about how bitcoin transactions work check out this blog post on types of bitcoin transactions:Part I,Part 2.

More detailed information can be found on theBitcoin Wikior inBitcoin.org Developer guide.

Pay-to-Public-Key-Hash (P2PKH) and Trezor (2024)
Top Articles
The 20 fastest-cooling real estate markets in the US
Make some extra money - 15 top car boot sale tips.... | The Diary of a Frugal Family
The Tribes and Castes of the Central Provinces of India, Volume 3
Ohio Houses With Land for Sale - 1,591 Properties
CLI Book 3: Cisco Secure Firewall ASA VPN CLI Configuration Guide, 9.22 - General VPN Parameters [Cisco Secure Firewall ASA]
East Cocalico Police Department
CSC error CS0006: Metadata file 'SonarAnalyzer.dll' could not be found
The Wicked Lady | Rotten Tomatoes
2013 Chevy Cruze Coolant Hose Diagram
What is the surrender charge on life insurance?
Top tips for getting around Buenos Aires
Missed Connections Dayton Ohio
Connect U Of M Dearborn
Hocus Pocus Showtimes Near Amstar Cinema 16 - Macon
Allentown Craigslist Heavy Equipment
Att.com/Myatt.
Never Give Up Quotes to Keep You Going
Play Tetris Mind Bender
Haunted Mansion Showtimes Near Epic Theatres Of West Volusia
Kirk Franklin Mother Debra Jones Age
Mynahealthcare Login
Usa Massage Reviews
Harrison 911 Cad Log
Orange Park Dog Racing Results
Ewg Eucerin
WOODSTOCK CELEBRATES 50 YEARS WITH COMPREHENSIVE 38-CD DELUXE BOXED SET | Rhino
The Bold and the Beautiful
Bfri Forum
Promatch Parts
Warren County Skyward
Nacogdoches, Texas: Step Back in Time in Texas' Oldest Town
Mg Char Grill
Ultra Clear Epoxy Instructions
Tendermeetup Login
Help with your flower delivery - Don's Florist & Gift Inc.
Dr. John Mathews Jr., MD – Fairfax, VA | Internal Medicine on Doximity
Td Ameritrade Learning Center
Anguilla Forum Tripadvisor
Academy Sports New Bern Nc Coupons
Home Auctions - Real Estate Auctions
Florida Lottery Claim Appointment
Mbfs Com Login
Port Huron Newspaper
Amy Zais Obituary
Gw2 Support Specter
Jane Powell, MGM musical star of 'Seven Brides for Seven Brothers,' 'Royal Wedding,' dead at 92
Sc Pick 3 Past 30 Days Midday
How to Find Mugshots: 11 Steps (with Pictures) - wikiHow
Suzanne Olsen Swift River
Latest Posts
Article information

Author: Wyatt Volkman LLD

Last Updated:

Views: 5776

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Wyatt Volkman LLD

Birthday: 1992-02-16

Address: Suite 851 78549 Lubowitz Well, Wardside, TX 98080-8615

Phone: +67618977178100

Job: Manufacturing Director

Hobby: Running, Mountaineering, Inline skating, Writing, Baton twirling, Computer programming, Stone skipping

Introduction: My name is Wyatt Volkman LLD, I am a handsome, rich, comfortable, lively, zealous, graceful, gifted person who loves writing and wants to share my knowledge and understanding with you.