• About
  • Advertise
  • Privacy & Policy
  • Contact
coinmarketcap.yt
Advertisement
  • Home
  • Bitcoin
  • Blockchain
  • Ethereum
  • Market
  • Videos
  • Tools
  • Bridges
  • Privacy Policy
  • Contact Us
No Result
View All Result
  • Home
  • Bitcoin
  • Blockchain
  • Ethereum
  • Market
  • Videos
  • Tools
  • Bridges
  • Privacy Policy
  • Contact Us
No Result
View All Result
coinmarketcap.yt
No Result
View All Result
Home Bitcoin

Is there a standard P2PKH?

coinmarketcap.yt by coinmarketcap.yt
February 18, 2023
in Bitcoin
0
btcpay – LTC Address Derivation Path from Address and Seed
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter

I was implementing a small application that computes the bitcoin address starting from a private key (256-bit number). I am surprised about the lack of a single trustworthy reference to this, unlike the case of the BIPs.

The book of Antonopoulos and the bitcoin wiki indicate that the public key (pubK) must go through sha256 and ripemd160 hashes before base58check encoding that results in the final bitcoin address; there are also details about the version byte. But the pubK could be serialized in at least two forms, either the full 65-bytes 0x04<xcoord><ycoord> or the compressed 33-bytes 0x02/0x03 <xcoord> representation. Both lead to different bitcoin addresses. The wiki explains step by step how to obtain an address from the compressed pubK, but the image in the page shows a diagram that uses the full pubK representation instead. The http://gobittest.appspot.com/ website, referenced in the bitcoin wiki for testing the WIF format, computes the addresses using the full pubK.

