taker.models
taker.models
Taker data models for CoinJoin protocol state management.
Contains the state enum, session data, and phase result types used throughout the CoinJoin protocol execution.
Classes
MakerSession
Session data for a single maker.
Source code in taker/src/taker/models.py
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | |
Attributes
auth_pubkey: str = ''
class-attribute
instance-attribute
change_address: str = ''
class-attribute
instance-attribute
cj_address: str = ''
class-attribute
instance-attribute
comm_channel: str = ''
class-attribute
instance-attribute
crypto: CryptoSession | None = None
class-attribute
instance-attribute
nick: str
instance-attribute
offer: Offer
instance-attribute
pubkey: str = ''
class-attribute
instance-attribute
responded_auth: bool = False
class-attribute
instance-attribute
responded_fill: bool = False
class-attribute
instance-attribute
responded_sig: bool = False
class-attribute
instance-attribute
signature: dict[str, Any] | None = None
class-attribute
instance-attribute
supports_neutrino_compat: bool = False
class-attribute
instance-attribute
utxos: list[dict[str, Any]] = Field(default_factory=list)
class-attribute
instance-attribute
PhaseResult
Result from a CoinJoin phase with failed maker tracking.
Used to communicate phase outcomes and enable maker replacement logic.
Source code in taker/src/taker/models.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | |
Attributes
blacklist_error: bool = False
class-attribute
instance-attribute
failed_makers: list[str] = Field(default_factory=list)
class-attribute
instance-attribute
needs_replacement: bool
property
True if phase failed due to non-responsive makers (not other errors).
success: bool
instance-attribute
TakerState
Bases: StrEnum
Taker protocol states.
Source code in taker/src/taker/models.py
19 20 21 22 23 24 25 26 27 28 29 30 31 32 | |