def main() -> bool:

    m = 3

    j2 = sha256('abc')

    j3 = MYSHA

    return j2 == j3
Example #2
0
def main(operation: str, a: Any, b: Any) -> Any:

    if operation == 'omin' and isinstance(a, int) and isinstance(b, int):
        return min(a, b)

    elif operation == 'omax' and isinstance(a, int) and isinstance(b, int):
        return max(a, b)

    elif operation == 'sha256':
        return sha256(a)

    elif operation == 'hash160':
        return hash160(a)

    return 'unknown'
Example #3
0
def Main(test: str) -> bytes:
    return sha256(test)
def Main() -> bytes:
    return sha256('arg', 'arg')
Example #5
0
def get_seed(total_supply: bytes) -> bytes:
    return sha256(get_time + total_supply.to_int())
def Main() -> bytes:
    return sha256()
Example #7
0
def Main() -> bytes:
    return sha256(b'unit test')
from boa3.builtin import public
from boa3.builtin.interop.crypto import sha256

MYSHA = sha256('abc')


@public
def main() -> bool:

    m = 3

    j2 = sha256('abc')

    j3 = MYSHA

    return j2 == j3
Example #9
0
def get_seed(index: int) -> bytes:
    return sha256(get_time + index)