예제 #1
0
def main() -> bool:
    pubkeys: List[ECPoint] = [
        ECPoint(
            b'\x03\xcd\xb0g\xd90\xfdZ\xda\xa6\xc6\x85E\x01`D\xaa\xdd\xecd\xba9\xe5H%\x0e\xae\xa5Q\x17.S\\'
        ),
        ECPoint(
            b'\x03l\x841\xccx\xb31w\xa6\x0bK\xcc\x02\xba\xf6\r\x05\xfe\xe5\x03\x8es9\xd3\xa6\x88\xe3\x94\xc2\xcb\xd8C'
        )
    ]
    signatures: List[bytes] = [b'wrongsignature1', b'wrongsignature2']
    return check_multisig(pubkeys, signatures)
def Main():
    CryptoLib.verify_with_ecdsa('unit test',
                                ECPoint(b'0123456789ABCDEFGHIJKLMNOPQRSTUVW'),
                                b'signature', NamedCurve.SECP256K1)
예제 #3
0
def main(public_key: bytes, arg1: Any) -> UInt160:
    return create_standard_account(ECPoint(public_key), arg1)
예제 #4
0
def Main():
    verify_with_ecdsa(False, ECPoint(b'0123456789ABCDEFGHIJKLMNOPQRSTUVW'), b'signature', NamedCurve.SECP256R1)
예제 #5
0
def Main(public_key: ECPoint) -> bytes:
    return public_key.to_script_hash()
예제 #6
0
 def __init__(self):
     self.balance: int = 0
     self.height: int = 0
     self.vote_to: ECPoint = ECPoint(bytes(33))
예제 #7
0
def ecpoint(arg: bytes) -> ECPoint:
    return ECPoint(arg)
def ecpoint(arg: str) -> ECPoint:
    return ECPoint(arg)
예제 #9
0
def ecpoint() -> ECPoint:
    return ECPoint()
예제 #10
0
 def __init__(self):
     self.pubkey: ECPoint = ECPoint(b'')
     self.signature: bytes = b''