-
Notifications
You must be signed in to change notification settings - Fork 8
/
farmer.go
29 lines (26 loc) · 1.35 KB
/
farmer.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package types
// EventFarmerSubmittedPartial is the event data for `submitted_partial` from the farmer
type EventFarmerSubmittedPartial struct {
LauncherID string `json:"launcher_id"`
PoolURL string `json:"pool_url"`
CurrentDifficulty uint64 `json:"current_difficulty"`
PointsAcknowledgedSinceStart uint64 `json:"points_acknowledged_since_start"`
}
// EventFarmerProof is the farmer event `proof`
type EventFarmerProof struct {
Proof DeclareProofOfSpace `json:"proof"`
PassedFilter bool `json:"passed_filter"`
}
// DeclareProofOfSpace matches to the farmer protocol type
type DeclareProofOfSpace struct {
ChallengeHash string `json:"challenge_hash"`
ChallengeChainSP string `json:"challenge_chain_sp"`
SignagePointIndex uint8 `json:"signage_point_index"`
RewardChainSP string `json:"reward_chain_sp"`
ProofOfSpace ProofOfSpace `json:"proof_of_space"`
ChallengeChainSPSignature G2Element `json:"challenge_chain_sp_signature"`
RewardChainSPSignature G2Element `json:"reward_chain_sp_signature"`
FarmerPuzzleHash string `json:"farmer_puzzle_hash"`
PoolTarget *PoolTarget `json:"pool_target,omitempty"`
PoolSignature *G2Element `json:"pool_signature,omitempty"`
}