Bitcoin Forum
June 27, 2024, 04:55:22 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How many palindromes as private keys?  (Read 987 times)
remotemass (OP)
Legendary
*
Offline Offline

Activity: 1120
Merit: 1017


ASMR El Salvador


View Profile WWW
February 13, 2013, 09:19:02 AM
 #1

I am wondering how many palindromes of 256 bits are there.
Private keys that are palindromes must be quite seldom.

{ Imagine a sequence of bits generated from the first decimal place of the square roots of whole integers that are irrational numbers. If the decimal falls between 0 and 5, it's considered bit 0, and if it falls between 5 and 10, it's considered bit 1. This sequence from a simple integer count of contiguous irrationals and their logical decimal expansion of the first decimal place is called the 'main irrational stream.' Our goal is to design a physical and optical computing system system that can detect when this stream starts matching a specific pattern of a given size of bits. bitcointalk.org/index.php?topic=166760.0 } Satoshi did use a friend class in C++ and put a comment on the code saying: "This is why people hate C++".
picobit
Hero Member
*****
Offline Offline

Activity: 547
Merit: 500


Decor in numeris


View Profile
February 13, 2013, 09:42:48 AM
 #2

I am wondering how many palindromes of 256 bits are there.
Private keys that are palindromes must be quite seldom.
2^128 = 3 * 10^38

And the chance that a random key is a palindrome is 1 divided by that number, that is zero for any practical purposes (the number of nanoseconds since the creation of the universe is only 2*10^19, i.e. 10000000000000000000 times smaller)

Of course you can create a palindromic private key easily, if you want to.
JoelKatz
Legendary
*
Offline Offline

Activity: 1596
Merit: 1012


Democracy is vulnerable to a 51% attack.


View Profile WWW
February 13, 2013, 09:59:23 AM
 #3

The key insight is to see that there's a one-to-one correspondence between 128-bit strings and 256-bit palindromes.

I am an employee of Ripple. Follow me on Twitter @JoelKatz
1Joe1Katzci1rFcsr9HH7SLuHVnDy2aihZ BM-NBM3FRExVJSJJamV9ccgyWvQfratUHgN
misterbigg
Legendary
*
Offline Offline

Activity: 1064
Merit: 1001



View Profile
February 14, 2013, 01:49:30 PM
 #4

Well, just to make things interesting how many case-insensitive palindromic encoded public keys are there?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4680



View Profile
February 14, 2013, 03:30:51 PM
 #5

Well, just to make things interesting how many case-insensitive palindromic encoded public keys are there?
Has it been proven that there is a one-to-one relationship between public keys and private keys in ECDSA with the secp256k1 curve?  If not, then there is no way to know the answer to your question, since there is no way to know what values are valid public keys without first calculating all of them.
misterbigg
Legendary
*
Offline Offline

Activity: 1064
Merit: 1001



View Profile
February 14, 2013, 05:28:46 PM
 #6

Oh...right. Well how about private keys?
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4680



View Profile
February 14, 2013, 05:44:26 PM
 #7

Oh...right. Well how about private keys?
That is going to depend on the format of the key I suppose.

Binary? (I think it would be 2128, right?)
Hex?
Base 10?
Base58Check Wallet Import Format?
Mini Private Key Format?
Base 62?
Base 64?
Extended Ascii (Base 256)?

 Grin

Guess I'm just being a PItA at this point.  I suspect that you mean Base58Check Wallet Import Format.
misterbigg
Legendary
*
Offline Offline

Activity: 1064
Merit: 1001



View Profile
February 14, 2013, 05:51:31 PM
 #8

Yes on all counts
DannyHamilton
Legendary
*
Offline Offline

Activity: 3430
Merit: 4680



View Profile
February 14, 2013, 06:04:10 PM
 #9

Ok, lets assume you are only referring to Wallet Import Format of uncompressed keys. If I properly recall the specifics of the forma that means the private key should be 51 characters long and always start with either 5H, 5J, or 5K.
The next 24 characters can each be any of 35 different characters.

I'd think that would work out to something like:
3 x 3524

Does that work out to something like 3 x 1048
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!