How come a private key isn't created when creating a wallet from the command line?
A private key is created along with address.
Only a view key is created when creating a wallet from the CLI Bitcediwallet. The GUI wallet does however create a private key.
This is all that is created from the command line when creating a new wallet:
bitcedi wallet v0.1.0.cedi0001()
Nor 'generate-new-wallet' neither 'wallet-file' argument was specified.
What do you want to do?
[O]pen existing wallet, [G]enerate new wallet file or [E]xit.
g
Specify wallet file name (e.g., wallet.bin).
Wallet file name: viewkey.wallet
password: ***********
Generated new wallet: cxqAC2RcJvZBLu6vd1UAFXPt6pN7rKcHCAMXxrNwyWd9dddmmt4UNLk4fvsWb4SLqnJDqjsxJyzXb5WPm5oJB3Zu31KKmCpBi
view key: 4361848f836445a44c65457a00d4ace313797fdd948420338e7e13210d828f07
**********************************************************************
Your wallet has been generated.
Use "help" command to see the list of available commands.
Always use "exit" command when closing simplewallet to save
current session's state. Otherwise, you will possibly need to synchronize
your wallet again. Your wallet key is NOT under risk anyway.
**********************************************************************
Height 781 of 781
[wallet cxqAC2]:
The viewkey.wallet.address file that is created along with the viewkey.wallet file contains only the wallet address. The private key is a much longer string than the view key.
Also, when creating a new wallet in the GUI a view key is not created. Just a private key.
The example above is an empty wallet created merely for example purposes.