Author

Topic: Change Address and determanistic? (Read 739 times)

legendary
Activity: 1708
Merit: 1066
October 23, 2013, 06:26:53 AM
#6
if you know C++ reading Java will be pretty straightforward.

:-)
legendary
Activity: 2632
Merit: 1023
October 23, 2013, 04:38:29 AM
#5
1A It is always the second
1B SecureRandom in the Java library is used for the random numbers.

You might be better off getting a copy of the MultiBit code and reading through it for the implementation details - I don't know your programming background but the class names and comments tell most of the story.

ok...so always address number 2 no matter what....

I will read the code, i have coded C++ with open GL (a collision engine...my dream program), and other stuff...but that was years ago so I am sorta rusty

thanks
legendary
Activity: 1708
Merit: 1066
October 22, 2013, 01:48:23 PM
#4
1A It is always the second
1B SecureRandom in the Java library is used for the random numbers.

You might be better off getting a copy of the MultiBit code and reading through it for the implementation details - I don't know your programming background but the class names and comments tell most of the story.
legendary
Activity: 2632
Merit: 1023
October 22, 2013, 10:25:47 AM
#3
Hi Jubalix,

To answer your questions in order:

[1] If there is a single address in the wallet, it is used as the change address. If there are two or more addresses in the wallet the _second_ one is used. (This was added so that when people do a private key import, one of their addresses is used as change).

[2] The unspent transaction outputs are chosen by age so you cannot choose a specific output to use.

[3] - answered in [1]

[4] The change address is not deterministic no. All the private keys in MultiBit are randomly generated.

[5] There is no keypool

[6], [7], [8] What is in all the files and directories is covered in detail in the help here:
https://multibit.org/en/help/v0.5/help_fileDescriptions.html

Thanks for very good answers. Two other thing

[1A] if I have say 5 addresses is the 5 th address used as the change address, so in general terms the 'nth' address is always the change address?

[1B] What is the rand number/gen system for keys?

[1B]
legendary
Activity: 1708
Merit: 1066
October 22, 2013, 03:58:10 AM
#2
Hi Jubalix,

To answer your questions in order:

[1] If there is a single address in the wallet, it is used as the change address. If there are two or more addresses in the wallet the _second_ one is used. (This was added so that when people do a private key import, one of their addresses is used as change).

[2] The unspent transaction outputs are chosen by age so you cannot choose a specific output to use.

[3] - answered in [1]

[4] The change address is not deterministic no. All the private keys in MultiBit are randomly generated.

[5] There is no keypool

[6], [7], [8] What is in all the files and directories is covered in detail in the help here:
https://multibit.org/en/help/v0.5/help_fileDescriptions.html
legendary
Activity: 2632
Merit: 1023
October 21, 2013, 06:45:23 AM
#1
I am seeking a current update or official resource on

[1] the mechanism of the change address and

[2] how to choose which address payment comes from

[3] Which address is the change address

[4] are addresses deterministic, are they planned to be in the future?

[5] is the a key pool (hidden until exported)

[6] what are in the folders
key backup
rolling backup
wallet backup
wallet unec backup

[7] what are in the files .info, .key and . wallet

[8] in relation to [6] and [7] Does this get rewritten after I encrypt, and are the files writen over so the prior version could not be recovered from my HD or do I have to copy these encrypted files to USB and security wipe HD to be sure

Jump to: