code: def btc_make_p2wpkh_address( pubkey_hex ):
      
      pubkey_hex = keylib.key_formatting.compress(pubkey_hex)
      hash160_bin = hashing.bin_hash160(pubkey_hex.decode('hex'))
      return segwit_addr_encode(hash160_bin)
docs: Make a p2wpkh address from a hex pubkey