Reputation: 17
Is there some library / easy way to calculate the bitcoin address for a given publickey?
Can this be done by bitcoind (running in the background already)?
For example:
Pubkey (HEX): 02ee635c93f16db010ade0e1524bfc8585cea90df9cd1b1954f059b6f73be97ccb
Address: 1FMtwerNkho7MB52UXXP7VSn1VsiJHagY4
Library I found (but it seems like pubkey -> address is not supported by this lib):
https://github.com/Bit-Wasp/bitcoin-php
Upvotes: 0
Views: 564
Reputation: 1
This library has that you want:
PublicKeyFactory::fromHex($data) - Parses PublicKeyInterface from hex string or Buffer
Upvotes: -1