Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions ORAM_SNAPSHOT/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
This is an enhanced implementation of Path ORAM.

To run local Redis server: ./start_redis_serve.sh

To run the tests: ./run_test_suite.sh

To run main: ./makerun.sh


## How to do snapshot:
In generate_db_snapshot.go, change

const (
logCapacity = 10 // Logarithm base 2 of capacity (1024 buckets)
Z = 4 // Number of blocks per bucket
stashSize = 20 // Maximum number of blocks in stash
)

Make sure to place the tracefile and define the path in `ORAM_SNAPSHOT/pathOram/tests/generate_db_snapshot.go`

The generated snapshot in : dump.rdb and proxy_snapshot.json in the root of this directory

## How to use snapshot:
Set correct value for arguments logCapacity, Z, stashSize, set the -snapshot flag, tracefile path.

- Make sure that the generate rdb and executor oram code use the same Key with input `oblisqloram`
Binary file added ORAM_SNAPSHOT/cmd/oramExecutor/oramExecutor
Binary file not shown.
22 changes: 22 additions & 0 deletions ORAM_SNAPSHOT/pathOram/api/executor.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
syntax = "proto3";

option go_package = "Executor/service;executor";

import "google/protobuf/wrappers.proto";

message requestBatch {
int64 requestId = 1;
repeated string keys = 2;
repeated string values = 3;
}

message respondBatch {
int64 requestId = 1;
repeated string keys =2;
repeated string values =3;
}

service Executor{
rpc executeBatch(requestBatch) returns (respondBatch);
rpc initDb(requestBatch) returns (google.protobuf.BoolValue);
}
258 changes: 258 additions & 0 deletions ORAM_SNAPSHOT/pathOram/api/executor/executor.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading