This question already has an answer here:
How do I get to the value in the 'scriptPubKey' part of the transaction ? shows a great example of going from address to scriptPubKey.
I'd like to do something similar: go from private key (ECDSA) to address. How do I do that? References to libs or code, as in the above question, would be appreciated.