mirror of
https://github.com/Chia-Network/chia-blockchain.git
synced 2026-08-28 18:14:19 -05:00
26 lines
526 B
Python
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
|