Skip to content

Commit

Permalink
Add more fields to get input response
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zk committed Sep 24, 2024
1 parent 106a111 commit 5cf033d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions fhevm-engine/coprocessor/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ impl coprocessor::fhevm_coprocessor_server::FhevmCoprocessor for CoprocessorServ
};

let mut ct_resp = InputCiphertextResponse {
acl_address: fetch_key_response.acl_contract_address.clone(),
hash_of_ciphertext: hash_of_ciphertext.to_vec(),
input_handles: Vec::with_capacity(corresponding_unpacked.len()),
eip712_signature: Vec::new(),
eip712_contract_address: contract_addresses[idx].to_string(),
Expand Down
12 changes: 7 additions & 5 deletions proto/coprocessor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,13 @@ message InputCiphertextResponseHandle {
}

message InputCiphertextResponse {
repeated InputCiphertextResponseHandle input_handles = 1;
string eip712ContractAddress = 2;
string eip712CallerAddress = 3;
string eip712SignerAddress = 4;
bytes eip712Signature = 5;
string aclAddress = 1;
bytes hashOfCiphertext = 2;
repeated InputCiphertextResponseHandle input_handles = 3;
string eip712ContractAddress = 5;
string eip712CallerAddress = 6;
string eip712SignerAddress = 7;
bytes eip712Signature = 8;
}

message InputUploadResponse {
Expand Down

0 comments on commit 5cf033d

Please sign in to comment.