ZenGo-X / curv

Rust language general purpose elliptic curve cryptography.
MIT License
264 stars 111 forks source link

secp point to bytes fixed 65bytes #73

Closed omershlo closed 4 years ago

omershlo commented 4 years ago

This fix is making sure that a call to pk_to_key_slice for secp256k1 curve will always return 65 bytes in the format 0x04 + 32 bytes x + 32 bytes y. Prior to the fix if x coordinate was with zero MSByte the result would have been 64 bytes of wrong point

gbenattar commented 4 years ago

Can you please update the description in the PR?

omershlo commented 4 years ago

yes, done.