So I was dicking around with the source code
to try to visualize what some of the data created in generate_keys function looks like when running
./simplewallet, and I get this for the supposed SECRET_KEY:
(sorry the output is garbled, not sure why other than the wout function I'm using is looking for a \n character)
There appears to be 3 different times when
generate_keys (insrc/crypto/crypto.cpp) gets called while running ./simplewallet
Yes at the end of outputting each index of "sec" there is a "endl" for new line. Not sure why the output is all jacked up.Any input or tips would be helpful. (I'm finding that there are a ton of programming concepts I'm having to revisit while reading the source

)
Round #1 after running simplewallet (create secret_spend_key?)
"sec" is initialized as "" empty

Round #2 after running simple wallet (create view_key?)

Round #3 after running simple wallet (not sure why it gets run a 3rd time???)

Here is the code I was adding output statements to (I used wcout instead of cout as I was getting even more garbage characters with cout):
secret_key crypto_ops::generate_keys(public_key &pub, secret_key &sec, const secret_key& recovery_key, bool recover) {
lock_guard<mutex> lock(random_lock);
ge_p3 point;
secret_key rng;
//output sec #1
if (recover)
{
rng = recovery_key;
}
else
{
random_scalar(rng);
}
sec = rng;
//output sec #2
sc_reduce32(&sec);
//output sec #3
ge_scalarmult_base(&point, &sec);
//output sec #4
ge_p3_tobytes(&pub, &point);
return rng;
}