Skip to content

Commit

Permalink
update sequencing interface to use batch hashes instead of batches an…
Browse files Browse the repository at this point in the history
…d return timestamp for the batch
  • Loading branch information
gupadhyaya committed Aug 30, 2024
1 parent f2daab5 commit 4993204
Showing 1 changed file with 28 additions and 7 deletions.
35 changes: 28 additions & 7 deletions proto/sequencing/sequencing.proto
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
syntax = "proto3";
package rollkit;
package sequencing;

import "google/protobuf/timestamp.proto";

// SequencerInput ...
service SequencerInput {
Expand All @@ -21,8 +23,20 @@ message SubmitRollupTransactionResponse {

// SequencerOutput ...
service SequencerOutput {
// SubmitRollupTransaction ...
rpc GetNextBatch(Batch) returns (Batch) {}
// GetNextBatch ...
rpc GetNextBatch(GetNextBatchRequest) returns (GetNextBatchResponse) {}
}

// GetNextBatchRequest ...
message GetNextBatchRequest {
// Merkle tree hash of the last batch
repeated bytes last_batch_hash = 1;
}

// GetNextBatchResponse ...
message GetNextBatchResponse {
Batch batch = 1;
google.protobuf.Timestamp timestamp = 2;
}

// Batch holds a list of transactions
Expand All @@ -33,10 +47,17 @@ message Batch {
// BatchVerifier
service BatchVerifier {
// VerifyBatch ...
rpc VerifyBatch(Batch) returns (VerificationResponse) {}
rpc VerifyBatch(VerifyBatchRequest) returns (VerifyBatchResponse) {}
}

// VerifyBatchRequest ...
message VerifyBatchRequest {
// Merkle tree hash of the batch
repeated bytes batch_hash = 1;
}

// VerificationResponse
message VerificationResponse {
bool success = 1;
// VerifyBatchResponse
message VerifyBatchResponse {
// status indicates the verification results
bool status = 1;
}

0 comments on commit 4993204

Please sign in to comment.