def scripthash_to_p2sh(hash, main=False):
    assert (len(hash) == 20)
    version = (28 if main else 88)
    return byte_to_base58(hash, version)
def scripthash_to_p2sh(hash, main=False):
    assert (len(hash) == 20)
    version = (28 if main else 88)
    return byte_to_base58(hash, version)