Java compact representation of ECC PublicKey
问题 java.security.PublicKey#getEncoded() returns X509 representation of key which in case of ECC adds a lot of overhead compared to raw ECC values. I'd like to be able to convert PublicKey to byte array (and vice versa) in most compact representation (i.e. as small byte chunk as possible). KeyType (ECC) and concrete curve type are known in advance so information about them do not need to be encoded. Solution can use Java API, BouncyCastle or any other custom code/library (as long as license does