Encode a string using Base58 with a 4 character checksum

def b58encode_check(v):
    """Encode a string using Base58 with a 4 character checksum"""

    digest = sha256(sha256(v).digest()).digest()
    return b58encode(v + digest[:4])