Skip to content

Commit

Permalink
♻️ refactor to remove per account data (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
no2chem authored Mar 31, 2019
1 parent 9b798ef commit 9fdf270
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rainblock/protocol",
"version": "1.0.4",
"version": "1.1.0",
"description": "Protocol Buffer Definitions for Rainblock",
"main": "generated_ts/index.js",
"types": "generated_ts/index.d.ts",
Expand Down
19 changes: 7 additions & 12 deletions src/clientVerifier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@ message TransactionRequest {
bytes transaction = 1;
// The serialized account witnesses, with format described above
repeated bytes account_witnesses = 2;
// Code and storage data for accounts which were accesssed.
repeated AccountData account_data = 3;
}

// Data for an account which may include storage witnesses and code.
message AccountData {
// The 20-byte address this witness is for. Should be a big endian integer.
bytes address = 1;
// The serialized storage witness, with format described above
repeated bytes storage_witnesses = 2;
// The code which corresponds to the account, if present.
bytes code = 3;
// Any code accessed during the account execution, as raw bytes
// Ordering is not required because the code will be hashed by the client
// and the hash will be used as the key.
repeated bytes code_list = 3;
// A "bag" of all storage witnesses accessed during the message call/transaction,
// with the same format as the account witnesses described above.
repeated bytes storage_witnesses = 4;
}

// The error code, indicating whether the transaction was successfully submitted (but not necessarily accepted) by
Expand Down

0 comments on commit 9fdf270

Please sign in to comment.