There must be a .dat
file or something that stores the accounts in the geth client, where is this file located?
As an aside, are Externally Owned Accounts (EOAs) and Contract Accounts actually represented differently?
Update:
In ~/Library/Ethereum/keystore
I found a file called UTC--2017-05-26T21-30-22.367673851Z--ca02951f8bcd593e26f54801a4da85c221f89731
which has been reproduced below:
{
"address":"ca02951f8bcd593e26f54801a4da85c221f89731",
"crypto":{
"cipher":"aes-128-ctr",
"ciphertext":"8e13b86398de9bc1977153c683315d13771d65b38fcb425a99bcc59761071e1f",
"cipherparams":{
"iv":"49227b95cf1fb8c96c749fe1d180b25b"
},
"kdf":"scrypt",
"kdfparams":{
"dklen":32,
"n":262144,
"p":1,
"r":8,
"salt":"6233be72e2478cf7ed4aee675e7862c5d55f23a270cd8c46f66cf37460badca0"
},
"mac":"5243792b391ea7171f23b5378cf77bdcf90f4baa03067ba55d988c6ecb9ee8e5"
},
"id":"6b3fba5f-d3cb-452e-9d73-2b760085be71",
"version":3
}
Would someone please explain to me the significance of this file?
I was under the impression that this would be all the accounts on the entire Ethereum blockchain, but it seems to me that this is perhaps only my own account that was automatically generated when I fired up geth
, is that right?
.ldb
files in the downloaded chain data. There are tools available (in Go, Python, Javascript), but you'd need to know what you were doing.