* [Bitcoin-development] Compressed public keys
@ 2011-11-21 2:34 Pieter Wuille
2011-11-21 11:48 ` Pieter Wuille
0 siblings, 1 reply; 2+ messages in thread
From: Pieter Wuille @ 2011-11-21 2:34 UTC (permalink / raw)
To: Bitcoin Dev
Hello all,
I just submitted a pull request (#649) that enables the use of compressed
public keys in Bitcoin. As discovered by roconnor (IRC), this is possible
in such a way that old clients verify and relay them without problems.
They are supported by default by OpenSSL, and all alternative
implementations that use OpenSSL should support these keys just fine as
well.
Compressed public keys are 33 bytes long, and contain the same information
as normal 65-byte keys. They only contain the X coordinate of the point,
while the value of the Y-coordinate is reconstructed upon use. This
requires some CPU, but only a fraction of the cost of verifying a
signature.
In theory, one private key now corresponds to two public keys, and thus
two different addresses. As this would probably cause confusion, this
implementation chooses only one of them (at key generation time). All
keys generated when -compressedpubkeys is active, are compressed, and
their reported address is that corresponding to its compressed pubkey.
Things that need attention:
* Do all client implementations support it?
* How to represent secrets for compressed pubkeys?
* send-to-pubkey transactions are untested, for now
--
Pieter
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Bitcoin-development] Compressed public keys
2011-11-21 2:34 [Bitcoin-development] Compressed public keys Pieter Wuille
@ 2011-11-21 11:48 ` Pieter Wuille
0 siblings, 0 replies; 2+ messages in thread
From: Pieter Wuille @ 2011-11-21 11:48 UTC (permalink / raw)
To: Bitcoin Dev
On Mon, Nov 21, 2011 at 03:34:28AM +0100, Pieter Wuille wrote:
> Hello all,
>
> Things that need attention:
> * Do all client implementations support it?
To help in testing this: this address corresponds to a compressed
public key:
http://blockexplorer.com/testnet/address/mwUyUCWRp9WqyNgrGAbghs7KjTL8zjFNKN
--
Pieter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-11-21 11:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-21 2:34 [Bitcoin-development] Compressed public keys Pieter Wuille
2011-11-21 11:48 ` Pieter Wuille
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox