Re: ECPoint compressed state and 1.64

Peter Dettman <[email protected]> Tue, 22 Oct 2019 11:24:00 +0700
Newsgroups gmane.comp.encryption.bouncy-castle.devel
Message-ID <[email protected]>
Hi Andreas,
Could you explain what the immediate issues are with upgrading? It
sounds like there might be a misunderstanding about what changed.

The fundamental change was the removal of a (long deprecated) mechanism
where an ECPoint would remember whether it was decoded from a compressed
point encoding, and then default to that same format when
ECPoint.getEncoded() was called.

We still support decoding end encoding of both compressed and
uncompressed points, however when encoding the caller must indicate
whether they want a compressed point encoding using the argument to
ECPoint.getEncoded(boolean).

Regards,
Pete Dettman


On 21/10/19 7:15 pm, Andreas Schildbach wrote:
> I understand that we should only use compressed pubkeys. However in
> reality lots of uncompressed pubkeys are out in the wild and we still
> need to interoperate with them. In the case of Bitcoin, they're frozen
> into the blockchain. What's the recommended migration path for apps that
> still need to deal with uncompressed keys?
> 
>