Author

Topic: How does Electrum change addresses are generated? (Read 1394 times)

hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
Does change addresses are generated using special index numbers outside of gap limit?

They need to be able to be deterministically restored eventually?

there is another gap limit for change addresses, fixed to 3. it is not modifiable by the user.
It's a different sequence too. I know you know that but I'm just making it clear. They cannot overlap at all. Well, except by a hash collision but that is extremely unlikely.

I was wondering about indexes of these though, just to test the script.
I working on a Wordpress plugin to fully utilize BTC addresses generation from mpk right now...
Addresses are generated from hashing a string based on the MPK. The normal and change addresses use a different string base. Specifically,

Public key = Master_public_key + Hash( "index:chg:mpk" ) * gen point

where chg is either 1 for change or 0 for normal.


member
Activity: 73
Merit: 10
Does change addresses are generated using special index numbers outside of gap limit?

They need to be able to be deterministically restored eventually?

there is another gap limit for change addresses, fixed to 3. it is not modifiable by the user.
It's a different sequence too. I know you know that but I'm just making it clear. They cannot overlap at all. Well, except by a hash collision but that is extremely unlikely.

I was wondering about indexes of these though, just to test the script.
I working on a Wordpress plugin to fully utilize BTC addresses generation from mpk right now...
hero member
Activity: 784
Merit: 1009
firstbits:1MinerQ
Does change addresses are generated using special index numbers outside of gap limit?

They need to be able to be deterministically restored eventually?

there is another gap limit for change addresses, fixed to 3. it is not modifiable by the user.
It's a different sequence too. I know you know that but I'm just making it clear. They cannot overlap at all. Well, except by a hash collision but that is extremely unlikely.
legendary
Activity: 1896
Merit: 1353
Does change addresses are generated using special index numbers outside of gap limit?

They need to be able to be deterministically restored eventually?

there is another gap limit for change addresses, fixed to 3. it is not modifiable by the user.
member
Activity: 73
Merit: 10
Does change addresses are generated using special index numbers outside of gap limit?

They need to be able to be deterministically restored eventually?
Jump to: