Just how to get Bitcoin Addresses in (P2WPKH) format from ripemd160 hash?
You need the public key in order to generate P2PKH or P2WPKH. So if the address is spent from, or signed with,
then you can generate the corresponding P2WPKH.
No public key - no way.