I launched a private RPC Blockchain network and connected through another computer to this network. The connection is successful. How can I get a private key(through Python) if the file is on another computer on this private network? I can get private key on my computer through this code: P.S. But I can't use it to get private key from another computer in my private network.
from web3 import Web3 web = "My IP and Port" web3 = Web3(Web3.HTTPProvider(web)) import binascii import glob account_1 = "0xAC89Ec2301A5760985c9953ae4f81E607Fe8Ba8d" passw = input() account_2 = "0x2a2034F5a872341e66ba44e8a884e89acA023130" addr = "".join(glob.glob('C:/ether/keystore/*'+account_1.replace('0x', ''))) with open(addr) as keyfile: encrypted_key = keyfile.read() private_key1 = web3.eth.account.decrypt(encrypted_key, passw) private_key = ''.join((str(binascii.b2a_hex(private_key1)).replace("b'",'')).replace("'", '')) print(private_key)