Alright, I know that the private key WIF serialization format has a byte to indicate whether the pubK addresses are computed using the the compressed or full representation (see https://en.bitcoin.it/wiki/Wallet_import_format).

Also add a 0x01 byte at the end if the private key will correspond to a compressed public key.

However,

  1. it is not mentioned anywhere what is the value of that byte when the full pubK is used.
  2. ultimately a private key is just a 256-bit number, there should be a unique way to derive an address from there.

Are there actually two addresses for each private key in the bitcoin-core implementation? Isn’t there like a standard way of getting the address?

I was implementing a small application that computes the bitcoin address starting from a private key (256-bit number). I am surprised about the lack of a single trustworthy reference to this, unlike the case of the BIPs.

The book of Antonopoulos and the bitcoin wiki indicate that the public key (pubK) must go through sha256 and ripemd160 hashes before base58check encoding that results in the final bitcoin address; there are also details about the version byte. But the pubK could be serialized in at least two forms, either the full 65-bytes 0x04<xcoord><ycoord> or the compressed 33-bytes 0x02/0x03 <xcoord> representation. Both lead to different bitcoin addresses. The wiki explains step by step how to obtain an address from the compressed pubK, but the image in the page shows a diagram that uses the full pubK representation instead. The http://gobittest.appspot.com/ website, referenced in the bitcoin wiki for testing the WIF format, computes the addresses using the full pubK.

Alright, I know that the private key WIF serialization format has a byte to indicate whether the pubK addresses are computed using the the compressed or full representation (see https://en.bitcoin.it/wiki/Wallet_import_format).

Also add a 0x01 byte at the end if the private key will correspond to a compressed public key.

However,

  1. it is not mentioned anywhere what is the value of that byte when the full pubK is used.
  2. ultimately a private key is just a 256-bit number, there should be a unique way to derive an address from there.

Are there actually two addresses for each private key in the bitcoin-core implementation? Isn’t there like a standard way of getting the address?

Previous Post

Crypto Pirates Daily News – February 3rd, 2022 – Latest Cryptocurrency News Update

Next Post

An Unknown Firm “Jump Trading” Secured $1.28B Before Terra’s Collapse

coinmarketcap.yt

coinmarketcap.yt

Next Post
An Unknown Firm “Jump Trading” Secured $1.28B Before Terra’s Collapse

An Unknown Firm "Jump Trading" Secured $1.28B Before Terra's Collapse

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected test

  • 23.8k Followers
  • 99 Subscribers
  • Trending
  • Comments
  • Latest
Breaking Barriers: How Bitcoin Can Transform The Real Estate Industry

Breaking Barriers: How Bitcoin Can Transform The Real Estate Industry

June 2, 2023
Living in Merida Mexico – Cost of Living in Mexico – Tips for living in Mexico on a Budget

Living in Merida Mexico – Cost of Living in Mexico – Tips for living in Mexico on a Budget

December 25, 2022
Singapore Financial Authority Orders Crypto Companies to Keep Customer Assets in Trust 

Singapore Financial Authority Orders Crypto Companies to Keep Customer Assets in Trust 

July 3, 2023
DeeLance Leads Freelancing’s Web3 Future

DeeLance Leads Freelancing’s Web3 Future

April 30, 2023
Introduction to Bitcoin: what is bitcoin and why does it matter?

Introduction to Bitcoin: what is bitcoin and why does it matter?

0
Bitcoin Explained in the Bitcoin Basics Workshop CBP Prep [Free Workshop Extras – See Description]

Bitcoin Explained in the Bitcoin Basics Workshop CBP Prep [Free Workshop Extras – See Description]

0
Crypto Security: Passwords and Authentication – Livestream aantonop

Crypto Security: Passwords and Authentication – Livestream aantonop

0
Bitcoin for Beginners: Bitcoin Explained in Simple Terms

Bitcoin for Beginners: Bitcoin Explained in Simple Terms

0
OpenAI Announces Conversational and Image Search Features for ChatGPT Plus and Enterprise Users

OpenAI Announces Conversational and Image Search Features for ChatGPT Plus and Enterprise Users

September 26, 2023
Cypherpunk Icon Adam Back: Bitcoin Is 'Digital Gold for the Next Millennia'

Cypherpunk Icon Adam Back: Bitcoin Is 'Digital Gold for the Next Millennia'

September 26, 2023
FOIA Seeks Ripple And Crypto Emails Of Ex-SEC Chair Clayton

FOIA Seeks Ripple And Crypto Emails Of Ex-SEC Chair Clayton

September 26, 2023
Pepe Coin Bullish Outlook Eyes Range Channel Breakout

Pepe Coin Bullish Outlook Eyes Range Channel Breakout

September 26, 2023

Recent News

OpenAI Announces Conversational and Image Search Features for ChatGPT Plus and Enterprise Users

OpenAI Announces Conversational and Image Search Features for ChatGPT Plus and Enterprise Users

September 26, 2023
Cypherpunk Icon Adam Back: Bitcoin Is 'Digital Gold for the Next Millennia'

Cypherpunk Icon Adam Back: Bitcoin Is 'Digital Gold for the Next Millennia'

September 26, 2023
FOIA Seeks Ripple And Crypto Emails Of Ex-SEC Chair Clayton

FOIA Seeks Ripple And Crypto Emails Of Ex-SEC Chair Clayton

September 26, 2023
Pepe Coin Bullish Outlook Eyes Range Channel Breakout

Pepe Coin Bullish Outlook Eyes Range Channel Breakout

September 26, 2023
coinmarketcap.yt

© 2022 All Rights Reserved coinmarketcap.yt

Navigate Site

  • Home
  • Bitcoin
  • Blockchain
  • Ethereum
  • Market
  • Videos
  • Tools
  • Bridges
  • Privacy Policy
  • Contact Us

No Result
View All Result
  • Home
  • Bitcoin
  • Blockchain
  • Ethereum
  • Market
  • Videos
  • Tools
  • Bridges
  • Privacy Policy
  • Contact Us

© 2022 All Rights Reserved coinmarketcap.yt