ed25519-dalek icon indicating copy to clipboard operation
ed25519-dalek copied to clipboard

PublicKey should derive Hash

Open inetic opened this issue 3 years ago • 2 comments

Re-opening the issue #120 as it hasn't been solved yet.

The original author @dvc94ch seems to open and close issues because it fits his workflow.

The original text:

@dvc94ch wrote

Unless there's a cryptographic reason why it should not derive Hash, it would be a good idea.

@burdges wrote

It should define Hash with .0.as_bytes() not #[derive(Hash)] since the serialized form already exists, and because points in protective coordinates require normalization. Aside from the obvious reasons: Projective Coordinates Leak

There is currently a PR for this https://github.com/dalek-cryptography/ed25519-dalek/pull/176. Likely motivated by @burdges' comment here. The CI on that PR is currently failing, but it doesn't seem like the failure is caused by the PR changes.

Could someone please re-run the CI?

inetic avatar Nov 30 '21 12:11 inetic

looks like I may have closed it accidentally

dvc94ch avatar Nov 30 '21 12:11 dvc94ch

wondering about this as well

mimoo avatar Jun 12 '22 00:06 mimoo

Resolved in https://github.com/dalek-cryptography/ed25519-dalek/pull/265

rozbb avatar Jan 20 '23 08:01 rozbb