After reading BIP44, I saw
Purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation.
I believe 0x8000002C is 128 as an integer, how does this equate to 44' however?
I also believe that the ' means that it is a "hardened key", is it hardened because 128 is between 0 and 2^32 - 1 ? Which means that the only key that can derive it, is the private key?
To further elaborate my thinking, which may or may not be right:
These are the levels:
m / purpose' / coin_type' / account' / change / address_index
purpose, coin_type and account, all have to be derived with the private key. They will always be between 0 and 2^32 -1
I have also come to believe that if we have derive a change address with the xpub, then if we derive the same path with xpriv, we can spend from that change address?
For example, if I receive some funds to the change address with path:
m / 44' / 0' / 0' / 0 / 0
Then to spend from this specific address, I would need the private key that corresponds to it. To get it, I would use the xpriv on this path?
m/44'/0'/0'/1/n
.