Author Topic: [200BTSX] tool to convert bitcoin public key into BTSX/PTS address  (Read 6099 times)

0 Members and 1 Guest are viewing this topic.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: 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)