def _hash_op(stack, func):

    # not enough arguments
    if len(stack) < 1: return False

    # hash and push
    value = func(stack.pop().vector)
    stack.append(ByteVector(value))

    return True
Replaces the top of the stack with the result of the callable func.
dataset/ETHPy150Open ricmoo/pycoind/pycoind/script/script.py/_hash_op