3 releases (1 stable)

1.0.0 Mar 22, 2024
0.1.2 Mar 2, 2024
0.1.1 Feb 15, 2024

#351 in Cryptography

Download history 76/week @ 2024-02-09 50/week @ 2024-02-16 18/week @ 2024-02-23 192/week @ 2024-03-01 25/week @ 2024-03-08 38/week @ 2024-03-15 184/week @ 2024-03-22 27/week @ 2024-03-29 5/week @ 2024-04-05

216 downloads per month
Used in 4 crates

MIT/Apache

635KB
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
~120K SLoC