Skip to content

Commit

Permalink
lint protos
Browse files Browse the repository at this point in the history
  • Loading branch information
cmwaters committed Oct 12, 2023
1 parent 3c7b299 commit 9d56274
Show file tree
Hide file tree
Showing 8 changed files with 120 additions and 117 deletions.
59 changes: 30 additions & 29 deletions pkg/blob/blob.pb.go

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

2 changes: 1 addition & 1 deletion pkg/da/data_availability_header.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/celestiaorg/celestia-app/pkg/shares"
"github.com/celestiaorg/celestia-app/pkg/square"
"github.com/celestiaorg/celestia-app/pkg/wrapper"
daproto "github.com/celestiaorg/celestia-app/proto/celestia/core/v1"
daproto "github.com/celestiaorg/celestia-app/proto/celestia/core/v1/da"
)

var (
Expand Down
75 changes: 39 additions & 36 deletions pkg/proof/proof.pb.go

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

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
package celestia.core.v1;
package celestia.core.v1.blob;

option go_package = "github.com/celestiaorg/celestia-app/pkg/blob";

Expand All @@ -8,17 +8,17 @@ option go_package = "github.com/celestiaorg/celestia-app/pkg/blob";
// to a namespace and is encoded into shares based on the format specified by
// share_version.
message Blob {
bytes namespace_id = 1;
bytes data = 2;
uint32 share_version = 3;
bytes namespace_id = 1;
bytes data = 2;
uint32 share_version = 3;
uint32 namespace_version = 4;
}

// BlobTx wraps an encoded sdk.Tx with a second field to contain blobs of data.
// The raw bytes of the blobs are not signed over, instead we verify each blob
// using the relevant MsgPayForBlobs that is signed over in the encoded sdk.Tx.
message BlobTx {
bytes tx = 1;
repeated Blob blobs = 2;
string type_id = 3;
bytes tx = 1;
repeated Blob blobs = 2;
string type_id = 3;
}

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

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package celestia.core.v1;
package celestia.core.v1.da;

option go_package = "github.com/celestiaorg/celestia-app/proto/celestia/core/v1";
option go_package = "github.com/celestiaorg/celestia-app/proto/celestia/core/v1/da";

// DataAvailabilityHeader contains the row and column roots of the erasure
// coded version of the data in Block.Data.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
package celestia.core.v1;
package celestia.core.v1.proof;

import "tendermint/crypto/proof.proto";

Expand All @@ -8,21 +8,21 @@ option go_package = "github.com/celestiaorg/celestia-app/pkg/proof";
// ShareProof is an NMT proof that a set of shares exist in a set of rows and a
// Merkle proof that those rows exist in a Merkle tree with a given data root.
message ShareProof {
repeated bytes data = 1;
repeated NMTProof share_proofs = 2;
bytes namespace_id = 3;
RowProof row_proof = 4;
uint32 namespace_version = 5;
repeated bytes data = 1;
repeated NMTProof share_proofs = 2;
bytes namespace_id = 3;
RowProof row_proof = 4;
uint32 namespace_version = 5;
}

// RowProof is a Merkle proof that a set of rows exist in a Merkle tree with a
// given data root.
message RowProof {
repeated bytes row_roots = 1;
repeated tendermint.crypto.Proof proofs = 2;
bytes root = 3;
uint32 start_row = 4;
uint32 end_row = 5;
repeated bytes row_roots = 1;
repeated tendermint.crypto.Proof proofs = 2;
bytes root = 3;
uint32 start_row = 4;
uint32 end_row = 5;
}

// NMTProof is a proof of a namespace.ID in an NMT.
Expand Down
Loading

0 comments on commit 9d56274

Please sign in to comment.