8 releases (stable)

1.2.3 Jan 8, 2025
1.2.2 Jan 7, 2025
1.2.1 Aug 13, 2024
1.1.0 May 24, 2024
0.1.1 Feb 15, 2024

#8 in #stratum

Download history 27/week @ 2024-10-29 16/week @ 2024-11-05 13/week @ 2024-11-12 18/week @ 2024-11-19 24/week @ 2024-11-26 23/week @ 2024-12-03 90/week @ 2024-12-10 13/week @ 2024-12-17 4/week @ 2024-12-24 292/week @ 2025-01-07 33/week @ 2025-01-14 25/week @ 2025-01-21 813/week @ 2025-01-28 1198/week @ 2025-02-04 948/week @ 2025-02-11

2,987 downloads per month
Used in 6 crates

MIT/Apache

665KB
11K SLoC

Provides all relevant types, traits and functions to implement a valid SV2 role.

  • For channel and job management, see channel_logic, which utilizes job_creator and job_dispatcher
  • For message handling, the traits in handlers should be implemented
  • For basic traits every implementation should use, see common_properties
  • Routers in routing_logic are used by the traits in handlers to decide which downstream/upstream to relay/send by using selectors
  • For serializing/deserializing messages, see parsers
  • see utils for helpers such as safe locking, target and merkle root calculations
 MiningDevice:
     common_properties::IsUpstream +
     common_properties::IsMiningUpstream +
     handlers::common::ParseUpstreamCommonMessages +
     handlers::mining::ParseUpstreamMiningMessages +

 Pool:
     common_properties::IsDownstream +
     common_properties::IsMiningDownstream +
     handlers::common::ParseDownstreamCommonMessages +
     handlers::mining::ParseDownstreamMiningMessages +

 ProxyDownstreamConnetion:
     common_properties::IsDownstream +
     common_properties::IsMiningDownstream +
     handlers::common::ParseDownstreamCommonMessages +
     handlers::mining::ParseDownstreamMiningMessages +

 ProxyUpstreamConnetion:
     common_properties::IsUpstream +
     common_properties::IsMiningUpstream +
     handlers::common::ParseUpstreamCommonMessages +
     handlers::mining::ParseUpstreamMiningMessages +

Dependencies

~9MB
~121K SLoC