Skip to content

Commit

Permalink
fix: update train_config to dev status
Browse files Browse the repository at this point in the history
  • Loading branch information
migraf committed Mar 7, 2023
1 parent bf0ea4b commit 7e7e2a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions train_lib/security/train_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ class TrainSource(BaseModel):
branch: Optional[str] = None


class BuildSignature(BaseModel):
signature: HexString
rsa_public_key: HexString


class TrainConfig(BaseModel):
source: TrainSource
creator: Creator
Expand All @@ -92,6 +97,7 @@ class TrainConfig(BaseModel):
file_list: List[str]
hash: HexString # e_h
signature: HexString # e_h_sig
build: BuildSignature
result_hash: Optional[HexString] = None # e_d
result_signature: Optional[HexString] = None # e_d_sig

Expand Down

0 comments on commit 7e7e2a5

Please sign in to comment.