I generate a code to create wallets for a private chain made with ethereum.
String password = unlockAccountParameter.getPass();
ECKeyPair keyPair = Keys.createEcKeyPair();
WalletFile wallet = Wallet.createStandard(password, keyPair);
System.out.println("Private key: " + keyPair.getPrivateKey().toString(16));
System.out.println("Account: " + wallet.getAddress());
String fileName = WalletUtils.generateNewWalletFile(unlockAccountParameter.getPass(), new File("C:\\Users\\emendez\\Wallet"), true);
System.out.println("File name: " + fileName);
Thats return me this output:
Priate key: 67f7a218d5d595dff19cafca9384b5a6e0693bc085d7c16468b8a8a44e20135a Account: bf29892787a79bb66188f9c44ca9ffd9ccff37aa
File name: UTC--2018-11-15T12-26-51.672000000Z--252209a58e16be3c43776e38ff4bfaeb70660cfb.json
The JSON file is in the path that write in code (in the real machine). But when I go to the geth console for list the account that are created in the node (virtualmachine) the account that I just created does not appear.
So i think that i cant make transaction between them.
Any help??