Skip to content

Commit

Permalink
add witness object
Browse files Browse the repository at this point in the history
Signed-off-by: PatStLouis <[email protected]>
  • Loading branch information
PatStLouis committed Oct 21, 2024
1 parent d07b30a commit e431fd7
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion server/app/models/did_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,23 @@ def model_dump(self, **kwargs) -> Dict[str, Any]:
return super().model_dump(by_alias=True, exclude_none=True, **kwargs)


class Witness(BaseModel):
id: str = Field(None)
weight: int = Field(None)


class WitnessParam(BaseModel):
threshold: int = Field(None)
selfWeight: int = Field(None)
witnesses: List[Witness] = Field(None)


class LogParameters(BaseModel):
prerotation: bool = Field(None)
portable: bool = Field(None)
updateKeys: List[str] = Field(None)
nextKeyHashes: List[str] = Field(None)
witness: List[str] = Field(None)
witness: WitnessParam = Field(None)
deactivated: bool = Field(None)
ttl: bool = Field(None)
method: str = Field(None)
Expand Down

0 comments on commit e431fd7

Please sign in to comment.