Пример #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''