Bitcoin Forum
May 08, 2024, 10:55:34 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Are xpub keys ever not a length of 111?  (Read 712 times)
dwma (OP)
Sr. Member
****
Offline Offline

Activity: 405
Merit: 250


View Profile
June 15, 2016, 04:33:29 AM
 #1


I could try and pick apart the  specification but it would be time consuming. Is it possible for the address to be shortened under 111?

I'm working under the assumption they are always length 111. Is this a safe assumption?
1715208934
Hero Member
*
Offline Offline

Posts: 1715208934

View Profile Personal Message (Offline)

Ignore
1715208934
Reply with quote  #2

1715208934
Report to moderator
1715208934
Hero Member
*
Offline Offline

Posts: 1715208934

View Profile Personal Message (Offline)

Ignore
1715208934
Reply with quote  #2

1715208934
Report to moderator
1715208934
Hero Member
*
Offline Offline

Posts: 1715208934

View Profile Personal Message (Offline)

Ignore
1715208934
Reply with quote  #2

1715208934
Report to moderator
TalkImg was created especially for hosting images on bitcointalk.org: try it next time you want to post an image
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
June 15, 2016, 04:47:58 AM
 #2

They are always 78 bytes, but that does not translate to a guaranteed fixed size when in base58 encoding. I believe it is possible for an xpub to be shorter than 111 characters but it will not be longer than 112 .

johoe
Full Member
***
Offline Offline

Activity: 217
Merit: 241


View Profile
June 16, 2016, 09:56:26 AM
 #3

Since the prefix is fixed and non-zero, they are always the same length. 

Donations to 1CF62UFWXiKqFUmgQMUby9DpEW5LXjypU3
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!