Open ababkin opened 5 years ago
I plan to also add a roundtrip test for serialization a bit later to this PR.
I'm trying to fix the earlier GHC ver travis builds for this PR but I get lost in the huge number of warnings. Is there a trick to filter out the real error messages from this? https://travis-ci.org/vincenthz/hs-certificate/jobs/497913242
this introduces
serializePoint
function as the opposite ofdeserializePoint
. This is useful when converting public/private keys from cryptonitePublicKey
into X509PubKey
.example:
As a result of adding this, I've also cleaned related things and used
Either
for more informative errors at various places.