Hi Roleg,
I'm trying develop same function to get vin address from public key by using c++, while coding i tried pub key mentioned above in this post and generated sha256 but i'm getting different output.
(output: 36bdb67e9a379df3e208ab87941d7320aabde7204f6eb4a1b31660804f958c15). I have used openssl/sha.h for sha256. It would be great, if you could tell me how you got that sha256 value from pubkey this pubkey (022e2531ee7a16dbaf83e3554334bb6adea93af0fb2f221cb17b9ffbb587e6bb7f).