def bech32_encode(hrp, data):
    """Compute a Bech32 string given HRP and data values."""
    combined = data + bech32_create_checksum(hrp, data)
    return hrp + '1' + ''.join([CHARSET[d] for d in combined])
def bech32_encode ( hrp , data ) : combined = data + bech32_create_checksum ( hrp , data ) return hrp + '1' + '' . join ( [ CHARSET [ d ] for d in combined ] )
Compute a Bech32 string given HRP and data values.