Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: libbitcoinsv2 with bindings #62

Closed
wants to merge 8 commits into from

Conversation

Sjors
Copy link
Owner

@Sjors Sjors commented Sep 13, 2024

Based on bitcoin#29346 and bitcoin#30315

TODO: expose libbitcoinsv2 as C header API for use in external applications

This can probably borrow from bitcoin#30595

The goal is that you can do something like:

cmake -B build -DBUILD_SV2_LIB=ON

And then end up with just a libbitcoinsv2 library for use in some other project. Specific projects I have in mind:

  1. ESP Miner (e.g. BitAxe): currently written in C, though ESP-IDF supports c++ too: Adding Support for StratumV2 Protocol skot/ESP-Miner#168
  2. SRI or other Rust project: a Template Provider could be implemented that communicates with Bitcoin Core via IPC (as with Stratum v2 Template Provider via IPC interface (multiprocess) #48), and that can take advantage of Bitcoin Core's Transport subclass, its (proposed) c++ implementation of Noise, etc.

@Sjors Sjors force-pushed the 2024/06/sv2_transport branch from 512289a to 8220337 Compare September 19, 2024 14:26
Sjors and others added 5 commits September 19, 2024 16:36
Co-Authored-By: Christopher Coverdale <[email protected]>
This commit adds the simplest stratum v2 message. The remaining messages are introduced in later commits.

Co-Authored-By: Christopher Coverdale <[email protected]>
This allows us to subclass Transport.
Implemented starting from a copy of V2Transport and the V2TransportTester,
modifying it to fit Stratum v2 and Noise Protocol requirements.

Co-Authored-By: Christopher Coverdale <[email protected]>
Co-Authored-By: Fi3
@Sjors Sjors force-pushed the 2024/06/sv2_transport branch from 8220337 to 5fca2c5 Compare September 19, 2024 14:40
Standalone library with Stratum v2 functionality.

TODO: ?
@Sjors Sjors changed the title WIP: libbitcoinsv2 WIP: libbitcoinsv2 with bindings Sep 19, 2024
@Sjors Sjors force-pushed the 2024/06/sv2_transport branch 3 times, most recently from 4c680d6 to e28078f Compare September 20, 2024 16:21
@Sjors Sjors force-pushed the 2024/06/sv2_transport branch from e28078f to 62b255c Compare October 4, 2024 12:06
@Sjors Sjors closed this Nov 14, 2024
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.

2 participants