Expand description
§Job Declaration Protocol
job_declaration_sv2
is a Rust crate that implements a set of messages defined in the Job
Declaration Protocol of Stratum V2. This protocol runs between the Job Declarator Server
(JDS) and Job Declarator Client (JDC).
§Build Options
This crate can be built with the following features:
std
: Enables support for standard library features.with_serde
: Enables support for serialization and de-serialization using Serde.
Note that with_serde
feature flag is only used for the Message Generator, and deprecated for
any other kind of usage. It will likely be fully deprecated in the future.
For further information about the messages, please refer to Stratum V2 documentation - Job Declaration.
Structs§
- Message used by JDC to request an identifier for a future mining job from JDS.
- Message used by JDS to accept
AllocateMiningJobToken
message. - Message used by JDC to proposes a selected set of transactions to JDS they wish to mine on.
- Messaged used by JDS to reject
DeclareMiningJob
message. - Messaged used by JDS to accept
DeclareMiningJob
message. - Message used by JDS as a response to a
crate::DeclareMiningJob
message indicating it detected a collision in thecrate::DeclareMiningJob::tx_short_hash_list
, or was unable to reconstruct thecrate::DeclareMiningJob::tx_hash_list_hash
. - Messaged used by JDC to accept
IdentifyTransactions
message and provide the full set of transaction data hashes. - Message used by the JDS to ask for transactions that it did not recognize from
crate::DeclareMiningJob
message. - Message used by JDC to accept
ProvideMissingTransactions
message and provide the full list of transactions in the order they were requested byProvideMissingTransactions
. - Message used by JDC to submit a solution to JDS as soon as it finds a new valid block.