Closed cchudant closed 2 years ago
For the Signed Responses feature (#13) to be useful, we need a way to export and validate execution proofs.
Here is the proposed API:
response = client.run_model(run_inputs, sign=True) response.save_to_file("./execution_proof.json")
from blindai.client import load_execution_file response = load_execution_file("./proof_of_execution.json") response.validate(policy_file="./policy.toml") # throws if invalid or execution is not signed print("The proof is valid!")
We should also have these functions:
response.export_binary() :: bytes from blindai.client import load_execution_binary response = load_execution_binary(a :: bytes)
save_to_file
For the Signed Responses feature (#13) to be useful, we need a way to export execution proofs.
Signed Responses feature (#13)
Add tests and unit-tests.
None
I want your thoughts on that @JoFrost before assigning it to myself and start working on it
I am not against it. Go for it,
And yes, CBOR is the way to go imo
Currently working on it :)
Description
For the Signed Responses feature (#13) to be useful, we need a way to export and validate execution proofs.
Here is the proposed API:
We should also have these functions:
Unanswered questions
save_to_file
work when sign=False?Motivation and Context
For the Signed Responses feature (#13) to be useful, we need a way to export execution proofs.
Affected Features
Signed Responses feature (#13)
Test Plans
Add tests and unit-tests.
Additional Information
None
Checklist