Files
chia-blockchain/chia/protocols/solver_protocol.py
2025-11-10 17:02:10 -07:00

26 lines
526 B
Python

from __future__ import annotations
from dataclasses import dataclass
from chia_rs import PartialProof
from chia_rs.sized_bytes import bytes32
from chia_rs.sized_ints import uint8
from chia.util.streamable import Streamable, streamable
@streamable
@dataclass(frozen=True)
class SolverInfo(Streamable):
partial_proof: PartialProof
plot_id: bytes32
strength: uint8
size: uint8 # k-size
@streamable
@dataclass(frozen=True)
class SolverResponse(Streamable):
partial_proof: PartialProof
proof: bytes