def btc_is_p2wpkh_address( address ):
    """
    Is the given address a p2wpkh address?
    """
    wver, whash = segwit_addr_decode(address)
    if whash is None:
        return False

    if len(whash) != 20:
        return False

    return True
def btc_is_p2wpkh_address ( address ) : wver , whash = segwit_addr_decode ( address ) if whash is None : return False if len ( whash ) != 20 : return False return True
Is the given address a p2wpkh address?