Ethereum hierarchical any arbitrary any system of replacing deep keys (HA-DPKG) with Electrum understanding
As the main walckchain wallet Ethereum, Electrum gives users a safe way to store and control their private keys. One of the main features that distinguishes electric from other wallets is its hierarchical arbitrary deep key exchange system (HA-DPKG), which generates a unique pair of public and private seed keys that allows consumers to create multiple addresses in the block chain. In this article, we dive into how Electrum generates a few seed keys and examine the internal HA-DPKG operation.
Generation of pairs of keys from Seed
To generate a few keys with Electrum, you must provide it with the initial part, which is a 12 -word phrase that is used as the first part of your public and private key. The seed is used as a password or secret phrase that controls access to your Ethereum account. When you create an electric wallet, Electrum asks for your original information in a particular format:
`
M/0 ‘/0/m/0’/1 *2^20 ‘/0/m/0’/12
`
In this example, the first part “/m/0” refers to the initial data (bytes combination) and m/0 indicates the second byte. The rest of the line is in a certain format:
`
M/0 ‘/n1 *2^n/m/n
`
*2^n indicates that it is an index 2, increased to “N”. For example, if you provide an original item, such as g4pbqx8hj9frtvlqyl3VDF with n = 1, Electrum will generate a few keys as follows:
`
M/0 ‘/0/m/0’/1 *2^20 ‘/0/m/0’/12
`
The resulting public pair of keys consists of 36 bytes.
generating a hierarchical address
When you generate a few of your keys, Electrum is used to create an address hierarchy that can be used for Ethereum operations. For this purpose, Electrum takes each byte of seeds and attributes it to a certain task in creating a hierarchical address (HA). Tasks are:
- “M/0”: These are the initial seed data.
- N1: The second byte is attributed to N1.
2^n: Each subsequent byte is credited with” N1 “and N1 is one more than the previous value.
By using this hierarchical method, electricity generates the HA address sequence from your key pair. For example::
`
0x00 01 02 03 … (m/0)
*2^20’00 = 001010101010
*2^21’00 = 011110111100
*2^22’00 = 000101101000
*2^23’00 = 1000000000000
1x … (N1, N1+1, …)
Address 0: 0x01 02 03 *2^20 ‘
Address 1: 0x11 12 13 *2^21 ‘
…
`
These HA addresses can be used for various purposes in the Ethereum network, for example to create a cash address or generate the address of the contract.
Conclusion
In short, electricity to generate keys to generation allows consumers to create multiple addresses in the Ethereum block circuit. Understanding how Electrum generates these couples and hierarchically pulls addresses, you can better understand the HA-DPKG internal operation and improve the overall experience with this popular wallet.
Leave a Reply