Closed jannikluhn closed 4 years ago
Damn. We were actually using just x
before this change, but then @AgeManning complained about this being hard to implement with their Rust wrapper around secp256k1. I don't care either way since the y coordinate doesn't add much to the security...
Oh no! Yeah, I figured the more general case was with the y co-ordinate as that was what the C library and subsequent rust library was using.
Alright, I found another library that uses the y || x
format, so I'm happy now.
We seem to use both the
x
andy
component of the curve point created by ECDH:Unfortunately, the crypto library used in Trinity just gives us the
x
component. I assume the same is the case for OpenSSL since the Python library is just a wrapper around it (I haven't confirmed this though). Given this assumption is correct, is there a reason for using bothx
andy
?