[200BTSX] tool to convert bitcoin public key into BTSX/PTS address

Started by xeroc, August 24, 2014, 06:25:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

xeroc

I offer 200 BTSX to the best solution for the following task.

Given: a bitcoin public key (in hexadecimal char vector)

Input:
- from command line argument: public key for a bitcoin address in hexformat

Ouput:
- the BTSX address that can be accessed if you own the private key to the input private key
- the PTS address that can be accessed by the same private key

Hint .. go over to the BitShares Toolkit sources .. in the programs/utils folder there are tools that
can be expended to achieve this task. I tried figuring it out myself but just failed :(

Ah, yha, please post the documented source code (probably less than 50 lines of code)