Skip to content

Conversation

@jirijakes
Copy link
Contributor

Unless there is some safety concern I cannot see, having Scalar implementing Hash would be useful.

Copy link
Collaborator

@Kixunil Kixunil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK f87dc91

@Kixunil
Copy link
Collaborator

Kixunil commented Jan 18, 2024

It has the same security issue as comparison traits which is documented, so this is OK.

@apoelstra
Copy link
Member

I don't think we need to worry about constant-timeness with Hash. Hash functions are typically straight-line code where every operation after the first round is applied to statistically-random data.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK f87dc91

@apoelstra apoelstra merged commit f96fcd8 into rust-bitcoin:master Jan 18, 2024
@Kixunil
Copy link
Collaborator

Kixunil commented Jan 18, 2024

@apoelstra this is the non-cryptographic one so I wouldn't bet on it. But again, there's a warning.

chain-forgexcr45 added a commit to chain-forgexcr45/rust-secp256k1 that referenced this pull request Sep 28, 2025
f87dc911516219641baa604879cfb6016fb35b3c Derive Hash for Scalar (Jiri Jakes)

Pull request description:

  Unless there is some safety concern I cannot see, having Scalar implementing Hash would be useful.

ACKs for top commit:
  Kixunil:
    ACK f87dc911516219641baa604879cfb6016fb35b3c
  apoelstra:
    ACK f87dc911516219641baa604879cfb6016fb35b3c

Tree-SHA512: 276670a3d938fade3828123547b01e38b1a3c56775fb3c545d2c392622de808cf2bf8125925c7896ee27bacd5897d88908384d8c157dc8ec7d605781475964fd
william2332-limf added a commit to william2332-limf/rust-secp256k1 that referenced this pull request Oct 2, 2025
f87dc911516219641baa604879cfb6016fb35b3c Derive Hash for Scalar (Jiri Jakes)

Pull request description:

  Unless there is some safety concern I cannot see, having Scalar implementing Hash would be useful.

ACKs for top commit:
  Kixunil:
    ACK f87dc911516219641baa604879cfb6016fb35b3c
  apoelstra:
    ACK f87dc911516219641baa604879cfb6016fb35b3c

Tree-SHA512: 276670a3d938fade3828123547b01e38b1a3c56775fb3c545d2c392622de808cf2bf8125925c7896ee27bacd5897d88908384d8c157dc8ec7d605781475964fd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants