Skip to content

Commit

Permalink
Update aggregator hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
wildarch committed Mar 19, 2021
1 parent cc928a3 commit c73a556
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/aggregator/client/android/cpp/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ JNIEXPORT void JNICALL Java_com_google_oak_aggregator_MainActivity_createChannel
// The particular value corresponds to the hash on the `aggregator.wasm` line in
// https://github.com/project-oak/oak/blob/hashes/reproducibility_index.
oak::label::Label label = oak::WebAssemblyModuleHashLabel(
absl::HexStringToBytes("441733ff08c2536c78cd1f1ba46e831c42aa51fab58f7b27dc5bf014b3e52f3b"));
absl::HexStringToBytes("96cc2084cae2fb9be01687ef37a5ec0694610918b57482b35504a96cbc206b9e"));
kChannel = Aggregator::NewStub(oak::ApplicationClient::CreateChannel(
address, oak::ApplicationClient::GetTlsChannelCredentials(ca_cert), label));
JNI_LOG("gRPC channel has been created");
Expand Down
2 changes: 1 addition & 1 deletion examples/aggregator/client/cpp/aggregator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ int main(int argc, char** argv) {
// https://github.com/project-oak/oak/blob/hashes/reproducibility_index.
// TODO(#1674): Add appropriate TLS endpoint tag to the label as well.
oak::label::Label label = oak::WebAssemblyModuleHashLabel(
absl::HexStringToBytes("441733ff08c2536c78cd1f1ba46e831c42aa51fab58f7b27dc5bf014b3e52f3b"));
absl::HexStringToBytes("96cc2084cae2fb9be01687ef37a5ec0694610918b57482b35504a96cbc206b9e"));
// Connect to the Oak Application.
auto stub = Aggregator::NewStub(oak::ApplicationClient::CreateChannel(
address, oak::ApplicationClient::GetTlsChannelCredentials(ca_cert), label));
Expand Down
2 changes: 1 addition & 1 deletion examples/aggregator/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
grpc_server_listen_address = "[::]:8080"
backend_server_address = "https://localhost:8888"
aggregator_module_hash = "441733ff08c2536c78cd1f1ba46e831c42aa51fab58f7b27dc5bf014b3e52f3b"
aggregator_module_hash = "96cc2084cae2fb9be01687ef37a5ec0694610918b57482b35504a96cbc206b9e"

0 comments on commit c73a556

Please sign in to comment.