Ethereum: how can be extended public keys generate child public keys without generating the Child Private Key in HD Wallets?
In ethereum, extend However, one common misconception is that Epks can generate child public Keys without generating the corresponding child private key in HD wallets. In this article,
What are Extended Public Keys (Epks)?
In Ethereum, a private key is represented as an extended public key, which consists of several layers:
1.
2.
3.
How to create Child Public Keys with Epks
Public and middle layers (the base58-incoded public key) with the rightmost layer (the signature). This process is known as “Hashing” the private key.
Using a tool like Bitcoin Core or Ethereum Explorer, you can haveh your private key to Generate a Child Public Key. The resulting child public key should be in hexadecimal format and look something like this:
`
0x … (Base58-EDCODED PUBLIC KEY)
+ —–+ | (Middle Layer)
| Signature
+—–++———————–+
| (Signature)
+———————–+
`
Can Epks Generate Child Public Keys Without Generating The Corresponding Child Private Key?
Yes, it is possible to create Child Public Keys without generating the Corresponding Child Private Key. However, this process is not as straightforward and requires additional steps.
There are a few Approaches to achieve this:
- Using the “sign” method
: The resulting cs can then be used to create a child public key.
- Using the “derive” method :
Example Use Case
Here’s an example of how to use an epk to create a child public key using Bitcoin Core:
`
- Create a new HD Wallet with Epks enabled.
2.
3.
4.
Conclusion
Public Key Using Public Keys (Epks), However, for experiences who need more control over their private key
Recommended Tools and Libraries
Looking to implement Epk-Based Child Key Generation in their own projects, the following tools and libraries may be useful:
- Bitcoin Core: A popular Ethereum Wallet that supports epks.
.
- Ethtool: A python library for working with Ethereum smart contracts and wallets that provide support for EPK-based child generation.
Leave a Reply