6 releases (stable)

1.2.1 Aug 13, 2024
1.2.0 Aug 9, 2024
1.1.0 May 24, 2024
1.0.0 Mar 22, 2024
0.1.1 Feb 15, 2024

#293 in Cryptography

Download history 4/week @ 2024-05-17 178/week @ 2024-05-24 28/week @ 2024-05-31 17/week @ 2024-06-07 22/week @ 2024-06-14 14/week @ 2024-06-21 6/week @ 2024-06-28 36/week @ 2024-07-05 74/week @ 2024-07-12 51/week @ 2024-07-19 26/week @ 2024-07-26 14/week @ 2024-08-02 257/week @ 2024-08-09 104/week @ 2024-08-16 95/week @ 2024-08-23 36/week @ 2024-08-30

493 downloads per month
Used in 5 crates

MIT/Apache

640KB
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

~10MB
~144K SLoC