Sjors / bitcoin

Bitcoin Core integration/staging tree
https://bitcoin.org/en/download
MIT License
9 stars 11 forks source link

Stratum v2 handshake using EllSwift #28

Closed Sjors closed 9 months ago

Sjors commented 10 months ago

Implements https://github.com/stratum-mining/sv2-spec/pull/66.

Matching SRI pull request: https://github.com/stratum-mining/stratum/pull/737

This changes the handshake in two ways:

  1. Public keys are encoded as EllSwift: 64 instead of 32 bytes
  2. ECDH is done via ellswift_ecdh_xonly

Both are defined in BIP324

It does not change (x-only) public encoding in the certificate.

The main implementation is in commit "Use EllSwift for handshake pubkeys and ECDH". The two revert commits allow dropping their corresponding commits in https://github.com/bitcoin/bitcoin/pull/28983

Sjors commented 9 months ago

This is now included in https://github.com/Sjors/bitcoin/tree/2024/02/sv2-poll-ellswift