Skip to content

Commit

Permalink
Add metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Volara committed Oct 7, 2024
1 parent 3715ab4 commit 7937e43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions volara_proof/models/proof_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ class ProofResponse(BaseModel):
quality: float = 0.0
uniqueness: float = 0.0
attributes: Optional[Dict[str, Any]] = {}
metadata: Optional[Dict[str, Any]] = {}
4 changes: 3 additions & 1 deletion volara_proof/proof.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
class Proof:
def __init__(self, config: Dict[str, Any]):
self.config = ProofConfig(**config)
self.proof_response = ProofResponse(dlp_id=config["dlp_id"])
self.proof_response = ProofResponse(
dlp_id=config["dlp_id"], metadata={"dlp_id": config["dlp_id"]}
)

def generate(self) -> ProofResponse:
"""Generate proofs for all input files."""
Expand Down

0 comments on commit 7937e43

Please sign in to comment.