Ejemplo n.º 1
0
def Main():
    CryptoLib.verify_with_ecdsa('unit test', 10, b'signature',
                                NamedCurve.SECP256R1)
def Main():
    CryptoLib.verify_with_ecdsa('unit test',
                                ECPoint(b'0123456789ABCDEFGHIJKLMNOPQRSTUVW'),
                                b'signature', NamedCurve.SECP256K1)
Ejemplo n.º 3
0
def Main() -> bytes:
    return CryptoLib.sha256(b'unit test')
Ejemplo n.º 4
0
def Main() -> bytes:
    return CryptoLib.sha256()
Ejemplo n.º 5
0
def Main(test: str) -> bytes:
    return CryptoLib.ripemd160(test)
Ejemplo n.º 6
0
def Main() -> bytes:
    return CryptoLib.sha256('arg', 'arg')
Ejemplo n.º 7
0
def Main(message: Any, pubkey: ECPoint, signature: ByteString,
         curve: NamedCurve) -> bool:
    return CryptoLib.verify_with_ecdsa(message, pubkey, signature, curve)
Ejemplo n.º 8
0
def Main() -> bytes:
    return CryptoLib.ripemd160(True)
Ejemplo n.º 9
0
def Main() -> bytes:
    return CryptoLib.ripemd160(b'unit test')
Ejemplo n.º 10
0
def Main() -> bytes:
    return CryptoLib.ripemd160('arg', 'arg')
Ejemplo n.º 11
0
def Main(test: str) -> bytes:
    return CryptoLib.sha256(test)