Thursday, December 26, 2024

How does a HD pockets work in follow?

Nonetheless, if grandchild key pair 1 accommodates 1 BTC, and grandchild key pair 2 accommodates 2 BTC, may I ship the three BTC complete as a single transaction?

Sure, however not in the best way you describe it.

Bitcoin, on the protocol degree, doesn’t “belong” to a key. That’s, there isn’t a steadiness per tackle or per key as an idea.

As an alternative, consider them as cash. Each time you receives a commission, you obtain a separate new “coin”. Every coin has somewhat program (the locking script) that determines who’s allowed to spend it. In follow, your cash are ones with a locking script that requires a signature with a key you’ve.

The protocol permits creating transactions that spend a number of cash without delay. It doesn’t matter whether or not these cash all have the identical tackle, or totally different addresses derived from the identical grasp key, or even when they’ve utterly unrelated addresses fully. They’re simply a number of cash, and every coin individually requires a signature.

the truth is, nothing prevents a number of folks from establishing a single transaction that spends a number of cash owned by totally different folks in the identical transaction. That is known as a CoinJoin transaction.

If that’s the case, would this seem on-chain to go away from the kid key pair tackle from which each are derived?

All HD wallets do is change the best way a person pockets derive their keys. Different nodes or events on the community have no idea or care the keys are constructed in a associated means. So long as they have no idea the grasp public key, your keys are indistinguishable from random keys. The one factor seen on chain is that the transaction spent cash that have been beforehand despatched to distinct addresses, however that is the case for nearly all transactions on the community.

If the grasp personal key was in chilly storage, however one of many youngster personal keys was not, may the pockets be outlined as a chilly pockets?

This isn’t potential with non-hardened keys. Given a baby personal key and the grasp public key, you may compute the grasp personal key, and from that, all different youngster personal keys.

Thus, you state of affairs is equal to the non-cold system gaining access to all personal keys, and the entire setup may be very a lot not chilly.

With hardened keys, understanding the kid personal key doesn’t reveal the grasp personal key, however you lose the benefit of with the ability to compute youngster public keys with out entry to the grasp personal key.

in both case, I’d not name this a chilly setup. I’d reserve that time period for setups the place no cash are ever on a web based system.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles