Detected 1 occurrence(s) of ‘(api|private)[-_]key[ “‘]*=[ =”‘]*\w+': ates contract c = s.abi_contract(code, language='solidity') # s2 deposits 1000 c.deposit(sender=keys[1], value=1000) # s1 signs transaction to agree on payout of 1000 amount = 1000 # the agreed amount private_key = encode_hex(keys[0]) # of s1 amount_hash = sha256(decode_hex(format(amount, 'x').zfill(64))) # hash of the agreed amount v, r, s […]
↧