From f5c1ea626c916da8d66539e0704a2b79d668c77b Mon Sep 17 00:00:00 2001 From: PoisonPhang <17688291+PoisonPhang@users.noreply.github.com> Date: Wed, 9 Oct 2024 11:31:38 -0500 Subject: [PATCH] chore: go mod vendor --- .../cosmos/cosmos-sdk/crypto/codec/pubkey.go | 10 ++++++++++ .../cosmos/cosmos-sdk/crypto/keys/jsonkey.go | 6 ++++++ .../github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go | 2 -- .../cosmos/cosmos-sdk/crypto/codec/pubkey.go | 10 ++++++++++ .../cosmos/cosmos-sdk/crypto/keys/jsonkey.go | 6 ++++++ .../github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go | 2 -- .../cosmos/cosmos-sdk/crypto/codec/pubkey.go | 10 ++++++++++ .../cosmos/cosmos-sdk/crypto/keys/jsonkey.go | 6 ++++++ .../github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go | 2 -- 9 files changed, 48 insertions(+), 6 deletions(-) diff --git a/client/v2/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go b/client/v2/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go index c45f258517b0..c2a293557ade 100644 --- a/client/v2/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go +++ b/client/v2/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go @@ -5,6 +5,7 @@ import ( cryptokeys "github.com/cosmos/cosmos-sdk/crypto/keys" bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" + bn254 "github.com/cosmos/cosmos-sdk/crypto/keys/bn254" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" @@ -25,6 +26,10 @@ func PubKeyToProto(pk cryptokeys.JSONPubkey) (cryptotypes.PubKey, error) { return &bls12_381.PubKey{ Key: pk.Value, }, nil + case bn254.PubKeyName: + return &bn254.PubKey{ + Key: pk.Value, + }, nil default: return nil, errors.Wrapf(sdkerrors.ErrInvalidType, "cannot convert %v to proto public key", pk) } @@ -47,6 +52,11 @@ func PubKeyFromProto(pk cryptotypes.PubKey) (cryptokeys.JSONPubkey, error) { KeyType: bls12_381.PubKeyName, Value: pk.Bytes(), }, nil + case *bn254.PubKey: + return cryptokeys.JSONPubkey{ + KeyType: bn254.PrivKeyName, + Value: pk.Bytes(), + }, nil default: return cryptokeys.JSONPubkey{}, errors.Wrapf(sdkerrors.ErrInvalidType, "cannot convert %v from proto public key", pk) } diff --git a/client/v2/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go b/client/v2/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go index 8edbd91e7246..4252dc49e864 100644 --- a/client/v2/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go +++ b/client/v2/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go @@ -2,6 +2,7 @@ package keys import ( "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" + "github.com/cosmos/cosmos-sdk/crypto/keys/bn254" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" "github.com/cosmos/cosmos-sdk/crypto/types" @@ -31,6 +32,11 @@ func (pk JSONPubkey) Address() types.Address { Key: pk.Value, } return bls12_381.Address() + case bn254.PubKeyName: + bn254 := bn254.PubKey{ + Key: pk.Value, + } + return bn254.Address() default: return nil } diff --git a/client/v2/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go b/client/v2/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go index 72614ec94698..46d4187988f0 100644 --- a/client/v2/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go +++ b/client/v2/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go @@ -586,8 +586,6 @@ func _Msg_MigrateAccount_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } -var Msg_serviceDesc = _Msg_serviceDesc - var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.auth.v1beta1.Msg", HandlerType: (*MsgServer)(nil), diff --git a/simapp/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go b/simapp/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go index c45f258517b0..c2a293557ade 100644 --- a/simapp/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go +++ b/simapp/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go @@ -5,6 +5,7 @@ import ( cryptokeys "github.com/cosmos/cosmos-sdk/crypto/keys" bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" + bn254 "github.com/cosmos/cosmos-sdk/crypto/keys/bn254" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" @@ -25,6 +26,10 @@ func PubKeyToProto(pk cryptokeys.JSONPubkey) (cryptotypes.PubKey, error) { return &bls12_381.PubKey{ Key: pk.Value, }, nil + case bn254.PubKeyName: + return &bn254.PubKey{ + Key: pk.Value, + }, nil default: return nil, errors.Wrapf(sdkerrors.ErrInvalidType, "cannot convert %v to proto public key", pk) } @@ -47,6 +52,11 @@ func PubKeyFromProto(pk cryptotypes.PubKey) (cryptokeys.JSONPubkey, error) { KeyType: bls12_381.PubKeyName, Value: pk.Bytes(), }, nil + case *bn254.PubKey: + return cryptokeys.JSONPubkey{ + KeyType: bn254.PrivKeyName, + Value: pk.Bytes(), + }, nil default: return cryptokeys.JSONPubkey{}, errors.Wrapf(sdkerrors.ErrInvalidType, "cannot convert %v from proto public key", pk) } diff --git a/simapp/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go b/simapp/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go index 8edbd91e7246..4252dc49e864 100644 --- a/simapp/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go +++ b/simapp/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go @@ -2,6 +2,7 @@ package keys import ( "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" + "github.com/cosmos/cosmos-sdk/crypto/keys/bn254" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" "github.com/cosmos/cosmos-sdk/crypto/types" @@ -31,6 +32,11 @@ func (pk JSONPubkey) Address() types.Address { Key: pk.Value, } return bls12_381.Address() + case bn254.PubKeyName: + bn254 := bn254.PubKey{ + Key: pk.Value, + } + return bn254.Address() default: return nil } diff --git a/simapp/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go b/simapp/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go index 72614ec94698..46d4187988f0 100644 --- a/simapp/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go +++ b/simapp/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go @@ -586,8 +586,6 @@ func _Msg_MigrateAccount_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } -var Msg_serviceDesc = _Msg_serviceDesc - var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.auth.v1beta1.Msg", HandlerType: (*MsgServer)(nil), diff --git a/tests/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go b/tests/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go index c45f258517b0..c2a293557ade 100644 --- a/tests/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go +++ b/tests/vendor/github.com/cosmos/cosmos-sdk/crypto/codec/pubkey.go @@ -5,6 +5,7 @@ import ( cryptokeys "github.com/cosmos/cosmos-sdk/crypto/keys" bls12_381 "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" + bn254 "github.com/cosmos/cosmos-sdk/crypto/keys/bn254" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" cryptotypes "github.com/cosmos/cosmos-sdk/crypto/types" @@ -25,6 +26,10 @@ func PubKeyToProto(pk cryptokeys.JSONPubkey) (cryptotypes.PubKey, error) { return &bls12_381.PubKey{ Key: pk.Value, }, nil + case bn254.PubKeyName: + return &bn254.PubKey{ + Key: pk.Value, + }, nil default: return nil, errors.Wrapf(sdkerrors.ErrInvalidType, "cannot convert %v to proto public key", pk) } @@ -47,6 +52,11 @@ func PubKeyFromProto(pk cryptotypes.PubKey) (cryptokeys.JSONPubkey, error) { KeyType: bls12_381.PubKeyName, Value: pk.Bytes(), }, nil + case *bn254.PubKey: + return cryptokeys.JSONPubkey{ + KeyType: bn254.PrivKeyName, + Value: pk.Bytes(), + }, nil default: return cryptokeys.JSONPubkey{}, errors.Wrapf(sdkerrors.ErrInvalidType, "cannot convert %v from proto public key", pk) } diff --git a/tests/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go b/tests/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go index 8edbd91e7246..4252dc49e864 100644 --- a/tests/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go +++ b/tests/vendor/github.com/cosmos/cosmos-sdk/crypto/keys/jsonkey.go @@ -2,6 +2,7 @@ package keys import ( "github.com/cosmos/cosmos-sdk/crypto/keys/bls12_381" + "github.com/cosmos/cosmos-sdk/crypto/keys/bn254" "github.com/cosmos/cosmos-sdk/crypto/keys/ed25519" "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" "github.com/cosmos/cosmos-sdk/crypto/types" @@ -31,6 +32,11 @@ func (pk JSONPubkey) Address() types.Address { Key: pk.Value, } return bls12_381.Address() + case bn254.PubKeyName: + bn254 := bn254.PubKey{ + Key: pk.Value, + } + return bn254.Address() default: return nil } diff --git a/tests/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go b/tests/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go index 72614ec94698..46d4187988f0 100644 --- a/tests/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go +++ b/tests/vendor/github.com/cosmos/cosmos-sdk/x/auth/types/tx.pb.go @@ -586,8 +586,6 @@ func _Msg_MigrateAccount_Handler(srv interface{}, ctx context.Context, dec func( return interceptor(ctx, in, info, handler) } -var Msg_serviceDesc = _Msg_serviceDesc - var _Msg_serviceDesc = grpc.ServiceDesc{ ServiceName: "cosmos.auth.v1beta1.Msg", HandlerType: (*MsgServer)(nil),