BitShares Forum

Main => Technical Support => Topic started by: 5chdn on January 07, 2014, 11:03:51 am

Title: What is the PTS private key version bit?
Post by: 5chdn on January 07, 2014, 11:03:51 am
Bitcoin is 0x00 for publickey and 0x80 for the private key.
Protoshares is 0x38 for pubkey, but which version is the private key?
Title: Re: What is the PTS private key version bit?
Post by: barwizi on January 07, 2014, 12:01:02 pm
i believe it is 56
Title: Re: What is the PTS private key version bit?
Post by: 5chdn on January 07, 2014, 03:40:24 pm
56 is the version number of the public key... but the private?
Title: Re: What is the PTS private key version bit?
Post by: 5chdn on January 10, 2014, 02:55:05 pm
Bump, anyone?

I'm looking for the ECKey.privateKeyPrefix:

Code: [Select]
ECKey.privateKeyPrefix = 0x80; // BTC mainnet 0x80, BTC testnet 0xEF
Code: [Select]
ECKey.privateKeyPrefix = 0xb0; // LTC mainnet 0xb0
Whats the privateKeyPrefix for PTS mainnet?
Title: Re: What is the PTS private key version bit?
Post by: 5chdn on January 11, 2014, 12:30:53 am
Its 0xb8 (184). Figured out comparing Litecoin version numbers.
Title: Re: What is the PTS private key version bit?
Post by: barwizi on January 11, 2014, 06:42:46 am
Its 0xb8 (184). Figured out comparing Litecoin version numbers.

what you wanna use it for if you dont mind my asking?
Title: Re: What is the PTS private key version bit?
Post by: 5chdn on January 11, 2014, 08:59:39 am
Its 0xb8 (184). Figured out comparing Litecoin version numbers.

what you wanna use it for if you dont mind my asking?

A paperwallet generator.
http://paper.protoshar.es/
https://github.com/donSchoe/ptsaddress
Title: Re: What is the PTS private key version bit?
Post by: barwizi on January 11, 2014, 10:43:06 am
Its 0xb8 (184). Figured out comparing Litecoin version numbers.

what you wanna use it for if you dont mind my asking?

A paperwallet generator.
http://q39.qhor.net/pts/ptsaddress.html
https://github.com/donSchoe/ptsaddress

If you could write that in C++ we would then they to integrate it into the client to allow people to just have a hard copy of their wallets, perfect for cold storage and back up.
Title: Re: What is the PTS private key version bit?
Post by: 5chdn on January 11, 2014, 11:10:39 am
Its 0xb8 (184). Figured out comparing Litecoin version numbers.

what you wanna use it for if you dont mind my asking?

A paperwallet generator.
http://paper.protoshar.es/
https://github.com/donSchoe/ptsaddress

If you could write that in C++ we would then they to integrate it into the client to allow people to just have a hard copy of their wallets, perfect for cold storage and back up.

Just dump private key and send it to your printer. There is not much code to add. :)
Title: Re: What is the PTS private key version bit?
Post by: barwizi on January 11, 2014, 01:39:08 pm
Its 0xb8 (184). Figured out comparing Litecoin version numbers.

what you wanna use it for if you dont mind my asking?

A paperwallet generator.
http://q39.qhor.net/pts/ptsaddress.html
https://github.com/donSchoe/ptsaddress

If you could write that in C++ we would then they to integrate it into the client to allow people to just have a hard copy of their wallets, perfect for cold storage and back up.

Just dump private key and send it to your printer. There is not much code to add. :)

having the option in the GUI allowing splitting the funds into multiple wallets and dumping the collective keys onto seperate sheets sounds nice. anyway i already added coin-control to the source code. I'll work on it in my spare time.