Skip to content

Commit 47d0f35

Browse files
committed
chore: renamed proto files
1 parent c85deed commit 47d0f35

90 files changed

Lines changed: 1939 additions & 1903 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ endif
135135
#? proto-gen: Generate protobuf files
136136
proto-gen: check-proto-deps
137137
@echo "Generating Protobuf files"
138-
@go run github.com/bufbuild/buf/cmd/buf@latest generate --path proto/tendermint
139-
@mv ./proto/tendermint/abci/types.pb.go ./abci/types/
140-
@cp ./proto/tendermint/rpc/grpc/types.pb.go ./rpc/grpc
138+
@go run github.com/bufbuild/buf/cmd/buf@latest generate --path proto/dydxcometbft
139+
@mv ./proto/dydxcometbft/abci/types.pb.go ./abci/types/
140+
@cp ./proto/dydxcometbft/rpc/grpc/types.pb.go ./rpc/grpc
141141
.PHONY: proto-gen
142142

143143
# These targets are provided for convenience and are intended for local

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ whitepapers which CometBFT will continue to build on.
201201

202202
- [The latest gossip on BFT consensus](https://arxiv.org/abs/1807.04938)
203203
- [Master's Thesis on Tendermint](https://atrium.lib.uoguelph.ca/xmlui/handle/10214/9769)
204-
- [Original Whitepaper: "Tendermint: Consensus Without Mining"](https://tendermint.com/static/docs/tendermint.pdf)
204+
- [Original Whitepaper: "Tendermint: Consensus Without Mining"](https://dydxcometbft.com/static/docs/dydxcometbft.pdf)
205205

206206
## Join us
207207

abci/types/types.pb.go

Lines changed: 359 additions & 358 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

consensus/reactor.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,15 +1516,15 @@ type Message interface {
15161516
}
15171517

15181518
func init() {
1519-
cmtjson.RegisterType(&NewRoundStepMessage{}, "tendermint/NewRoundStepMessage")
1520-
cmtjson.RegisterType(&NewValidBlockMessage{}, "tendermint/NewValidBlockMessage")
1521-
cmtjson.RegisterType(&ProposalMessage{}, "tendermint/Proposal")
1522-
cmtjson.RegisterType(&ProposalPOLMessage{}, "tendermint/ProposalPOL")
1523-
cmtjson.RegisterType(&BlockPartMessage{}, "tendermint/BlockPart")
1524-
cmtjson.RegisterType(&VoteMessage{}, "tendermint/Vote")
1525-
cmtjson.RegisterType(&HasVoteMessage{}, "tendermint/HasVote")
1526-
cmtjson.RegisterType(&VoteSetMaj23Message{}, "tendermint/VoteSetMaj23")
1527-
cmtjson.RegisterType(&VoteSetBitsMessage{}, "tendermint/VoteSetBits")
1519+
cmtjson.RegisterType(&NewRoundStepMessage{}, "dydxcometbft/NewRoundStepMessage")
1520+
cmtjson.RegisterType(&NewValidBlockMessage{}, "dydxcometbft/NewValidBlockMessage")
1521+
cmtjson.RegisterType(&ProposalMessage{}, "dydxcometbft/Proposal")
1522+
cmtjson.RegisterType(&ProposalPOLMessage{}, "dydxcometbft/ProposalPOL")
1523+
cmtjson.RegisterType(&BlockPartMessage{}, "dydxcometbft/BlockPart")
1524+
cmtjson.RegisterType(&VoteMessage{}, "dydxcometbft/Vote")
1525+
cmtjson.RegisterType(&HasVoteMessage{}, "dydxcometbft/HasVote")
1526+
cmtjson.RegisterType(&VoteSetMaj23Message{}, "dydxcometbft/VoteSetMaj23")
1527+
cmtjson.RegisterType(&VoteSetBitsMessage{}, "dydxcometbft/VoteSetBits")
15281528
}
15291529

15301530
//-------------------------------------

consensus/wal.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ type EndHeightMessage struct {
4646
type WALMessage interface{}
4747

4848
func init() {
49-
cmtjson.RegisterType(msgInfo{}, "tendermint/wal/MsgInfo")
50-
cmtjson.RegisterType(timeoutInfo{}, "tendermint/wal/TimeoutInfo")
51-
cmtjson.RegisterType(EndHeightMessage{}, "tendermint/wal/EndHeightMessage")
49+
cmtjson.RegisterType(msgInfo{}, "dydxcometbft/wal/MsgInfo")
50+
cmtjson.RegisterType(timeoutInfo{}, "dydxcometbft/wal/TimeoutInfo")
51+
cmtjson.RegisterType(EndHeightMessage{}, "dydxcometbft/wal/EndHeightMessage")
5252
}
5353

5454
//--------------------------------------------------------

crypto/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ JSON encoding is done using CometBFT's internal json encoder. For more informati
2121
```go
2222
Example JSON encodings:
2323

24-
ed25519.PrivKey - {"type":"tendermint/PrivKeyEd25519","value":"EVkqJO/jIXp3rkASXfh9YnyToYXRXhBr6g9cQVxPFnQBP/5povV4HTjvsy530kybxKHwEi85iU8YL0qQhSYVoQ=="}
25-
ed25519.PubKey - {"type":"tendermint/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="}
26-
sr25519.PrivKeySr25519 - {"type":"tendermint/PrivKeySr25519","value":"xtYVH8UCIqfrY8FIFc0QEpAEBShSG4NT0zlEOVSZ2w4="}
27-
sr25519.PubKeySr25519 - {"type":"tendermint/PubKeySr25519","value":"8sKBLKQ/OoXMcAJVxBqz1U7TyxRFQ5cmliuHy4MrF0s="}
28-
crypto.PrivKeySecp256k1 - {"type":"tendermint/PrivKeySecp256k1","value":"zx4Pnh67N+g2V+5vZbQzEyRerX9c4ccNZOVzM9RvJ0Y="}
29-
crypto.PubKeySecp256k1 - {"type":"tendermint/PubKeySecp256k1","value":"A8lPKJXcNl5VHt1FK8a244K9EJuS4WX1hFBnwisi0IJx"}
24+
ed25519.PrivKey - {"type":"dydxcometbft/PrivKeyEd25519","value":"EVkqJO/jIXp3rkASXfh9YnyToYXRXhBr6g9cQVxPFnQBP/5povV4HTjvsy530kybxKHwEi85iU8YL0qQhSYVoQ=="}
25+
ed25519.PubKey - {"type":"dydxcometbft/PubKeyEd25519","value":"AT/+aaL1eB0477Mud9JMm8Sh8BIvOYlPGC9KkIUmFaE="}
26+
sr25519.PrivKeySr25519 - {"type":"dydxcometbft/PrivKeySr25519","value":"xtYVH8UCIqfrY8FIFc0QEpAEBShSG4NT0zlEOVSZ2w4="}
27+
sr25519.PubKeySr25519 - {"type":"dydxcometbft/PubKeySr25519","value":"8sKBLKQ/OoXMcAJVxBqz1U7TyxRFQ5cmliuHy4MrF0s="}
28+
crypto.PrivKeySecp256k1 - {"type":"dydxcometbft/PrivKeySecp256k1","value":"zx4Pnh67N+g2V+5vZbQzEyRerX9c4ccNZOVzM9RvJ0Y="}
29+
crypto.PubKeySecp256k1 - {"type":"dydxcometbft/PubKeySecp256k1","value":"A8lPKJXcNl5VHt1FK8a244K9EJuS4WX1hFBnwisi0IJx"}
3030
```

crypto/encoding/codec.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ import (
1111
)
1212

1313
func init() {
14-
json.RegisterType((*pc.PublicKey)(nil), "tendermint.crypto.PublicKey")
15-
json.RegisterType((*pc.PublicKey_Ed25519)(nil), "tendermint.crypto.PublicKey_Ed25519")
16-
json.RegisterType((*pc.PublicKey_Secp256K1)(nil), "tendermint.crypto.PublicKey_Secp256K1")
14+
json.RegisterType((*pc.PublicKey)(nil), "dydxcometbft.crypto.PublicKey")
15+
json.RegisterType((*pc.PublicKey_Ed25519)(nil), "dydxcometbft.crypto.PublicKey_Ed25519")
16+
json.RegisterType((*pc.PublicKey_Secp256K1)(nil), "dydxcometbft.crypto.PublicKey_Secp256K1")
1717
}
1818

1919
// PubKeyToProto takes crypto.PubKey and transforms it to a protobuf Pubkey

crypto/secp256k1/secp256k1.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818

1919
// -------------------------------------
2020
const (
21-
PrivKeyName = "tendermint/PrivKeySecp256k1"
22-
PubKeyName = "tendermint/PubKeySecp256k1"
21+
PrivKeyName = "dydxcometbft/PrivKeySecp256k1"
22+
PubKeyName = "dydxcometbft/PubKeySecp256k1"
2323

2424
KeyType = "secp256k1"
2525
PrivKeySize = 32

crypto/sr25519/encoding.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package sr25519
33
import cmtjson "github.com/KYVENetwork/dydx-cometbft/libs/json"
44

55
const (
6-
PrivKeyName = "tendermint/PrivKeySr25519"
7-
PubKeyName = "tendermint/PubKeySr25519"
6+
PrivKeyName = "dydxcometbft/PrivKeySr25519"
7+
PubKeyName = "dydxcometbft/PubKeySr25519"
88
)
99

1010
func init() {

docs/architecture/tendermint-core/adr-013-symmetric-crypto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Context
44

55
We require symmetric ciphers to handle how we encrypt keys in the sdk,
6-
and to potentially encrypt `priv_validator.json` in tendermint.
6+
and to potentially encrypt `priv_validator.json` in dydxcometbft.
77

88
Currently we use AEAD's to support symmetric encryption,
99
which is great since we want data integrity in addition to privacy and authenticity.

0 commit comments

Comments
 (0)