feat: Update Cosmos SDK to CometBFT v2 (#24837)

Co-authored-by: aljo242 <alex@interchainlabs.io>
This commit is contained in:
Zachary Becker
2025-06-04 17:34:20 +00:00
committed by GitHub
co-authored by aljo242
parent b78a6c660e
commit fd170b5140
341 changed files with 9024 additions and 7892 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"io"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/v2/crypto"
"golang.org/x/crypto/argon2"
"golang.org/x/crypto/chacha20poly1305"
"golang.org/x/crypto/openpgp/armor" //nolint:staticcheck //TODO: remove this dependency
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"io"
"testing"
cmtcrypto "github.com/cometbft/cometbft/crypto"
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
+2 -2
View File
@@ -2,8 +2,8 @@ package codec
import (
cmtprotocrypto "github.com/cometbft/cometbft/api/cometbft/crypto/v1"
cmtcrypto "github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/crypto/encoding"
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
"github.com/cometbft/cometbft/v2/crypto/encoding"
"cosmossdk.io/errors"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"os"
"testing"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/v2/crypto"
"github.com/cosmos/go-bip39"
"github.com/stretchr/testify/require"
+1 -1
View File
@@ -12,7 +12,7 @@ import (
"testing"
"github.com/99designs/keyring"
cmtcrypto "github.com/cometbft/cometbft/crypto"
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
"github.com/stretchr/testify/require"
"golang.org/x/crypto/bcrypt"
+1 -1
View File
@@ -4,7 +4,7 @@ package ed25519
This package contains a wrapper around crypto/ed22519 to make it comply with the crypto interfaces.
This package employs zip215 rules. We use https://github.com/hdevalence/ed25519consensus verification function. Ths is done in order to keep compatibility with Tendermints ed25519 implementation.
- https://github.com/cometbft/cometbft/blob/master/crypto/ed25519/ed25519.go#L155
- https://github.com/cometbft/cometbft/v2/blob/master/crypto/ed25519/ed25519.go#L155
This package works with correctly generated signatures. To read more about what this means see https://hdevalence.ca/blog/2020-10-04-its-25519am
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"io"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/crypto/tmhash"
"github.com/cometbft/cometbft/v2/crypto"
"github.com/cometbft/cometbft/v2/crypto/tmhash"
"github.com/hdevalence/ed25519consensus"
errorsmod "cosmossdk.io/errors"
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"encoding/base64"
"testing"
"github.com/cometbft/cometbft/crypto"
tmed25519 "github.com/cometbft/cometbft/crypto/ed25519"
"github.com/cometbft/cometbft/v2/crypto"
tmed25519 "github.com/cometbft/cometbft/v2/crypto/ed25519"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -7,7 +7,7 @@ import (
"math/big"
"testing"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/v2/crypto"
"github.com/stretchr/testify/suite"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"fmt"
"math/big"
cmtcrypto "github.com/cometbft/cometbft/crypto"
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
errorsmod "cosmossdk.io/errors"
+1 -1
View File
@@ -3,7 +3,7 @@ package multisig
import (
fmt "fmt"
cmtcrypto "github.com/cometbft/cometbft/crypto"
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
"github.com/cosmos/cosmos-sdk/codec/types"
cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types"
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"io"
"math/big"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/v2/crypto"
secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4"
"golang.org/x/crypto/ripemd160" //nolint // using just for backwards compat
+1 -1
View File
@@ -4,7 +4,7 @@
package secp256k1
import (
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/v2/crypto"
"github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1/internal/secp256k1"
)
+1 -1
View File
@@ -6,7 +6,7 @@ package secp256k1
import (
"errors"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/v2/crypto"
secp256k1 "github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
)
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"math/big"
"testing"
"github.com/cometbft/cometbft/crypto"
tmsecp256k1 "github.com/cometbft/cometbft/crypto/secp256k1"
"github.com/cometbft/cometbft/v2/crypto"
tmsecp256k1 "github.com/cometbft/cometbft/v2/crypto/secp256k1"
"github.com/cosmos/btcutil/base58"
secp "github.com/decred/dcrd/dcrec/secp256k1/v4"
btcecdsa "github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
@@ -3,7 +3,7 @@ package secp256r1
import (
"testing"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/v2/crypto"
"github.com/cosmos/gogoproto/proto"
"github.com/stretchr/testify/suite"
+1 -1
View File
@@ -3,7 +3,7 @@ package secp256r1
import (
"encoding/base64"
cmtcrypto "github.com/cometbft/cometbft/crypto"
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
"github.com/cosmos/gogoproto/proto"
ecdsa "github.com/cosmos/cosmos-sdk/crypto/keys/internal/ecdsa"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"errors"
"fmt"
"github.com/cometbft/cometbft/crypto"
"github.com/cometbft/cometbft/v2/crypto"
"github.com/cosmos/go-bip39"
secp "github.com/decred/dcrd/dcrec/secp256k1/v4"
"github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa"
+1 -1
View File
@@ -1,7 +1,7 @@
package types
import (
cmtcrypto "github.com/cometbft/cometbft/crypto"
cmtcrypto "github.com/cometbft/cometbft/v2/crypto"
proto "github.com/cosmos/gogoproto/proto"
)