From 8066bf30c418dedea976334097479f7c28bf2f42 Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Tue, 19 Nov 2024 12:35:00 +0100 Subject: [PATCH 1/8] Add remote signer module --- covenant-signer/CONTRIBUTING.md | 5 + covenant-signer/Dockerfile | 37 + covenant-signer/Makefile | 41 + covenant-signer/btcclient/client.go | 357 +++ covenant-signer/cmd/dumpDefaultCfgCmd.go | 32 + covenant-signer/cmd/root.go | 50 + covenant-signer/cmd/signerCmd.go | 94 + covenant-signer/config/btc.go | 61 + covenant-signer/config/config.go | 189 ++ covenant-signer/config/metrics.go | 46 + covenant-signer/config/server.go | 44 + covenant-signer/config/signer_config.go | 99 + covenant-signer/example/config.toml | 56 + covenant-signer/example/global-params.json | 25 + covenant-signer/go.mod | 324 +++ covenant-signer/go.sum | 2099 +++++++++++++++++ covenant-signer/itest/bitcoind_node_setup.go | 103 + covenant-signer/itest/containers/config.go | 24 + .../itest/containers/containers.go | 187 ++ covenant-signer/itest/e2e_test.go | 456 ++++ covenant-signer/main.go | 7 + covenant-signer/mocks/signer_mocks.go | 143 ++ .../observability/metrics/prometheus.go | 52 + .../observability/metrics/signer.go | 48 + .../observability/tracing/tracing.go | 29 + .../signerapp/babylon_params_retriever.go | 43 + covenant-signer/signerapp/btc_chain_info.go | 40 + .../signerapp/btc_priv_key_signer.go | 54 + covenant-signer/signerapp/btc_psbt_signer.go | 95 + .../signerapp/expected_interfaces.go | 64 + covenant-signer/signerapp/signer.go | 279 +++ covenant-signer/signerapp/signer_test.go | 287 +++ covenant-signer/signerservice/client.go | 101 + .../signerservice/handlers/handler.go | 37 + .../signerservice/handlers/sign_unbonding.go | 91 + .../signerservice/http_response.go | 86 + .../middlewares/content_length.go | 22 + .../signerservice/middlewares/logging.go | 38 + .../signerservice/middlewares/tracing.go | 14 + covenant-signer/signerservice/server.go | 73 + covenant-signer/signerservice/types/error.go | 63 + .../signerservice/types/sign_unbonding.go | 15 + covenant-signer/utils/btc.go | 84 + 43 files changed, 6094 insertions(+) create mode 100644 covenant-signer/CONTRIBUTING.md create mode 100644 covenant-signer/Dockerfile create mode 100644 covenant-signer/Makefile create mode 100644 covenant-signer/btcclient/client.go create mode 100644 covenant-signer/cmd/dumpDefaultCfgCmd.go create mode 100644 covenant-signer/cmd/root.go create mode 100644 covenant-signer/cmd/signerCmd.go create mode 100644 covenant-signer/config/btc.go create mode 100644 covenant-signer/config/config.go create mode 100644 covenant-signer/config/metrics.go create mode 100644 covenant-signer/config/server.go create mode 100644 covenant-signer/config/signer_config.go create mode 100644 covenant-signer/example/config.toml create mode 100644 covenant-signer/example/global-params.json create mode 100644 covenant-signer/go.mod create mode 100644 covenant-signer/go.sum create mode 100644 covenant-signer/itest/bitcoind_node_setup.go create mode 100644 covenant-signer/itest/containers/config.go create mode 100644 covenant-signer/itest/containers/containers.go create mode 100644 covenant-signer/itest/e2e_test.go create mode 100644 covenant-signer/main.go create mode 100644 covenant-signer/mocks/signer_mocks.go create mode 100644 covenant-signer/observability/metrics/prometheus.go create mode 100644 covenant-signer/observability/metrics/signer.go create mode 100644 covenant-signer/observability/tracing/tracing.go create mode 100644 covenant-signer/signerapp/babylon_params_retriever.go create mode 100644 covenant-signer/signerapp/btc_chain_info.go create mode 100644 covenant-signer/signerapp/btc_priv_key_signer.go create mode 100644 covenant-signer/signerapp/btc_psbt_signer.go create mode 100644 covenant-signer/signerapp/expected_interfaces.go create mode 100644 covenant-signer/signerapp/signer.go create mode 100644 covenant-signer/signerapp/signer_test.go create mode 100644 covenant-signer/signerservice/client.go create mode 100644 covenant-signer/signerservice/handlers/handler.go create mode 100644 covenant-signer/signerservice/handlers/sign_unbonding.go create mode 100644 covenant-signer/signerservice/http_response.go create mode 100644 covenant-signer/signerservice/middlewares/content_length.go create mode 100644 covenant-signer/signerservice/middlewares/logging.go create mode 100644 covenant-signer/signerservice/middlewares/tracing.go create mode 100644 covenant-signer/signerservice/server.go create mode 100644 covenant-signer/signerservice/types/error.go create mode 100644 covenant-signer/signerservice/types/sign_unbonding.go create mode 100644 covenant-signer/utils/btc.go diff --git a/covenant-signer/CONTRIBUTING.md b/covenant-signer/CONTRIBUTING.md new file mode 100644 index 0000000..1b98edb --- /dev/null +++ b/covenant-signer/CONTRIBUTING.md @@ -0,0 +1,5 @@ +# Contributing + +Covenant-signer repository follows the same contributing rules as +[Babylon node](https://github.com/babylonlabs-io/babylon/blob/main/CONTRIBUTING.md) +repository. diff --git a/covenant-signer/Dockerfile b/covenant-signer/Dockerfile new file mode 100644 index 0000000..f5c4c6a --- /dev/null +++ b/covenant-signer/Dockerfile @@ -0,0 +1,37 @@ +FROM golang:1.22.3-alpine as builder + +# Version to build. Default is the Git HEAD. +ARG VERSION="HEAD" + +# Use muslc for static libs +ARG BUILD_TAGS="muslc" + +RUN apk add --no-cache --update openssh git make build-base linux-headers libc-dev \ + pkgconfig zeromq-dev musl-dev alpine-sdk libsodium-dev \ + libzmq-static libsodium-static gcc + +# Build +WORKDIR /go/src/github.com/babylonlabs-io/covenant-emulator/covenant-signer +# Cache dependencies +COPY go.mod go.sum /go/src/github.com/babylonlabs-io/covenant-emulator/covenant-signer/ +# Copy the rest of the files +COPY ./ /go/src/github.com/babylonlabs-io/covenant-emulator/covenant-signer/ + +RUN CGO_LDFLAGS="$CGO_LDFLAGS -lstdc++ -lm -lsodium" \ + CGO_ENABLED=1 \ + BUILD_TAGS=$BUILD_TAGS \ + LINK_STATICALLY=true \ + make build + +# FINAL IMAGE +FROM alpine:3.16 AS run + +RUN addgroup --gid 1138 -S covenant-signer && adduser --uid 1138 -S covenant-signer -G covenant-signer + +RUN apk add bash curl jq + +COPY --from=builder /go/src/github.com/babylonlabs-io/covenant-emulator/covenant-signer/build/covenant-signer /bin/covenant-signer + +WORKDIR /home/covenant-signer +RUN chown -R covenant-signer /home/covenant-signer +USER covenant-signer diff --git a/covenant-signer/Makefile b/covenant-signer/Makefile new file mode 100644 index 0000000..009cab4 --- /dev/null +++ b/covenant-signer/Makefile @@ -0,0 +1,41 @@ +DOCKER = $(shell which docker) +BUILDDIR ?= $(CURDIR)/build + +PACKAGES_E2E=$(shell go list ./... | grep '/itest') + +ldflags := $(LDFLAGS) +build_tags := $(BUILD_TAGS) +build_args := $(BUILD_ARGS) + +ifeq ($(VERBOSE),true) + build_args += -v +endif + +ifeq ($(LINK_STATICALLY),true) + ldflags += -linkmode=external -extldflags "-Wl,-z,muldefs -static" -v +endif + +BUILD_TARGETS := build install +BUILD_FLAGS := --tags "$(build_tags)" --ldflags '$(ldflags)' + +all: build install + +build: BUILD_ARGS := $(build_args) -o $(BUILDDIR) + +$(BUILD_TARGETS): go.sum $(BUILDDIR)/ + go $@ -mod=readonly $(BUILD_FLAGS) $(BUILD_ARGS) ./... + +$(BUILDDIR)/: + mkdir -p $(BUILDDIR)/ + +build-docker: + $(DOCKER) build --tag babylonlabs-io/covenant-signer -f Dockerfile \ + $(shell git rev-parse --show-toplevel) + +.PHONY: build build-docker install tests + +test: + go test ./... + +test-e2e: + go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E) -count=1 --tags=e2e diff --git a/covenant-signer/btcclient/client.go b/covenant-signer/btcclient/client.go new file mode 100644 index 0000000..2286248 --- /dev/null +++ b/covenant-signer/btcclient/client.go @@ -0,0 +1,357 @@ +package btcclient + +import ( + "bytes" + "encoding/base64" + "encoding/hex" + "fmt" + "sort" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcjson" + "github.com/btcsuite/btcd/btcutil" + "github.com/btcsuite/btcd/btcutil/psbt" + "github.com/btcsuite/btcd/chaincfg/chainhash" + + "github.com/btcsuite/btcd/rpcclient" + "github.com/btcsuite/btcd/txscript" + "github.com/btcsuite/btcd/wire" + "github.com/btcsuite/btcwallet/wallet/txauthor" + notifier "github.com/lightningnetwork/lnd/chainntnfs" +) + +type TxStatus int + +const ( + TxNotFound TxStatus = iota + TxInMemPool + TxInChain +) + +const txNotFoundErrMsgBitcoind = "No such mempool or blockchain transaction" + +func nofitierStateToClientState(state notifier.TxConfStatus) TxStatus { + switch state { + case notifier.TxNotFoundIndex: + return TxNotFound + case notifier.TxFoundMempool: + return TxInMemPool + case notifier.TxFoundIndex: + return TxInChain + case notifier.TxNotFoundManually: + return TxNotFound + case notifier.TxFoundManually: + return TxInChain + default: + panic(fmt.Sprintf("unknown notifier state: %s", state)) + } +} + +type BtcClient struct { + RpcClient *rpcclient.Client +} + +func btcConfigToConnConfig(cfg *config.ParsedBtcConfig) *rpcclient.ConnConfig { + return &rpcclient.ConnConfig{ + Host: cfg.Host, + User: cfg.User, + Pass: cfg.Pass, + DisableTLS: true, + DisableConnectOnNew: true, + DisableAutoReconnect: false, + HTTPPostMode: true, + } +} + +// client from config +func NewBtcClient(cfg *config.ParsedBtcConfig) (*BtcClient, error) { + rpcClient, err := rpcclient.New(btcConfigToConnConfig(cfg), nil) + + if err != nil { + return nil, err + } + + return &BtcClient{RpcClient: rpcClient}, nil +} + +func (c *BtcClient) SendTx(tx *wire.MsgTx) (*chainhash.Hash, error) { + return c.RpcClient.SendRawTransaction(tx, true) +} + +// Helpers to easily build transactions +type Utxo struct { + Amount btcutil.Amount + OutPoint wire.OutPoint + PkScript []byte + RedeemScript []byte + Address string +} + +type byAmount []Utxo + +func (s byAmount) Len() int { return len(s) } +func (s byAmount) Less(i, j int) bool { return s[i].Amount < s[j].Amount } +func (s byAmount) Swap(i, j int) { s[i], s[j] = s[j], s[i] } + +func resultsToUtxos(results []btcjson.ListUnspentResult, onlySpendable bool) ([]Utxo, error) { + var utxos []Utxo + for _, result := range results { + if onlySpendable && !result.Spendable { + // skip unspendable outputs + continue + } + + amount, err := btcutil.NewAmount(result.Amount) + + if err != nil { + return nil, err + } + + chainhash, err := chainhash.NewHashFromStr(result.TxID) + + if err != nil { + return nil, err + } + + outpoint := wire.NewOutPoint(chainhash, result.Vout) + + script, err := hex.DecodeString(result.ScriptPubKey) + + if err != nil { + return nil, err + } + + redeemScript, err := hex.DecodeString(result.RedeemScript) + + if err != nil { + return nil, err + } + + utxo := Utxo{ + Amount: amount, + OutPoint: *outpoint, + PkScript: script, + RedeemScript: redeemScript, + Address: result.Address, + } + utxos = append(utxos, utxo) + } + return utxos, nil +} + +func makeInputSource(utxos []Utxo) txauthor.InputSource { + currentTotal := btcutil.Amount(0) + currentInputs := make([]*wire.TxIn, 0, len(utxos)) + currentScripts := make([][]byte, 0, len(utxos)) + currentInputValues := make([]btcutil.Amount, 0, len(utxos)) + + return func(target btcutil.Amount) (btcutil.Amount, []*wire.TxIn, + []btcutil.Amount, [][]byte, error) { + + for currentTotal < target && len(utxos) != 0 { + nextCredit := &utxos[0] + utxos = utxos[1:] + nextInput := wire.NewTxIn(&nextCredit.OutPoint, nil, nil) + currentTotal += nextCredit.Amount + currentInputs = append(currentInputs, nextInput) + currentScripts = append(currentScripts, nextCredit.PkScript) + currentInputValues = append(currentInputValues, nextCredit.Amount) + } + return currentTotal, currentInputs, currentInputValues, currentScripts, nil + } +} + +func buildTxFromOutputs( + utxos []Utxo, + outputs []*wire.TxOut, + feeRatePerKb btcutil.Amount, + changeScript []byte) (*wire.MsgTx, error) { + + if len(utxos) == 0 { + return nil, fmt.Errorf("there must be at least 1 usable UTXO to build transaction") + } + + if len(outputs) == 0 { + return nil, fmt.Errorf("there must be at least 1 output in transaction") + } + + ch := txauthor.ChangeSource{ + NewScript: func() ([]byte, error) { + return changeScript, nil + }, + ScriptSize: len(changeScript), + } + + inputSource := makeInputSource(utxos) + + authoredTx, err := txauthor.NewUnsignedTransaction( + outputs, + feeRatePerKb, + inputSource, + &ch, + ) + + if err != nil { + return nil, err + } + + return authoredTx.Tx, nil +} + +func (w *BtcClient) UnlockWallet(timoutSec int64, passphrase string) error { + return w.RpcClient.WalletPassphrase(passphrase, timoutSec) +} + +func (w *BtcClient) DumpPrivateKey(address btcutil.Address) (*btcec.PrivateKey, error) { + privKey, err := w.RpcClient.DumpPrivKey(address) + + if err != nil { + return nil, err + } + + return privKey.PrivKey, nil +} + +func (w *BtcClient) CreateTransaction( + outputs []*wire.TxOut, + feeRatePerKb btcutil.Amount, + changeAddres btcutil.Address) (*wire.MsgTx, error) { + + utxoResults, err := w.RpcClient.ListUnspent() + + if err != nil { + return nil, err + } + + utxos, err := resultsToUtxos(utxoResults, true) + + if err != nil { + return nil, err + } + + // sort utxos by amount from highest to lowest, this is effectively strategy of using + // largest inputs first + sort.Sort(sort.Reverse(byAmount(utxos))) + + changeScript, err := txscript.PayToAddrScript(changeAddres) + + if err != nil { + return nil, err + } + + tx, err := buildTxFromOutputs(utxos, outputs, feeRatePerKb, changeScript) + + if err != nil { + return nil, err + } + + return tx, err +} + +func (w *BtcClient) CreateAndSignTx( + outputs []*wire.TxOut, + feeRatePerKb btcutil.Amount, + changeAddress btcutil.Address, +) (*wire.MsgTx, error) { + tx, err := w.CreateTransaction(outputs, feeRatePerKb, changeAddress) + + if err != nil { + return nil, err + } + + fundedTx, signed, err := w.SignRawTransaction(tx) + + if err != nil { + return nil, err + } + + if !signed { + // TODO: Investigate this case a bit more thoroughly, to check if we can recover + // somehow + return nil, fmt.Errorf("not all transactions inputs could be signed") + } + + return fundedTx, nil +} + +func (w *BtcClient) SignRawTransaction(tx *wire.MsgTx) (*wire.MsgTx, bool, error) { + return w.RpcClient.SignRawTransactionWithWallet(tx) +} + +func (w *BtcClient) ListOutputs(onlySpendable bool) ([]Utxo, error) { + utxoResults, err := w.RpcClient.ListUnspent() + + if err != nil { + return nil, err + } + + utxos, err := resultsToUtxos(utxoResults, onlySpendable) + + if err != nil { + return nil, err + } + + return utxos, nil +} + +func (w *BtcClient) TxDetails(txHash *chainhash.Hash, pkScript []byte) (*notifier.TxConfirmation, TxStatus, error) { + req, err := notifier.NewConfRequest(txHash, pkScript) + + if err != nil { + return nil, TxNotFound, err + } + + res, state, err := notifier.ConfDetailsFromTxIndex(w.RpcClient, req, txNotFoundErrMsgBitcoind) + + if err != nil { + return nil, TxNotFound, err + } + + return res, nofitierStateToClientState(state), nil +} + +func (w *BtcClient) SignPsbt(packet *psbt.Packet) (*psbt.Packet, error) { + psbtEncoded, err := packet.B64Encode() + + if err != nil { + return nil, err + } + + sign := true + result, err := w.RpcClient.WalletProcessPsbt( + psbtEncoded, + &sign, + // TODO: Hacky way of forcing bitcoind to use sighash DEFAULT + "DEFAULT", + nil, + ) + + if err != nil { + return nil, err + } + + decodedBytes, err := base64.StdEncoding.DecodeString(result.Psbt) + + if err != nil { + return nil, err + } + + decoded, err := psbt.NewFromRawBytes(bytes.NewReader(decodedBytes), false) + + if err != nil { + return nil, err + } + + return decoded, nil +} + +func (w *BtcClient) BestBlockHeight() (uint32, error) { + count, err := w.RpcClient.GetBlockCount() + + if err != nil { + return 0, err + } + //#nosec G115 -- safe conversion, nubmer of blocks is always positive and less than math.MaxUint32 + return uint32(count), nil +} diff --git a/covenant-signer/cmd/dumpDefaultCfgCmd.go b/covenant-signer/cmd/dumpDefaultCfgCmd.go new file mode 100644 index 0000000..d29d442 --- /dev/null +++ b/covenant-signer/cmd/dumpDefaultCfgCmd.go @@ -0,0 +1,32 @@ +package cmd + +import ( + "fmt" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" + "github.com/spf13/cobra" +) + +func init() { + rootCmd.AddCommand(dumpCfgCmd) +} + +var dumpCfgCmd = &cobra.Command{ + Use: "dump-cfg", + Short: "dumps default confiiguration file", + RunE: func(cmd *cobra.Command, args []string) error { + path, err := cmd.Flags().GetString(configPathKey) + if err != nil { + return err + } + + err = config.WriteConfigToFile(path, config.DefaultConfig()) + + if err != nil { + return err + } + + fmt.Printf("Default configuration file dumped to: %s \n", path) + return nil + }, +} diff --git a/covenant-signer/cmd/root.go b/covenant-signer/cmd/root.go new file mode 100644 index 0000000..11c3d2d --- /dev/null +++ b/covenant-signer/cmd/root.go @@ -0,0 +1,50 @@ +package cmd + +import ( + "path/filepath" + + "github.com/btcsuite/btcd/btcutil" + "github.com/spf13/cobra" +) + +var ( + // Used for flags. + configPath string + configPathKey = "config" + + globalParamPath string + globalParamKey = "params" + + rootCmd = &cobra.Command{ + Use: "covenant-signer", + Short: "remote signing serivce to perform covenant duties", + } + + // C:\Users\\AppData\Local\tools on Windows + // ~/.tools on Linux + // ~/Library/Application Support/tools on MacOS + dafaultConfigDir = btcutil.AppDataDir("signer", false) + dafaultConfigPath = filepath.Join(dafaultConfigDir, "config.toml") + defaultGlobalParamsPath = filepath.Join(dafaultConfigDir, "global-params.json") +) + +// Execute executes the root command. +func Execute() error { + return rootCmd.Execute() +} + +func init() { + rootCmd.PersistentFlags().StringVar( + &configPath, + configPathKey, + dafaultConfigPath, + "path to the configuration file", + ) + + rootCmd.PersistentFlags().StringVar( + &globalParamPath, + globalParamKey, + defaultGlobalParamsPath, + "path to the global params file", + ) +} diff --git a/covenant-signer/cmd/signerCmd.go b/covenant-signer/cmd/signerCmd.go new file mode 100644 index 0000000..82c7d53 --- /dev/null +++ b/covenant-signer/cmd/signerCmd.go @@ -0,0 +1,94 @@ +package cmd + +import ( + "fmt" + + "github.com/spf13/cobra" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/btcclient" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" + m "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/metrics" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice" +) + +func init() { + rootCmd.AddCommand(runSignerCmd) +} + +var runSignerCmd = &cobra.Command{ + Use: "start", + Short: "starts the signer service", + RunE: func(cmd *cobra.Command, args []string) error { + configPath, err := cmd.Flags().GetString(configPathKey) + if err != nil { + return err + } + cfg, err := config.GetConfig(configPath) + if err != nil { + return err + } + + parsedConfig, err := cfg.Parse() + + if err != nil { + return err + } + + parsedGlobalParams, err := signerapp.NewVersionedParamsRetriever(globalParamPath) + + if err != nil { + return err + } + + fullNodeClient, err := btcclient.NewBtcClient(parsedConfig.BtcNodeConfig) + + if err != nil { + return err + } + + chainInfo := signerapp.NewBitcoindChainInfo(fullNodeClient) + + signerClient, err := btcclient.NewBtcClient(parsedConfig.BtcSignerConfig.ToBtcConfig()) + + if err != nil { + return err + } + + var signer signerapp.ExternalBtcSigner + if parsedConfig.BtcSignerConfig.SignerType == config.PsbtSigner { + fmt.Println("using psbt signer") + signer = signerapp.NewPsbtSigner(signerClient) + } else if parsedConfig.BtcSignerConfig.SignerType == config.PrivKeySigner { + fmt.Println("using privkey signer") + signer = signerapp.NewPrivKeySigner(signerClient) + } + + app := signerapp.NewSignerApp( + signer, + chainInfo, + parsedGlobalParams, + parsedConfig.BtcNodeConfig.Network, + ) + + metrics := m.NewCovenantSignerMetrics() + + srv, err := signerservice.New( + cmd.Context(), + parsedConfig, + app, + metrics, + ) + + if err != nil { + return err + } + + metricsAddress := fmt.Sprintf("%s:%d", cfg.Metrics.Host, cfg.Metrics.Port) + + m.Start(metricsAddress, metrics.Registry) + + // TODO: Add signal handling and gracefull shutdown + return srv.Start() + }, +} diff --git a/covenant-signer/config/btc.go b/covenant-signer/config/btc.go new file mode 100644 index 0000000..3bbb561 --- /dev/null +++ b/covenant-signer/config/btc.go @@ -0,0 +1,61 @@ +package config + +import ( + "fmt" + + "github.com/btcsuite/btcd/chaincfg" +) + +type BtcConfig struct { + Host string `mapstructure:"host"` + User string `mapstructure:"user"` + Pass string `mapstructure:"pass"` + Network string `mapstructure:"network"` +} + +type ParsedBtcConfig struct { + Host string + User string + Pass string + Network *chaincfg.Params +} + +func DefaultBtcConfig() *BtcConfig { + return &BtcConfig{ + Host: "localhost:18556", + User: "user", + Pass: "pass", + Network: "regtest", + } +} + +func (c *BtcConfig) Parse() (*ParsedBtcConfig, error) { + params, err := c.getBtcNetworkParams() + + if err != nil { + return nil, err + } + return &ParsedBtcConfig{ + Host: c.Host, + User: c.User, + Pass: c.Pass, + Network: params, + }, nil +} + +func (cfg *BtcConfig) getBtcNetworkParams() (*chaincfg.Params, error) { + switch cfg.Network { + case "testnet3": + return &chaincfg.TestNet3Params, nil + case "mainnet": + return &chaincfg.MainNetParams, nil + case "regtest": + return &chaincfg.RegressionNetParams, nil + case "simnet": + return &chaincfg.SimNetParams, nil + case "signet": + return &chaincfg.SigNetParams, nil + default: + return nil, fmt.Errorf("unknown network %s", cfg.Network) + } +} diff --git a/covenant-signer/config/config.go b/covenant-signer/config/config.go new file mode 100644 index 0000000..0f34811 --- /dev/null +++ b/covenant-signer/config/config.go @@ -0,0 +1,189 @@ +package config + +import ( + "bytes" + "fmt" + "os" + "path/filepath" + "strings" + "text/template" + + "github.com/spf13/viper" +) + +const ( + folderPermissions = 0750 +) + +type Config struct { + BtcNodeConfig BtcConfig `mapstructure:"btc-config"` + BtcSignerConfig BtcSignerConfig `mapstructure:"btc-signer-config"` + Server ServerConfig `mapstructure:"server-config"` + Metrics MetricsConfig `mapstructure:"metrics"` +} + +func DefaultConfig() *Config { + return &Config{ + BtcNodeConfig: *DefaultBtcConfig(), + BtcSignerConfig: *DefaultBtcSignerConfig(), + Server: *DefaultServerConfig(), + Metrics: *DefaultMetricsConfig(), + } +} + +type ParsedConfig struct { + BtcNodeConfig *ParsedBtcConfig + BtcSignerConfig *ParsedBtcSignerConfig + ServerConfig *ParsedServerConfig + MetricsConfig *ParsedMetricsConfig +} + +func (cfg *Config) Parse() (*ParsedConfig, error) { + btcConfig, err := cfg.BtcNodeConfig.Parse() + if err != nil { + return nil, err + } + + btcSignerConfig, err := cfg.BtcSignerConfig.Parse() + + if err != nil { + return nil, err + } + + serverConfig, err := cfg.Server.Parse() + + if err != nil { + return nil, err + } + + metricsConfig, err := cfg.Metrics.Parse() + + if err != nil { + return nil, err + } + + return &ParsedConfig{ + BtcNodeConfig: btcConfig, + BtcSignerConfig: btcSignerConfig, + ServerConfig: serverConfig, + MetricsConfig: metricsConfig, + }, nil +} + +const defaultConfigTemplate = `# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# There are two btc related configs +# 1. [btc-config] is config for btc full node which should have transaction indexing +# enabled. This node should be synced and can be open to the public. +# 2. [btc-signer-config] is config for bitcoind daemon which should have only +# wallet functionality, it should run in separate network. This bitcoind instance +# will be used to sign psbt's +[btc-config] +# Btc node host +host = "{{ .BtcNodeConfig.Host }}" +# Btc node user +user = "{{ .BtcNodeConfig.User }}" +# Btc node password +pass = "{{ .BtcNodeConfig.Pass }}" +# Btc network (testnet3|mainnet|regtest|simnet|signet) +network = "{{ .BtcNodeConfig.Network }}" + +[btc-signer-config] +# Btc node host +host = "{{ .BtcSignerConfig.Host }}" +# TODO: consider reading user/pass from command line +# Btc node user +user = "{{ .BtcSignerConfig.User }}" +# Btc node password +pass = "{{ .BtcSignerConfig.Pass }}" +# Btc network (testnet3|mainnet|regtest|simnet|signet) +network = "{{ .BtcSignerConfig.Network }}" +# Signer type (psbt|privkey) +signer-type = "{{ .BtcSignerConfig.SignerType }}" + +[server-config] +# The address to listen on +host = "{{ .Server.Host }}" + +# The port to listen on +port = {{ .Server.Port }} + +# Read timeout in seconds +read-timeout = {{ .Server.ReadTimeout }} + +# Write timeout in seconds +write-timeout = {{ .Server.WriteTimeout }} + +# Idle timeout in seconds +idle-timeout = {{ .Server.IdleTimeout }} + +# Max content length in bytes +max-content-length = {{ .Server.MaxContentLength }} + +[metrics] +# The prometheus server host +host = "{{ .Metrics.Host }}" +# The prometheus server port +port = {{ .Metrics.Port }} +` + +var configTemplate *template.Template + +func init() { + var err error + tmpl := template.New("configFileTemplate").Funcs(template.FuncMap{ + "StringsJoin": strings.Join, + }) + if configTemplate, err = tmpl.Parse(defaultConfigTemplate); err != nil { + panic(err) + } +} + +func writeConfigToFile(configFilePath string, config *Config) error { + var buffer bytes.Buffer + + if err := configTemplate.Execute(&buffer, config); err != nil { + panic(err) + } + + return os.WriteFile(configFilePath, buffer.Bytes(), 0o600) +} + +func WriteConfigToFile(pathToConfFile string, conf *Config) error { + dirPath, _ := filepath.Split(pathToConfFile) + + if _, err := os.Stat(pathToConfFile); os.IsNotExist(err) { + if err := os.MkdirAll(dirPath, folderPermissions); err != nil { + return fmt.Errorf("couldn't make config: %v", err) + } + + if err := writeConfigToFile(pathToConfFile, conf); err != nil { + return fmt.Errorf("could config to the file: %v", err) + } + } + return nil +} + +func fileNameWithoutExtension(fileName string) string { + return strings.TrimSuffix(fileName, filepath.Ext(fileName)) +} + +func GetConfig(pathToConfFile string) (*Config, error) { + dir, file := filepath.Split(pathToConfFile) + configName := fileNameWithoutExtension(file) + viper.SetConfigName(configName) + viper.AddConfigPath(dir) + viper.SetConfigType("toml") + + if err := viper.ReadInConfig(); err != nil { + return nil, err + } + + conf := DefaultConfig() + if err := viper.Unmarshal(conf); err != nil { + return nil, err + } + + return conf, nil +} diff --git a/covenant-signer/config/metrics.go b/covenant-signer/config/metrics.go new file mode 100644 index 0000000..3bfe9fd --- /dev/null +++ b/covenant-signer/config/metrics.go @@ -0,0 +1,46 @@ +package config + +import ( + "fmt" + "net" +) + +// MetricsConfig defines the server's metric configuration +type MetricsConfig struct { + // IP of the prometheus server + Host string `mapstructure:"host"` + // Port of the prometheus server + Port int `mapstructure:"port"` +} + +type ParsedMetricsConfig struct { + Host string + Port int +} + +func (cfg *MetricsConfig) Parse() (*ParsedMetricsConfig, error) { + if cfg.Port < 1024 || cfg.Port > 65535 { + return nil, fmt.Errorf("metrics server port must be between 1024 and 65535 (inclusive)") + } + + ip := net.ParseIP(cfg.Host) + if ip == nil { + return nil, fmt.Errorf("invalid metrics server host: %v", cfg.Host) + } + + return &ParsedMetricsConfig{ + Host: cfg.Host, + Port: cfg.Port, + }, nil +} + +func (cfg *MetricsConfig) GetMetricsPort() int { + return cfg.Port +} + +func DefaultMetricsConfig() *MetricsConfig { + return &MetricsConfig{ + Host: "127.0.0.1", + Port: 2112, + } +} diff --git a/covenant-signer/config/server.go b/covenant-signer/config/server.go new file mode 100644 index 0000000..e1d465b --- /dev/null +++ b/covenant-signer/config/server.go @@ -0,0 +1,44 @@ +package config + +import "time" + +type ServerConfig struct { + Host string `mapstructure:"host"` + Port int `mapstructure:"port"` + WriteTimeout uint32 `mapstructure:"write-timeout"` + ReadTimeout uint32 `mapstructure:"read-timeout"` + IdleTimeout uint32 `mapstructure:"idle-timeout"` + MaxContentLength uint32 `mapstructure:"max-content-length"` +} + +type ParsedServerConfig struct { + Host string + Port int + WriteTimeout time.Duration + ReadTimeout time.Duration + IdleTimeout time.Duration + MaxContentLength uint32 +} + +func (c *ServerConfig) Parse() (*ParsedServerConfig, error) { + // TODO Add some validations + return &ParsedServerConfig{ + Host: c.Host, + Port: c.Port, + WriteTimeout: time.Duration(c.WriteTimeout) * time.Second, + ReadTimeout: time.Duration(c.ReadTimeout) * time.Second, + IdleTimeout: time.Duration(c.IdleTimeout) * time.Second, + MaxContentLength: c.MaxContentLength, + }, nil +} + +func DefaultServerConfig() *ServerConfig { + return &ServerConfig{ + Host: "127.0.0.1", + Port: 9791, + WriteTimeout: 15, + ReadTimeout: 15, + IdleTimeout: 120, + MaxContentLength: 8192, + } +} diff --git a/covenant-signer/config/signer_config.go b/covenant-signer/config/signer_config.go new file mode 100644 index 0000000..8c4e094 --- /dev/null +++ b/covenant-signer/config/signer_config.go @@ -0,0 +1,99 @@ +package config + +import ( + "fmt" + + "github.com/btcsuite/btcd/chaincfg" +) + +type SignerType int + +const ( + PsbtSigner SignerType = iota + PrivKeySigner +) + +func SignerFromString(s string) (SignerType, error) { + switch s { + case "psbt": + return PsbtSigner, nil + case "privkey": + return PrivKeySigner, nil + default: + return -1, fmt.Errorf("unknown signer type %s", s) + } +} + +type BtcSignerConfig struct { + Host string `mapstructure:"host"` + User string `mapstructure:"user"` + Pass string `mapstructure:"pass"` + Network string `mapstructure:"network"` + SignerType string `mapstructure:"signer-type"` +} + +type ParsedBtcSignerConfig struct { + Host string + User string + Pass string + Network *chaincfg.Params + SignerType SignerType +} + +func DefaultBtcSignerConfig() *BtcSignerConfig { + return &BtcSignerConfig{ + Host: "localhost:18556", + User: "user", + Pass: "pass", + Network: "regtest", + SignerType: "psbt", + } +} + +func (c *ParsedBtcSignerConfig) ToBtcConfig() *ParsedBtcConfig { + return &ParsedBtcConfig{ + Host: c.Host, + User: c.User, + Pass: c.Pass, + Network: c.Network, + } +} + +func (c *BtcSignerConfig) Parse() (*ParsedBtcSignerConfig, error) { + params, err := c.getBtcNetworkParams() + + if err != nil { + return nil, err + } + + signerType, err := SignerFromString(c.SignerType) + + if err != nil { + return nil, err + } + + return &ParsedBtcSignerConfig{ + Host: c.Host, + User: c.User, + Pass: c.Pass, + Network: params, + SignerType: signerType, + }, nil +} + +func (cfg *BtcSignerConfig) getBtcNetworkParams() (*chaincfg.Params, error) { + switch cfg.Network { + case "testnet3": + return &chaincfg.TestNet3Params, nil + case "mainnet": + return &chaincfg.MainNetParams, nil + case "regtest": + return &chaincfg.RegressionNetParams, nil + case "simnet": + return &chaincfg.SimNetParams, nil + case "signet": + return &chaincfg.SigNetParams, nil + default: + return nil, fmt.Errorf("unknown network %s", cfg.Network) + } +} diff --git a/covenant-signer/example/config.toml b/covenant-signer/example/config.toml new file mode 100644 index 0000000..4b0c9ff --- /dev/null +++ b/covenant-signer/example/config.toml @@ -0,0 +1,56 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +# There are two btc related configs +# 1. [btc-config] is config for btc full node which should have transaction indexing +# enabled. This node should be synced and can be open to the public. +# 2. [btc-signer-config] is config for bitcoind daemon which should have only +# wallet functionality, it should run in separate network. This bitcoind instance +# will be used to sign psbt's +[btc-config] +# Btc node host +host = "localhost:18556" +# Btc node user +user = "user" +# Btc node password +pass = "pass" +# Btc network (testnet3|mainnet|regtest|simnet|signet) +network = "regtest" + +[btc-signer-config] +# Btc node host +host = "localhost:18556" +# TODO: consider reading user/pass from command line +# Btc node user +user = "user" +# Btc node password +pass = "pass" +# Btc network (testnet3|mainnet|regtest|simnet|signet) +network = "regtest" +# Signer type (psbt|privkey) +signer-type = "psbt" + +[server-config] +# The address to listen on +host = "127.0.0.1" + +# The port to listen on +port = 9791 + +# Read timeout in seconds +read-timeout = 15 + +# Write timeout in seconds +write-timeout = 15 + +# Idle timeout in seconds +idle-timeout = 120 + +# Max content length in bytes +max-content-length = 8192 + +[metrics] +# The prometheus server host +host = "127.0.0.1" +# The prometheus server port +port = 2112 diff --git a/covenant-signer/example/global-params.json b/covenant-signer/example/global-params.json new file mode 100644 index 0000000..7e7ed1e --- /dev/null +++ b/covenant-signer/example/global-params.json @@ -0,0 +1,25 @@ +{ + "versions": [ + { + "version": 0, + "activation_height": 192840, + "staking_cap": 50000000000, + "tag": "01020304", + "covenant_pks": [ + "0205149a0c7a95320adf210e47bca8b363b7bd966be86be6392dd6cf4f96995869", + "02e8d503cb52715249f32f3ee79cee88dfd48c2565cb0c79cf9640d291f46fd518", + "02fe81b2409a32ddfd8ec1556557e8dd949b6e4fd37047523cb7f5fefca283d542", + "02bc4a1ff485d7b44faeec320b81ad31c3cad4d097813c21fcf382b4305e4cfc82", + "02001e50601a4a1c003716d7a1ee7fe25e26e55e24e909b3642edb60d30e3c40c1" + ], + "covenant_quorum": 3, + "unbonding_time": 1000, + "unbonding_fee": 20000, + "max_staking_amount": 1000000000, + "min_staking_amount": 1000000, + "max_staking_time": 64000, + "min_staking_time": 64000, + "confirmation_depth": 6 + } + ] +} diff --git a/covenant-signer/go.mod b/covenant-signer/go.mod new file mode 100644 index 0000000..ab42528 --- /dev/null +++ b/covenant-signer/go.mod @@ -0,0 +1,324 @@ +module github.com/babylonlabs-io/covenant-emulator/covenant-signer + +go 1.22.3 + +toolchain go1.22.4 + +require ( + github.com/btcsuite/btcd v0.24.2 + github.com/btcsuite/btcd/btcec/v2 v2.3.2 + github.com/btcsuite/btcd/btcutil v1.1.5 + github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect + github.com/inconshreveable/mousetrap v1.1.0 // indirect + github.com/klauspost/compress v1.17.7 // indirect + github.com/lightningnetwork/lnd v0.16.4-beta.rc1 + github.com/ory/dockertest/v3 v3.10.0 + github.com/spf13/viper v1.18.2 + github.com/stretchr/testify v1.9.0 + golang.org/x/crypto v0.23.0 // indirect + golang.org/x/sync v0.7.0 // indirect +) + +require ( + github.com/fsnotify/fsnotify v1.7.0 // indirect + github.com/hashicorp/hcl v1.0.0 // indirect + github.com/magiconair/properties v1.8.7 // indirect + github.com/mitchellh/mapstructure v1.5.0 // indirect + github.com/pelletier/go-toml/v2 v2.1.0 // indirect + github.com/sagikazarmark/locafero v0.4.0 // indirect + github.com/sagikazarmark/slog-shim v0.1.0 // indirect + github.com/sourcegraph/conc v0.3.0 // indirect + github.com/spf13/afero v1.11.0 // indirect + github.com/spf13/cast v1.6.0 // indirect + github.com/spf13/cobra v1.8.0 + github.com/spf13/pflag v1.0.5 // indirect + github.com/subosito/gotenv v1.6.0 // indirect + go.uber.org/multierr v1.11.0 // indirect + golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/text v0.15.0 // indirect + gopkg.in/ini.v1 v1.67.0 // indirect + gopkg.in/yaml.v3 v3.0.1 // indirect +) + +require ( + github.com/babylonlabs-io/babylon v0.12.1 + github.com/babylonlabs-io/networks/parameters v0.2.2 + github.com/btcsuite/btcd/btcutil/psbt v1.1.8 + github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 + github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 + github.com/go-chi/chi/v5 v5.0.12 + github.com/golang/mock v1.6.0 + github.com/google/uuid v1.6.0 + github.com/prometheus/client_golang v1.19.0 + github.com/rs/zerolog v1.32.0 +) + +require ( + cloud.google.com/go v0.112.0 // indirect + cloud.google.com/go/compute v1.24.0 // indirect + cloud.google.com/go/compute/metadata v0.2.3 // indirect + cloud.google.com/go/iam v1.1.6 // indirect + cloud.google.com/go/storage v1.36.0 // indirect + cosmossdk.io/api v0.7.4 // indirect + cosmossdk.io/client/v2 v2.0.0-beta.1 // indirect + cosmossdk.io/collections v0.4.0 // indirect + cosmossdk.io/core v0.11.0 // indirect + cosmossdk.io/depinject v1.0.0-alpha.4 // indirect + cosmossdk.io/errors v1.0.1 // indirect + cosmossdk.io/log v1.3.1 // indirect + cosmossdk.io/math v1.3.0 // indirect + cosmossdk.io/store v1.1.0 // indirect + cosmossdk.io/x/circuit v0.1.0 // indirect + cosmossdk.io/x/evidence v0.1.0 // indirect + cosmossdk.io/x/feegrant v0.1.0 // indirect + cosmossdk.io/x/nft v0.1.0 // indirect + cosmossdk.io/x/tx v0.13.3 // indirect + cosmossdk.io/x/upgrade v0.1.1 // indirect + dario.cat/mergo v1.0.0 // indirect + filippo.io/edwards25519 v1.0.0 // indirect + github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect + github.com/99designs/keyring v1.2.1 // indirect + github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 // indirect + github.com/CosmWasm/wasmd v0.51.0 // indirect + github.com/CosmWasm/wasmvm/v2 v2.0.1 // indirect + github.com/DataDog/datadog-go v3.2.0+incompatible // indirect + github.com/DataDog/zstd v1.5.5 // indirect + github.com/Microsoft/go-winio v0.6.1 // indirect + github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect + github.com/aead/siphash v1.0.1 // indirect + github.com/andybalholm/brotli v1.0.5 // indirect + github.com/aws/aws-sdk-go v1.44.312 // indirect + github.com/beorn7/perks v1.0.1 // indirect + github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect + github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 // indirect + github.com/bits-and-blooms/bitset v1.10.0 // indirect + github.com/boljen/go-bitmap v0.0.0-20151001105940-23cd2fb0ce7d // indirect + github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f // indirect + github.com/btcsuite/btcwallet v0.16.10-0.20230621165747-9c21f464ce13 // indirect + github.com/btcsuite/btcwallet/wallet/txrules v1.2.0 // indirect + github.com/btcsuite/btcwallet/wallet/txsizes v1.2.3 // indirect + github.com/btcsuite/btcwallet/walletdb v1.4.0 // indirect + github.com/btcsuite/btcwallet/wtxmgr v1.5.0 // indirect + github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd // indirect + github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 // indirect + github.com/btcsuite/winsvc v1.0.0 // indirect + github.com/cenkalti/backoff/v4 v4.2.0 // indirect + github.com/cespare/xxhash v1.1.0 // indirect + github.com/cespare/xxhash/v2 v2.3.0 // indirect + github.com/chzyer/readline v1.5.1 // indirect + github.com/cockroachdb/apd/v2 v2.0.2 // indirect + github.com/cockroachdb/errors v1.11.1 // indirect + github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect + github.com/cockroachdb/pebble v1.1.0 // indirect + github.com/cockroachdb/redact v1.1.5 // indirect + github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 // indirect + github.com/cometbft/cometbft v0.38.7 // indirect + github.com/cometbft/cometbft-db v0.9.1 // indirect + github.com/containerd/continuity v0.3.0 // indirect + github.com/coreos/go-semver v0.3.0 // indirect + github.com/coreos/go-systemd/v22 v22.5.0 // indirect + github.com/cosmos/btcutil v1.0.5 // indirect + github.com/cosmos/cosmos-db v1.0.2 // indirect + github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect + github.com/cosmos/cosmos-sdk v0.50.6 // indirect + github.com/cosmos/go-bip39 v1.0.0 // indirect + github.com/cosmos/gogogateway v1.2.0 // indirect + github.com/cosmos/gogoproto v1.4.12 // indirect + github.com/cosmos/iavl v1.1.2 // indirect + github.com/cosmos/ibc-go/modules/capability v1.0.0 // indirect + github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240429153234-e1e6da7e4ead // indirect + github.com/cosmos/ibc-go/v8 v8.3.0 // indirect + github.com/cosmos/ics23/go v0.10.0 // indirect + github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect + github.com/danieljoos/wincred v1.1.2 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/decred/dcrd/crypto/blake256 v1.0.1 // indirect + github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect + github.com/decred/dcrd/lru v1.0.0 // indirect + github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect + github.com/dgraph-io/badger/v2 v2.2007.4 // indirect + github.com/dgraph-io/ristretto v0.1.1 // indirect + github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect + github.com/distribution/reference v0.5.0 // indirect + github.com/docker/cli v25.0.6+incompatible // indirect + github.com/docker/docker v25.0.6+incompatible // indirect + github.com/docker/go-connections v0.4.0 // indirect + github.com/docker/go-units v0.5.0 // indirect + github.com/dsnet/compress v0.0.1 // indirect + github.com/dustin/go-humanize v1.0.1 // indirect + github.com/dvsekhvalnov/jose2go v1.6.0 // indirect + github.com/emicklei/dot v1.6.1 // indirect + github.com/fatih/color v1.15.0 // indirect + github.com/felixge/httpsnoop v1.0.4 // indirect + github.com/fergusstrange/embedded-postgres v1.10.0 // indirect + github.com/getsentry/sentry-go v0.27.0 // indirect + github.com/go-kit/kit v0.12.0 // indirect + github.com/go-kit/log v0.2.1 // indirect + github.com/go-logfmt/logfmt v0.6.0 // indirect + github.com/go-logr/logr v1.4.1 // indirect + github.com/go-logr/stdr v1.2.2 // indirect + github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect + github.com/gogo/googleapis v1.4.1 // indirect + github.com/gogo/protobuf v1.3.2 // indirect + github.com/golang-jwt/jwt/v4 v4.4.2 // indirect + github.com/golang/glog v1.2.0 // indirect + github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect + github.com/golang/protobuf v1.5.4 // indirect + github.com/google/btree v1.1.2 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/gofuzz v1.2.0 // indirect + github.com/google/orderedcode v0.0.1 // indirect + github.com/google/s2a-go v0.1.7 // indirect + github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 // indirect + github.com/googleapis/enterprise-certificate-proxy v0.3.2 // indirect + github.com/googleapis/gax-go/v2 v2.12.0 // indirect + github.com/gorilla/handlers v1.5.2 // indirect + github.com/gorilla/mux v1.8.1 // indirect + github.com/gorilla/websocket v1.5.1 // indirect + github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect + github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect + github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect + github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect + github.com/hashicorp/go-cleanhttp v0.5.2 // indirect + github.com/hashicorp/go-getter v1.7.3 // indirect + github.com/hashicorp/go-hclog v1.5.0 // indirect + github.com/hashicorp/go-immutable-radix v1.3.1 // indirect + github.com/hashicorp/go-metrics v0.5.3 // indirect + github.com/hashicorp/go-plugin v1.5.2 // indirect + github.com/hashicorp/go-safetemp v1.0.0 // indirect + github.com/hashicorp/go-version v1.6.0 // indirect + github.com/hashicorp/golang-lru v1.0.2 // indirect + github.com/hashicorp/yamux v0.1.1 // indirect + github.com/hdevalence/ed25519consensus v0.1.0 // indirect + github.com/huandu/skiplist v1.2.0 // indirect + github.com/iancoleman/strcase v0.3.0 // indirect + github.com/improbable-eng/grpc-web v0.15.0 // indirect + github.com/jackc/chunkreader/v2 v2.0.1 // indirect + github.com/jackc/pgconn v1.10.0 // indirect + github.com/jackc/pgio v1.0.0 // indirect + github.com/jackc/pgpassfile v1.0.0 // indirect + github.com/jackc/pgproto3/v2 v2.1.1 // indirect + github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect + github.com/jackc/pgtype v1.8.1 // indirect + github.com/jackc/pgx/v4 v4.13.0 // indirect + github.com/jessevdk/go-flags v1.4.0 // indirect + github.com/jinzhu/copier v0.3.5 // indirect + github.com/jmespath/go-jmespath v0.4.0 // indirect + github.com/jmhodges/levigo v1.0.0 // indirect + github.com/jonboulle/clockwork v0.2.2 // indirect + github.com/jrick/logrotate v1.0.0 // indirect + github.com/json-iterator/go v1.1.12 // indirect + github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect + github.com/kkdai/bstream v1.0.0 // indirect + github.com/klauspost/pgzip v1.2.5 // indirect + github.com/kr/pretty v0.3.1 // indirect + github.com/kr/text v0.2.0 // indirect + github.com/lib/pq v1.10.7 // indirect + github.com/libp2p/go-buffer-pool v0.1.0 // indirect + github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf // indirect + github.com/lightninglabs/neutrino v0.15.0 // indirect + github.com/lightninglabs/neutrino/cache v1.1.1 // indirect + github.com/lightningnetwork/lnd/clock v1.1.0 // indirect + github.com/lightningnetwork/lnd/healthcheck v1.2.2 // indirect + github.com/lightningnetwork/lnd/kvdb v1.4.1 // indirect + github.com/lightningnetwork/lnd/queue v1.1.0 // indirect + github.com/lightningnetwork/lnd/ticker v1.1.0 // indirect + github.com/lightningnetwork/lnd/tlv v1.1.0 // indirect + github.com/lightningnetwork/lnd/tor v1.1.0 // indirect + github.com/linxGnu/grocksdb v1.8.14 // indirect + github.com/manifoldco/promptui v0.9.0 // indirect + github.com/mattn/go-colorable v0.1.13 // indirect + github.com/mattn/go-isatty v0.0.20 // indirect + github.com/mholt/archiver/v3 v3.5.0 // indirect + github.com/miekg/dns v1.1.43 // indirect + github.com/minio/highwayhash v1.0.2 // indirect + github.com/mitchellh/go-homedir v1.1.0 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect + github.com/moby/term v0.0.0-20221205130635-1aeaba878587 // indirect + github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect + github.com/modern-go/reflect2 v1.0.2 // indirect + github.com/mtibben/percent v0.2.1 // indirect + github.com/nwaples/rardecode v1.1.2 // indirect + github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect + github.com/oklog/run v1.1.0 // indirect + github.com/opencontainers/go-digest v1.0.0 // indirect + github.com/opencontainers/image-spec v1.1.0-rc2 // indirect + github.com/opencontainers/runc v1.1.5 // indirect + github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect + github.com/pierrec/lz4/v4 v4.1.8 // indirect + github.com/pkg/errors v0.9.1 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + github.com/prometheus/client_model v0.6.1 // indirect + github.com/prometheus/common v0.52.2 // indirect + github.com/prometheus/procfs v0.13.0 // indirect + github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect + github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect + github.com/rogpeppe/go-internal v1.12.0 // indirect + github.com/rs/cors v1.8.3 // indirect + github.com/sasha-s/go-deadlock v0.3.1 // indirect + github.com/sirupsen/logrus v1.9.0 // indirect + github.com/soheilhy/cmux v0.1.5 // indirect + github.com/stretchr/objx v0.5.2 // indirect + github.com/supranational/blst v0.3.11 // indirect + github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect + github.com/tendermint/go-amino v0.16.0 // indirect + github.com/tidwall/btree v1.7.0 // indirect + github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect + github.com/ulikunitz/xz v0.5.11 // indirect + github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect + github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect + github.com/xeipuuv/gojsonschema v1.2.0 // indirect + github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect + github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect + github.com/zondax/hid v0.9.2 // indirect + github.com/zondax/ledger-go v0.14.3 // indirect + go.etcd.io/bbolt v1.3.8 // indirect + go.etcd.io/etcd/api/v3 v3.5.10 // indirect + go.etcd.io/etcd/client/pkg/v3 v3.5.10 // indirect + go.etcd.io/etcd/client/v2 v2.305.10 // indirect + go.etcd.io/etcd/client/v3 v3.5.10 // indirect + go.etcd.io/etcd/pkg/v3 v3.5.7 // indirect + go.etcd.io/etcd/raft/v3 v3.5.7 // indirect + go.etcd.io/etcd/server/v3 v3.5.7 // indirect + go.opencensus.io v0.24.0 // indirect + go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect + go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect + go.opentelemetry.io/otel v1.22.0 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.0.1 // indirect + go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.0.1 // indirect + go.opentelemetry.io/otel/metric v1.22.0 // indirect + go.opentelemetry.io/otel/sdk v1.21.0 // indirect + go.opentelemetry.io/otel/trace v1.22.0 // indirect + go.opentelemetry.io/proto/otlp v0.9.0 // indirect + go.uber.org/zap v1.26.0 // indirect + golang.org/x/mod v0.17.0 // indirect + golang.org/x/net v0.24.0 // indirect + golang.org/x/oauth2 v0.18.0 // indirect + golang.org/x/term v0.20.0 // indirect + golang.org/x/time v0.5.0 // indirect + golang.org/x/tools v0.20.0 // indirect + google.golang.org/api v0.162.0 // indirect + google.golang.org/appengine v1.6.8 // indirect + google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect + google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de // indirect + google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect + google.golang.org/grpc v1.63.2 // indirect + google.golang.org/protobuf v1.33.0 // indirect + gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect + gopkg.in/yaml.v2 v2.4.0 // indirect + gotest.tools/v3 v3.5.1 // indirect + lukechampine.com/uint128 v1.2.0 // indirect + modernc.org/cc/v3 v3.40.0 // indirect + modernc.org/ccgo/v3 v3.16.13 // indirect + modernc.org/libc v1.22.2 // indirect + modernc.org/mathutil v1.5.0 // indirect + modernc.org/memory v1.4.0 // indirect + modernc.org/opt v0.1.3 // indirect + modernc.org/sqlite v1.20.3 // indirect + modernc.org/strutil v1.1.3 // indirect + modernc.org/token v1.0.1 // indirect + nhooyr.io/websocket v1.8.6 // indirect + pgregory.net/rapid v1.1.0 // indirect + sigs.k8s.io/yaml v1.4.0 // indirect +) diff --git a/covenant-signer/go.sum b/covenant-signer/go.sum new file mode 100644 index 0000000..513c2c9 --- /dev/null +++ b/covenant-signer/go.sum @@ -0,0 +1,2099 @@ +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= +cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= +cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= +cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= +cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= +cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= +cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= +cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= +cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= +cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= +cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= +cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= +cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= +cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= +cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= +cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= +cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= +cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= +cloud.google.com/go v0.83.0/go.mod h1:Z7MJUsANfY0pYPdw0lbnivPx4/vhy/e2FEkSkF7vAVY= +cloud.google.com/go v0.84.0/go.mod h1:RazrYuxIK6Kb7YrzzhPoLmCVzl7Sup4NrbKPg8KHSUM= +cloud.google.com/go v0.87.0/go.mod h1:TpDYlFy7vuLzZMMZ+B6iRiELaY7z/gJPaqbMx6mlWcY= +cloud.google.com/go v0.90.0/go.mod h1:kRX0mNRHe0e2rC6oNakvwQqzyDmg57xJ+SZU1eT2aDQ= +cloud.google.com/go v0.93.3/go.mod h1:8utlLll2EF5XMAV15woO4lSbWQlk8rer9aLOfLh7+YI= +cloud.google.com/go v0.94.1/go.mod h1:qAlAugsXlC+JWO+Bke5vCtc9ONxjQT3drlTTnAplMW4= +cloud.google.com/go v0.97.0/go.mod h1:GF7l59pYBVlXQIBLx3a761cZ41F9bBH3JUlihCt2Udc= +cloud.google.com/go v0.99.0/go.mod h1:w0Xx2nLzqWJPuozYQX+hFfCSI8WioryfRDzkoI/Y2ZA= +cloud.google.com/go v0.100.2/go.mod h1:4Xra9TjzAeYHrl5+oeLlzbM2k3mjVhZh4UqTZ//w99A= +cloud.google.com/go v0.102.0/go.mod h1:oWcCzKlqJ5zgHQt9YsaeTY9KzIvjyy0ArmiBUgpQ+nc= +cloud.google.com/go v0.102.1/go.mod h1:XZ77E9qnTEnrgEOvr4xzfdX5TRo7fB4T2F4O6+34hIU= +cloud.google.com/go v0.104.0/go.mod h1:OO6xxXdJyvuJPcEPBLN9BJPD+jep5G1+2U5B5gkRYtA= +cloud.google.com/go v0.112.0 h1:tpFCD7hpHFlQ8yPwT3x+QeXqc2T6+n6T+hmABHfDUSM= +cloud.google.com/go v0.112.0/go.mod h1:3jEEVwZ/MHU4djK5t5RHuKOA/GbLddgTdVubX1qnPD4= +cloud.google.com/go/aiplatform v1.22.0/go.mod h1:ig5Nct50bZlzV6NvKaTwmplLLddFx0YReh9WfTO5jKw= +cloud.google.com/go/aiplatform v1.24.0/go.mod h1:67UUvRBKG6GTayHKV8DBv2RtR1t93YRu5B1P3x99mYY= +cloud.google.com/go/analytics v0.11.0/go.mod h1:DjEWCu41bVbYcKyvlws9Er60YE4a//bK6mnhWvQeFNI= +cloud.google.com/go/analytics v0.12.0/go.mod h1:gkfj9h6XRf9+TS4bmuhPEShsh3hH8PAZzm/41OOhQd4= +cloud.google.com/go/area120 v0.5.0/go.mod h1:DE/n4mp+iqVyvxHN41Vf1CR602GiHQjFPusMFW6bGR4= +cloud.google.com/go/area120 v0.6.0/go.mod h1:39yFJqWVgm0UZqWTOdqkLhjoC7uFfgXRC8g/ZegeAh0= +cloud.google.com/go/artifactregistry v1.6.0/go.mod h1:IYt0oBPSAGYj/kprzsBjZ/4LnG/zOcHyFHjWPCi6SAQ= +cloud.google.com/go/artifactregistry v1.7.0/go.mod h1:mqTOFOnGZx8EtSqK/ZWcsm/4U8B77rbcLP6ruDU2Ixk= +cloud.google.com/go/asset v1.5.0/go.mod h1:5mfs8UvcM5wHhqtSv8J1CtxxaQq3AdBxxQi2jGW/K4o= +cloud.google.com/go/asset v1.7.0/go.mod h1:YbENsRK4+xTiL+Ofoj5Ckf+O17kJtgp3Y3nn4uzZz5s= +cloud.google.com/go/asset v1.8.0/go.mod h1:mUNGKhiqIdbr8X7KNayoYvyc4HbbFO9URsjbytpUaW0= +cloud.google.com/go/assuredworkloads v1.5.0/go.mod h1:n8HOZ6pff6re5KYfBXcFvSViQjDwxFkAkmUFffJRbbY= +cloud.google.com/go/assuredworkloads v1.6.0/go.mod h1:yo2YOk37Yc89Rsd5QMVECvjaMKymF9OP+QXWlKXUkXw= +cloud.google.com/go/assuredworkloads v1.7.0/go.mod h1:z/736/oNmtGAyU47reJgGN+KVoYoxeLBoj4XkKYscNI= +cloud.google.com/go/automl v1.5.0/go.mod h1:34EjfoFGMZ5sgJ9EoLsRtdPSNZLcfflJR39VbVNS2M0= +cloud.google.com/go/automl v1.6.0/go.mod h1:ugf8a6Fx+zP0D59WLhqgTDsQI9w07o64uf/Is3Nh5p8= +cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= +cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= +cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= +cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= +cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= +cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= +cloud.google.com/go/bigquery v1.42.0/go.mod h1:8dRTJxhtG+vwBKzE5OseQn/hiydoQN3EedCaOdYmxRA= +cloud.google.com/go/billing v1.4.0/go.mod h1:g9IdKBEFlItS8bTtlrZdVLWSSdSyFUZKXNS02zKMOZY= +cloud.google.com/go/billing v1.5.0/go.mod h1:mztb1tBc3QekhjSgmpf/CV4LzWXLzCArwpLmP2Gm88s= +cloud.google.com/go/binaryauthorization v1.1.0/go.mod h1:xwnoWu3Y84jbuHa0zd526MJYmtnVXn0syOjaJgy4+dM= +cloud.google.com/go/binaryauthorization v1.2.0/go.mod h1:86WKkJHtRcv5ViNABtYMhhNWRrD1Vpi//uKEy7aYEfI= +cloud.google.com/go/cloudtasks v1.5.0/go.mod h1:fD92REy1x5woxkKEkLdvavGnPJGEn8Uic9nWuLzqCpY= +cloud.google.com/go/cloudtasks v1.6.0/go.mod h1:C6Io+sxuke9/KNRkbQpihnW93SWDU3uXt92nu85HkYI= +cloud.google.com/go/compute v0.1.0/go.mod h1:GAesmwr110a34z04OlxYkATPBEfVhkymfTBXtfbBFow= +cloud.google.com/go/compute v1.3.0/go.mod h1:cCZiE1NHEtai4wiufUhW8I8S1JKkAnhnQJWM7YD99wM= +cloud.google.com/go/compute v1.5.0/go.mod h1:9SMHyhJlzhlkJqrPAc839t2BZFTSk6Jdj6mkzQJeu0M= +cloud.google.com/go/compute v1.6.0/go.mod h1:T29tfhtVbq1wvAPo0E3+7vhgmkOYeXjhFvz/FMzPu0s= +cloud.google.com/go/compute v1.6.1/go.mod h1:g85FgpzFvNULZ+S8AYq87axRKuf2Kh7deLqV/jJ3thU= +cloud.google.com/go/compute v1.7.0/go.mod h1:435lt8av5oL9P3fv1OEzSbSUe+ybHXGMPQHHZWZxy9U= +cloud.google.com/go/compute v1.10.0/go.mod h1:ER5CLbMxl90o2jtNbGSbtfOpQKR0t15FOtRsugnLrlU= +cloud.google.com/go/compute v1.24.0 h1:phWcR2eWzRJaL/kOiJwfFsPs4BaKq1j6vnpZrc1YlVg= +cloud.google.com/go/compute v1.24.0/go.mod h1:kw1/T+h/+tK2LJK0wiPPx1intgdAM3j/g3hFDlscY40= +cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= +cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= +cloud.google.com/go/containeranalysis v0.5.1/go.mod h1:1D92jd8gRR/c0fGMlymRgxWD3Qw9C1ff6/T7mLgVL8I= +cloud.google.com/go/containeranalysis v0.6.0/go.mod h1:HEJoiEIu+lEXM+k7+qLCci0h33lX3ZqoYFdmPcoO7s4= +cloud.google.com/go/datacatalog v1.3.0/go.mod h1:g9svFY6tuR+j+hrTw3J2dNcmI0dzmSiyOzm8kpLq0a0= +cloud.google.com/go/datacatalog v1.5.0/go.mod h1:M7GPLNQeLfWqeIm3iuiruhPzkt65+Bx8dAKvScX8jvs= +cloud.google.com/go/datacatalog v1.6.0/go.mod h1:+aEyF8JKg+uXcIdAmmaMUmZ3q1b/lKLtXCmXdnc0lbc= +cloud.google.com/go/dataflow v0.6.0/go.mod h1:9QwV89cGoxjjSR9/r7eFDqqjtvbKxAK2BaYU6PVk9UM= +cloud.google.com/go/dataflow v0.7.0/go.mod h1:PX526vb4ijFMesO1o202EaUmouZKBpjHsTlCtB4parQ= +cloud.google.com/go/dataform v0.3.0/go.mod h1:cj8uNliRlHpa6L3yVhDOBrUXH+BPAO1+KFMQQNSThKo= +cloud.google.com/go/dataform v0.4.0/go.mod h1:fwV6Y4Ty2yIFL89huYlEkwUPtS7YZinZbzzj5S9FzCE= +cloud.google.com/go/datalabeling v0.5.0/go.mod h1:TGcJ0G2NzcsXSE/97yWjIZO0bXj0KbVlINXMG9ud42I= +cloud.google.com/go/datalabeling v0.6.0/go.mod h1:WqdISuk/+WIGeMkpw/1q7bK/tFEZxsrFJOJdY2bXvTQ= +cloud.google.com/go/dataqna v0.5.0/go.mod h1:90Hyk596ft3zUQ8NkFfvICSIfHFh1Bc7C4cK3vbhkeo= +cloud.google.com/go/dataqna v0.6.0/go.mod h1:1lqNpM7rqNLVgWBJyk5NF6Uen2PHym0jtVJonplVsDA= +cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= +cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= +cloud.google.com/go/datastream v1.2.0/go.mod h1:i/uTP8/fZwgATHS/XFu0TcNUhuA0twZxxQ3EyCUQMwo= +cloud.google.com/go/datastream v1.3.0/go.mod h1:cqlOX8xlyYF/uxhiKn6Hbv6WjwPPuI9W2M9SAXwaLLQ= +cloud.google.com/go/dialogflow v1.15.0/go.mod h1:HbHDWs33WOGJgn6rfzBW1Kv807BE3O1+xGbn59zZWI4= +cloud.google.com/go/dialogflow v1.16.1/go.mod h1:po6LlzGfK+smoSmTBnbkIZY2w8ffjz/RcGSS+sh1el0= +cloud.google.com/go/dialogflow v1.17.0/go.mod h1:YNP09C/kXA1aZdBgC/VtXX74G/TKn7XVCcVumTflA+8= +cloud.google.com/go/documentai v1.7.0/go.mod h1:lJvftZB5NRiFSX4moiye1SMxHx0Bc3x1+p9e/RfXYiU= +cloud.google.com/go/documentai v1.8.0/go.mod h1:xGHNEB7CtsnySCNrCFdCyyMz44RhFEEX2Q7UD0c5IhU= +cloud.google.com/go/domains v0.6.0/go.mod h1:T9Rz3GasrpYk6mEGHh4rymIhjlnIuB4ofT1wTxDeT4Y= +cloud.google.com/go/domains v0.7.0/go.mod h1:PtZeqS1xjnXuRPKE/88Iru/LdfoRyEHYA9nFQf4UKpg= +cloud.google.com/go/edgecontainer v0.1.0/go.mod h1:WgkZ9tp10bFxqO8BLPqv2LlfmQF1X8lZqwW4r1BTajk= +cloud.google.com/go/edgecontainer v0.2.0/go.mod h1:RTmLijy+lGpQ7BXuTDa4C4ssxyXT34NIuHIgKuP4s5w= +cloud.google.com/go/functions v1.6.0/go.mod h1:3H1UA3qiIPRWD7PeZKLvHZ9SaQhR26XIJcC0A5GbvAk= +cloud.google.com/go/functions v1.7.0/go.mod h1:+d+QBcWM+RsrgZfV9xo6KfA1GlzJfxcfZcRPEhDDfzg= +cloud.google.com/go/gaming v1.5.0/go.mod h1:ol7rGcxP/qHTRQE/RO4bxkXq+Fix0j6D4LFPzYTIrDM= +cloud.google.com/go/gaming v1.6.0/go.mod h1:YMU1GEvA39Qt3zWGyAVA9bpYz/yAhTvaQ1t2sK4KPUA= +cloud.google.com/go/gkeconnect v0.5.0/go.mod h1:c5lsNAg5EwAy7fkqX/+goqFsU1Da/jQFqArp+wGNr/o= +cloud.google.com/go/gkeconnect v0.6.0/go.mod h1:Mln67KyU/sHJEBY8kFZ0xTeyPtzbq9StAVvEULYK16A= +cloud.google.com/go/gkehub v0.9.0/go.mod h1:WYHN6WG8w9bXU0hqNxt8rm5uxnk8IH+lPY9J2TV7BK0= +cloud.google.com/go/gkehub v0.10.0/go.mod h1:UIPwxI0DsrpsVoWpLB0stwKCP+WFVG9+y977wO+hBH0= +cloud.google.com/go/grafeas v0.2.0/go.mod h1:KhxgtF2hb0P191HlY5besjYm6MqTSTj3LSI+M+ByZHc= +cloud.google.com/go/iam v0.3.0/go.mod h1:XzJPvDayI+9zsASAFO68Hk07u3z+f+JrT2xXNdp4bnY= +cloud.google.com/go/iam v0.5.0/go.mod h1:wPU9Vt0P4UmCux7mqtRu6jcpPAb74cP1fh50J3QpkUc= +cloud.google.com/go/iam v1.1.6 h1:bEa06k05IO4f4uJonbB5iAgKTPpABy1ayxaIZV/GHVc= +cloud.google.com/go/iam v1.1.6/go.mod h1:O0zxdPeGBoFdWW3HWmBxJsk0pfvNM/p/qa82rWOGTwI= +cloud.google.com/go/language v1.4.0/go.mod h1:F9dRpNFQmJbkaop6g0JhSBXCNlO90e1KWx5iDdxbWic= +cloud.google.com/go/language v1.6.0/go.mod h1:6dJ8t3B+lUYfStgls25GusK04NLh3eDLQnWM3mdEbhI= +cloud.google.com/go/lifesciences v0.5.0/go.mod h1:3oIKy8ycWGPUyZDR/8RNnTOYevhaMLqh5vLUXs9zvT8= +cloud.google.com/go/lifesciences v0.6.0/go.mod h1:ddj6tSX/7BOnhxCSd3ZcETvtNr8NZ6t/iPhY2Tyfu08= +cloud.google.com/go/mediatranslation v0.5.0/go.mod h1:jGPUhGTybqsPQn91pNXw0xVHfuJ3leR1wj37oU3y1f4= +cloud.google.com/go/mediatranslation v0.6.0/go.mod h1:hHdBCTYNigsBxshbznuIMFNe5QXEowAuNmmC7h8pu5w= +cloud.google.com/go/memcache v1.4.0/go.mod h1:rTOfiGZtJX1AaFUrOgsMHX5kAzaTQ8azHiuDoTPzNsE= +cloud.google.com/go/memcache v1.5.0/go.mod h1:dk3fCK7dVo0cUU2c36jKb4VqKPS22BTkf81Xq617aWM= +cloud.google.com/go/metastore v1.5.0/go.mod h1:2ZNrDcQwghfdtCwJ33nM0+GrBGlVuh8rakL3vdPY3XY= +cloud.google.com/go/metastore v1.6.0/go.mod h1:6cyQTls8CWXzk45G55x57DVQ9gWg7RiH65+YgPsNh9s= +cloud.google.com/go/networkconnectivity v1.4.0/go.mod h1:nOl7YL8odKyAOtzNX73/M5/mGZgqqMeryi6UPZTk/rA= +cloud.google.com/go/networkconnectivity v1.5.0/go.mod h1:3GzqJx7uhtlM3kln0+x5wyFvuVH1pIBJjhCpjzSt75o= +cloud.google.com/go/networksecurity v0.5.0/go.mod h1:xS6fOCoqpVC5zx15Z/MqkfDwH4+m/61A3ODiDV1xmiQ= +cloud.google.com/go/networksecurity v0.6.0/go.mod h1:Q5fjhTr9WMI5mbpRYEbiexTzROf7ZbDzvzCrNl14nyU= +cloud.google.com/go/notebooks v1.2.0/go.mod h1:9+wtppMfVPUeJ8fIWPOq1UnATHISkGXGqTkxeieQ6UY= +cloud.google.com/go/notebooks v1.3.0/go.mod h1:bFR5lj07DtCPC7YAAJ//vHskFBxA5JzYlH68kXVdk34= +cloud.google.com/go/osconfig v1.7.0/go.mod h1:oVHeCeZELfJP7XLxcBGTMBvRO+1nQ5tFG9VQTmYS2Fs= +cloud.google.com/go/osconfig v1.8.0/go.mod h1:EQqZLu5w5XA7eKizepumcvWx+m8mJUhEwiPqWiZeEdg= +cloud.google.com/go/oslogin v1.4.0/go.mod h1:YdgMXWRaElXz/lDk1Na6Fh5orF7gvmJ0FGLIs9LId4E= +cloud.google.com/go/oslogin v1.5.0/go.mod h1:D260Qj11W2qx/HVF29zBg+0fd6YCSjSqLUkY/qEenQU= +cloud.google.com/go/phishingprotection v0.5.0/go.mod h1:Y3HZknsK9bc9dMi+oE8Bim0lczMU6hrX0UpADuMefr0= +cloud.google.com/go/phishingprotection v0.6.0/go.mod h1:9Y3LBLgy0kDTcYET8ZH3bq/7qni15yVUoAxiFxnlSUA= +cloud.google.com/go/privatecatalog v0.5.0/go.mod h1:XgosMUvvPyxDjAVNDYxJ7wBW8//hLDDYmnsNcMGq1K0= +cloud.google.com/go/privatecatalog v0.6.0/go.mod h1:i/fbkZR0hLN29eEWiiwue8Pb+GforiEIBnV9yrRUOKI= +cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= +cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= +cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= +cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= +cloud.google.com/go/recaptchaenterprise v1.3.1/go.mod h1:OdD+q+y4XGeAlxRaMn1Y7/GveP6zmq76byL6tjPE7d4= +cloud.google.com/go/recaptchaenterprise/v2 v2.1.0/go.mod h1:w9yVqajwroDNTfGuhmOjPDN//rZGySaf6PtFVcSCa7o= +cloud.google.com/go/recaptchaenterprise/v2 v2.2.0/go.mod h1:/Zu5jisWGeERrd5HnlS3EUGb/D335f9k51B/FVil0jk= +cloud.google.com/go/recaptchaenterprise/v2 v2.3.0/go.mod h1:O9LwGCjrhGHBQET5CA7dd5NwwNQUErSgEDit1DLNTdo= +cloud.google.com/go/recommendationengine v0.5.0/go.mod h1:E5756pJcVFeVgaQv3WNpImkFP8a+RptV6dDLGPILjvg= +cloud.google.com/go/recommendationengine v0.6.0/go.mod h1:08mq2umu9oIqc7tDy8sx+MNJdLG0fUi3vaSVbztHgJ4= +cloud.google.com/go/recommender v1.5.0/go.mod h1:jdoeiBIVrJe9gQjwd759ecLJbxCDED4A6p+mqoqDvTg= +cloud.google.com/go/recommender v1.6.0/go.mod h1:+yETpm25mcoiECKh9DEScGzIRyDKpZ0cEhWGo+8bo+c= +cloud.google.com/go/redis v1.7.0/go.mod h1:V3x5Jq1jzUcg+UNsRvdmsfuFnit1cfe3Z/PGyq/lm4Y= +cloud.google.com/go/redis v1.8.0/go.mod h1:Fm2szCDavWzBk2cDKxrkmWBqoCiL1+Ctwq7EyqBCA/A= +cloud.google.com/go/retail v1.8.0/go.mod h1:QblKS8waDmNUhghY2TI9O3JLlFk8jybHeV4BF19FrE4= +cloud.google.com/go/retail v1.9.0/go.mod h1:g6jb6mKuCS1QKnH/dpu7isX253absFl6iE92nHwlBUY= +cloud.google.com/go/scheduler v1.4.0/go.mod h1:drcJBmxF3aqZJRhmkHQ9b3uSSpQoltBPGPxGAWROx6s= +cloud.google.com/go/scheduler v1.5.0/go.mod h1:ri073ym49NW3AfT6DZi21vLZrG07GXr5p3H1KxN5QlI= +cloud.google.com/go/secretmanager v1.6.0/go.mod h1:awVa/OXF6IiyaU1wQ34inzQNc4ISIDIrId8qE5QGgKA= +cloud.google.com/go/security v1.5.0/go.mod h1:lgxGdyOKKjHL4YG3/YwIL2zLqMFCKs0UbQwgyZmfJl4= +cloud.google.com/go/security v1.7.0/go.mod h1:mZklORHl6Bg7CNnnjLH//0UlAlaXqiG7Lb9PsPXLfD0= +cloud.google.com/go/security v1.8.0/go.mod h1:hAQOwgmaHhztFhiQ41CjDODdWP0+AE1B3sX4OFlq+GU= +cloud.google.com/go/securitycenter v1.13.0/go.mod h1:cv5qNAqjY84FCN6Y9z28WlkKXyWsgLO832YiWwkCWcU= +cloud.google.com/go/securitycenter v1.14.0/go.mod h1:gZLAhtyKv85n52XYWt6RmeBdydyxfPeTrpToDPw4Auc= +cloud.google.com/go/servicedirectory v1.4.0/go.mod h1:gH1MUaZCgtP7qQiI+F+A+OpeKF/HQWgtAddhTbhL2bs= +cloud.google.com/go/servicedirectory v1.5.0/go.mod h1:QMKFL0NUySbpZJ1UZs3oFAmdvVxhhxB6eJ/Vlp73dfg= +cloud.google.com/go/speech v1.6.0/go.mod h1:79tcr4FHCimOp56lwC01xnt/WPJZc4v3gzyT7FoBkCM= +cloud.google.com/go/speech v1.7.0/go.mod h1:KptqL+BAQIhMsj1kOP2la5DSEEerPDuOP/2mmkhHhZQ= +cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= +cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= +cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= +cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= +cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= +cloud.google.com/go/storage v1.22.1/go.mod h1:S8N1cAStu7BOeFfE8KAQzmyyLkK8p/vmRq6kuBTW58Y= +cloud.google.com/go/storage v1.23.0/go.mod h1:vOEEDNFnciUMhBeT6hsJIn3ieU5cFRmzeLgDvXzfIXc= +cloud.google.com/go/storage v1.27.0/go.mod h1:x9DOL8TK/ygDUMieqwfhdpQryTeEkhGKMi80i/iqR2s= +cloud.google.com/go/storage v1.36.0 h1:P0mOkAcaJxhCTvAkMhxMfrTKiNcub4YmmPBtlhAyTr8= +cloud.google.com/go/storage v1.36.0/go.mod h1:M6M/3V/D3KpzMTJyPOR/HU6n2Si5QdaXYEsng2xgOs8= +cloud.google.com/go/talent v1.1.0/go.mod h1:Vl4pt9jiHKvOgF9KoZo6Kob9oV4lwd/ZD5Cto54zDRw= +cloud.google.com/go/talent v1.2.0/go.mod h1:MoNF9bhFQbiJ6eFD3uSsg0uBALw4n4gaCaEjBw9zo8g= +cloud.google.com/go/videointelligence v1.6.0/go.mod h1:w0DIDlVRKtwPCn/C4iwZIJdvC69yInhW0cfi+p546uU= +cloud.google.com/go/videointelligence v1.7.0/go.mod h1:k8pI/1wAhjznARtVT9U1llUaFNPh7muw8QyOUpavru4= +cloud.google.com/go/vision v1.2.0/go.mod h1:SmNwgObm5DpFBme2xpyOyasvBc1aPdjvMk2bBk0tKD0= +cloud.google.com/go/vision/v2 v2.2.0/go.mod h1:uCdV4PpN1S0jyCyq8sIM42v2Y6zOLkZs+4R9LrGYwFo= +cloud.google.com/go/vision/v2 v2.3.0/go.mod h1:UO61abBx9QRMFkNBbf1D8B1LXdS2cGiiCRx0vSpZoUo= +cloud.google.com/go/webrisk v1.4.0/go.mod h1:Hn8X6Zr+ziE2aNd8SliSDWpEnSS1u4R9+xXZmFiHmGE= +cloud.google.com/go/webrisk v1.5.0/go.mod h1:iPG6fr52Tv7sGk0H6qUFzmL3HHZev1htXuWDEEsqMTg= +cloud.google.com/go/workflows v1.6.0/go.mod h1:6t9F5h/unJz41YqfBmqSASJSXccBLtD1Vwf+KmJENM0= +cloud.google.com/go/workflows v1.7.0/go.mod h1:JhSrZuVZWuiDfKEFxU0/F1PQjmpnpcoISEXH2bcHC3M= +cosmossdk.io/api v0.7.4 h1:sPo8wKwCty1lht8kgL3J7YL1voJywP3YWuA5JKkBz30= +cosmossdk.io/api v0.7.4/go.mod h1:IcxpYS5fMemZGqyYtErK7OqvdM0C8kdW3dq8Q/XIG38= +cosmossdk.io/client/v2 v2.0.0-beta.1 h1:XkHh1lhrLYIT9zKl7cIOXUXg2hdhtjTPBUfqERNA1/Q= +cosmossdk.io/client/v2 v2.0.0-beta.1/go.mod h1:JEUSu9moNZQ4kU3ir1DKD5eU4bllmAexrGWjmb9k8qU= +cosmossdk.io/collections v0.4.0 h1:PFmwj2W8szgpD5nOd8GWH6AbYNi1f2J6akWXJ7P5t9s= +cosmossdk.io/collections v0.4.0/go.mod h1:oa5lUING2dP+gdDquow+QjlF45eL1t4TJDypgGd+tv0= +cosmossdk.io/core v0.11.0 h1:vtIafqUi+1ZNAE/oxLOQQ7Oek2n4S48SWLG8h/+wdbo= +cosmossdk.io/core v0.11.0/go.mod h1:LaTtayWBSoacF5xNzoF8tmLhehqlA9z1SWiPuNC6X1w= +cosmossdk.io/depinject v1.0.0-alpha.4 h1:PLNp8ZYAMPTUKyG9IK2hsbciDWqna2z1Wsl98okJopc= +cosmossdk.io/depinject v1.0.0-alpha.4/go.mod h1:HeDk7IkR5ckZ3lMGs/o91AVUc7E596vMaOmslGFM3yU= +cosmossdk.io/errors v1.0.1 h1:bzu+Kcr0kS/1DuPBtUFdWjzLqyUuCiyHjyJB6srBV/0= +cosmossdk.io/errors v1.0.1/go.mod h1:MeelVSZThMi4bEakzhhhE/CKqVv3nOJDA25bIqRDu/U= +cosmossdk.io/log v1.3.1 h1:UZx8nWIkfbbNEWusZqzAx3ZGvu54TZacWib3EzUYmGI= +cosmossdk.io/log v1.3.1/go.mod h1:2/dIomt8mKdk6vl3OWJcPk2be3pGOS8OQaLUM/3/tCM= +cosmossdk.io/math v1.3.0 h1:RC+jryuKeytIiictDslBP9i1fhkVm6ZDmZEoNP316zE= +cosmossdk.io/math v1.3.0/go.mod h1:vnRTxewy+M7BtXBNFybkuhSH4WfedVAAnERHgVFhp3k= +cosmossdk.io/store v1.1.0 h1:LnKwgYMc9BInn9PhpTFEQVbL9UK475G2H911CGGnWHk= +cosmossdk.io/store v1.1.0/go.mod h1:oZfW/4Fc/zYqu3JmQcQdUJ3fqu5vnYTn3LZFFy8P8ng= +cosmossdk.io/x/circuit v0.1.0 h1:IAej8aRYeuOMritczqTlljbUVHq1E85CpBqaCTwYgXs= +cosmossdk.io/x/circuit v0.1.0/go.mod h1:YDzblVE8+E+urPYQq5kq5foRY/IzhXovSYXb4nwd39w= +cosmossdk.io/x/evidence v0.1.0 h1:J6OEyDl1rbykksdGynzPKG5R/zm6TacwW2fbLTW4nCk= +cosmossdk.io/x/evidence v0.1.0/go.mod h1:hTaiiXsoiJ3InMz1uptgF0BnGqROllAN8mwisOMMsfw= +cosmossdk.io/x/feegrant v0.1.0 h1:c7s3oAq/8/UO0EiN1H5BIjwVntujVTkYs35YPvvrdQk= +cosmossdk.io/x/feegrant v0.1.0/go.mod h1:4r+FsViJRpcZif/yhTn+E0E6OFfg4n0Lx+6cCtnZElU= +cosmossdk.io/x/nft v0.1.0 h1:VhcsFiEK33ODN27kxKLa0r/CeFd8laBfbDBwYqCyYCM= +cosmossdk.io/x/nft v0.1.0/go.mod h1:ec4j4QAO4mJZ+45jeYRnW7awLHby1JZANqe1hNZ4S3g= +cosmossdk.io/x/tx v0.13.3 h1:Ha4mNaHmxBc6RMun9aKuqul8yHiL78EKJQ8g23Zf73g= +cosmossdk.io/x/tx v0.13.3/go.mod h1:I8xaHv0rhUdIvIdptKIqzYy27+n2+zBVaxO6fscFhys= +cosmossdk.io/x/upgrade v0.1.1 h1:aoPe2gNvH+Gwt/Pgq3dOxxQVU3j5P6Xf+DaUJTDZATc= +cosmossdk.io/x/upgrade v0.1.1/go.mod h1:MNLptLPcIFK9CWt7Ra//8WUZAxweyRDNcbs5nkOcQy0= +dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= +dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +filippo.io/edwards25519 v1.0.0 h1:0wAIcmJUqRdI8IJ/3eGi5/HwXZWPujYXXlkrQogz0Ek= +filippo.io/edwards25519 v1.0.0/go.mod h1:N1IkdkCkiLB6tki+MYJoSx2JTY9NUlxZE7eHn5EwJns= +github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= +github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= +github.com/99designs/keyring v1.2.1 h1:tYLp1ULvO7i3fI5vE21ReQuj99QFSs7lGm0xWyJo87o= +github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwRStKOQ5vOA= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= +github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= +github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/CosmWasm/wasmd v0.51.0 h1:3A2o20RrdF7P1D3Xb+R7A/pHbbHWsYCDXrHLa7S0SC8= +github.com/CosmWasm/wasmd v0.51.0/go.mod h1:7TSaj5HoolghujuVWeExqmcUKgpcYWEySGLSODbnnwY= +github.com/CosmWasm/wasmvm/v2 v2.0.1 h1:0YCQ7MKGNri7NFeRp75erPJXrqyCtH4gdc9jMstyMzk= +github.com/CosmWasm/wasmvm/v2 v2.0.1/go.mod h1:su9lg5qLr7adV95eOfzjZWkGiky8WNaNIHDr7Fpu7Ck= +github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4= +github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= +github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= +github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= +github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= +github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= +github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= +github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= +github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= +github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= +github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= +github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5/go.mod h1:lmUJ/7eu/Q8D7ML55dXQrVaamCz2vxCfdQBasLZfHKk= +github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE= +github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= +github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo= +github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI= +github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE= +github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g= +github.com/adlio/schema v1.3.3 h1:oBJn8I02PyTB466pZO1UZEn1TV5XLlifBSyMrmHl/1I= +github.com/adlio/schema v1.3.3/go.mod h1:1EsRssiv9/Ce2CMzq5DoL7RiMshhuigQxrR4DMV9fHg= +github.com/aead/siphash v1.0.1 h1:FwHfE/T45KPKYuuSAKyyvE+oPWcaQ+CUmFW0bPlM+kg= +github.com/aead/siphash v1.0.1/go.mod h1:Nywa3cDsYNNK3gaciGTWPwHt0wlpNV15vwmswBAUSII= +github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c= +github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= +github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= +github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= +github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= +github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= +github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= +github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= +github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= +github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= +github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8= +github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= +github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= +github.com/aryann/difflib v0.0.0-20170710044230-e206f873d14a/go.mod h1:DAHtR1m6lCRdSC2Tm3DSWRPvIPr6xNKyeHdqDQSQT+A= +github.com/aws/aws-lambda-go v1.13.3/go.mod h1:4UKl9IzQMoD+QF79YdCuzCwp8VbmG4VAQwij/eHl5CU= +github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo= +github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= +github.com/aws/aws-sdk-go v1.44.312 h1:llrElfzeqG/YOLFFKjg1xNpZCFJ2xraIi3PqSuP+95k= +github.com/aws/aws-sdk-go v1.44.312/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI= +github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= +github.com/babylonlabs-io/babylon v0.12.1 h1:Qfmrq3pdDEZGq6DtMXxwiQjx0HD+t+U0cXQzsJfX15U= +github.com/babylonlabs-io/babylon v0.12.1/go.mod h1:ZOrTde9vs2xoqGTFw4xhupu2CMulnpywiuk0eh4kPOw= +github.com/babylonlabs-io/networks/parameters v0.2.2 h1:TCu39fZvjX5f6ZZrjhYe54M6wWxglNewuKu56yE+zrc= +github.com/babylonlabs-io/networks/parameters v0.2.2/go.mod h1:iEJVOzaLsE33vpP7J4u+CRGfkSIfErUAwRmgCFCBpyI= +github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= +github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= +github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= +github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM= +github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw= +github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas= +github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4= +github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816 h1:41iFGWnSlI2gVpmOtVTJZNodLdLQLn/KsJqFvXwnd/s= +github.com/bgentry/speakeasy v0.1.1-0.20220910012023-760eaf8b6816/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= +github.com/bits-and-blooms/bitset v1.10.0 h1:ePXTeiPEazB5+opbv5fr8umg2R/1NlzgDsyepwsSr88= +github.com/bits-and-blooms/bitset v1.10.0/go.mod h1:7hO7Gc7Pp1vODcmWvKMRA9BNmbv6a/7QIWpPxHddWR8= +github.com/boljen/go-bitmap v0.0.0-20151001105940-23cd2fb0ce7d h1:zsO4lp+bjv5XvPTF58Vq+qgmZEYZttJK+CWtSZhKenI= +github.com/boljen/go-bitmap v0.0.0-20151001105940-23cd2fb0ce7d/go.mod h1:f1iKL6ZhUWvbk7PdWVmOaak10o86cqMUYEmn1CZNGEI= +github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= +github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M= +github.com/btcsuite/btcd v0.22.0-beta.0.20220204213055-eaf0459ff879/go.mod h1:osu7EoKiL36UThEgzYPqdRaxeo0NU8VoXqgcnwpey0g= +github.com/btcsuite/btcd v0.22.0-beta.0.20220207191057-4dc4ff7963b4/go.mod h1:7alexyj/lHlOtr2PJK7L/+HDJZpcGDn/pAU98r7DY08= +github.com/btcsuite/btcd v0.23.1/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= +github.com/btcsuite/btcd v0.23.3/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= +github.com/btcsuite/btcd v0.23.5-0.20231215221805-96c9fd8078fd/go.mod h1:nm3Bko6zh6bWP60UxwoT5LzdGJsQJaPo6HjduXq9p6A= +github.com/btcsuite/btcd v0.24.2 h1:aLmxPguqxza+4ag8R1I2nnJjSu2iFn/kqtHTIImswcY= +github.com/btcsuite/btcd v0.24.2/go.mod h1:5C8ChTkl5ejr3WHj8tkQSCmydiMEPB0ZhQhehpq7Dgg= +github.com/btcsuite/btcd/btcec/v2 v2.1.0/go.mod h1:2VzYrv4Gm4apmbVVsSq5bqf1Ec8v56E48Vt0Y/umPgA= +github.com/btcsuite/btcd/btcec/v2 v2.1.3/go.mod h1:ctjw4H1kknNJmRN4iP1R7bTQ+v3GJkZBd6mui8ZsAZE= +github.com/btcsuite/btcd/btcec/v2 v2.3.2 h1:5n0X6hX0Zk+6omWcihdYvdAlGf2DfasC0GMf7DClJ3U= +github.com/btcsuite/btcd/btcec/v2 v2.3.2/go.mod h1:zYzJ8etWJQIv1Ogk7OzpWjowwOdXY1W/17j2MW85J04= +github.com/btcsuite/btcd/btcutil v1.0.0/go.mod h1:Uoxwv0pqYWhD//tfTiipkxNfdhG9UrLwaeswfjfdF0A= +github.com/btcsuite/btcd/btcutil v1.1.0/go.mod h1:5OapHB7A2hBBWLm48mmw4MOHNJCcUBTwmWH/0Jn8VHE= +github.com/btcsuite/btcd/btcutil v1.1.5 h1:+wER79R5670vs/ZusMTF1yTcRYE5GUsFbdjdisflzM8= +github.com/btcsuite/btcd/btcutil v1.1.5/go.mod h1:PSZZ4UitpLBWzxGd5VGOrLnmOjtPP/a6HaFo12zMs00= +github.com/btcsuite/btcd/btcutil/psbt v1.1.8 h1:4voqtT8UppT7nmKQkXV+T9K8UyQjKOn2z/ycpmJK8wg= +github.com/btcsuite/btcd/btcutil/psbt v1.1.8/go.mod h1:kA6FLH/JfUx++j9pYU0pyu+Z8XGBQuuTmuKYUf6q7/U= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 h1:59Kx4K6lzOW5w6nFlA0v5+lk/6sjybR934QNHSJZPTQ= +github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= +github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo= +github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= +github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= +github.com/btcsuite/btcwallet v0.16.10-0.20230621165747-9c21f464ce13 h1:7i0CzK+PP4+Dth9ia/eIBFRw8+K6MT8MfoFqBH43Xts= +github.com/btcsuite/btcwallet v0.16.10-0.20230621165747-9c21f464ce13/go.mod h1:Hl4PP/tSNcgN6himfx/020mYSa19a1qkqTuqQBUU97w= +github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 h1:poyHFf7+5+RdxNp5r2T6IBRD7RyraUsYARYbp/7t4D8= +github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4/go.mod h1:GETGDQuyq+VFfH1S/+/7slLM/9aNa4l7P4ejX6dJfb0= +github.com/btcsuite/btcwallet/wallet/txrules v1.2.0 h1:BtEN5Empw62/RVnZ0VcJaVtVlBijnLlJY+dwjAye2Bg= +github.com/btcsuite/btcwallet/wallet/txrules v1.2.0/go.mod h1:AtkqiL7ccKWxuLYtZm8Bu8G6q82w4yIZdgq6riy60z0= +github.com/btcsuite/btcwallet/wallet/txsizes v1.2.3 h1:PszOub7iXVYbtGybym5TGCp9Dv1h1iX4rIC3HICZGLg= +github.com/btcsuite/btcwallet/wallet/txsizes v1.2.3/go.mod h1:q08Rms52VyWyXcp5zDc4tdFRKkFgNsMQrv3/LvE1448= +github.com/btcsuite/btcwallet/walletdb v1.3.5/go.mod h1:oJDxAEUHVtnmIIBaa22wSBPTVcs6hUp5NKWmI8xDwwU= +github.com/btcsuite/btcwallet/walletdb v1.4.0 h1:/C5JRF+dTuE2CNMCO/or5N8epsrhmSM4710uBQoYPTQ= +github.com/btcsuite/btcwallet/walletdb v1.4.0/go.mod h1:oJDxAEUHVtnmIIBaa22wSBPTVcs6hUp5NKWmI8xDwwU= +github.com/btcsuite/btcwallet/wtxmgr v1.5.0 h1:WO0KyN4l6H3JWnlFxfGR7r3gDnlGT7W2cL8vl6av4SU= +github.com/btcsuite/btcwallet/wtxmgr v1.5.0/go.mod h1:TQVDhFxseiGtZwEPvLgtfyxuNUDsIdaJdshvWzR0HJ4= +github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw= +github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= +github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= +github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= +github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= +github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 h1:R8vQdOQdZ9Y3SkEwmHoWBmX1DNXhXZqlTpq6s4tyJGc= +github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= +github.com/btcsuite/winsvc v1.0.0 h1:J9B4L7e3oqhXOcm+2IuNApwzQec85lE+QaikUcCs+dk= +github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= +github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= +github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= +github.com/casbin/casbin/v2 v2.1.2/go.mod h1:YcPU1XXisHhLzuxH9coDNf2FbKpjGlbCg3n9yuLkIJQ= +github.com/cenkalti/backoff v2.2.1+incompatible h1:tNowT99t7UNflLxfYYSlKYsBpXdEet03Pg2g16Swow4= +github.com/cenkalti/backoff v2.2.1+incompatible/go.mod h1:90ReRw6GdpyfrHakVjL/QHaoyV4aDUVVkXQJJJ3NXXM= +github.com/cenkalti/backoff/v4 v4.1.1/go.mod h1:scbssz8iZGpm3xbr14ovlUdkxfGXNInqkPWOWmG2CLw= +github.com/cenkalti/backoff/v4 v4.2.0 h1:HN5dHm3WBOgndBH6E8V0q2jIYIR3s9yglV8k/+MN3u4= +github.com/cenkalti/backoff/v4 v4.2.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= +github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko= +github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc= +github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs= +github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= +github.com/checkpoint-restore/go-criu/v5 v5.3.0/go.mod h1:E/eQpaFtUKGOOSEBZgmKAcn+zUUwWxqcaKZlF54wK8E= +github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI= +github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= +github.com/cilium/ebpf v0.7.0/go.mod h1:/oI2+1shJiTGAMgl6/RgJr36Eo1jzrRcAWbcXO2usCA= +github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible/go.mod h1:nmEj6Dob7S7YxXgwXpfOuvO54S+tGdZdw9fuRZt25Ag= +github.com/circonus-labs/circonusllhist v0.1.3/go.mod h1:kMXHVDlOchFAehlya5ePtbp5jckzBHf4XRpQvBOLI+I= +github.com/clbanning/x2j v0.0.0-20191024224557-825249438eec/go.mod h1:jMjuTZXRI4dUb/I5gc9Hdhagfvm9+RyrPryS/auMzxE= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= +github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= +github.com/cncf/udpa/go v0.0.0-20210930031921-04548b0d99d4/go.mod h1:6pvJx4me5XPnfI9Z40ddWsdw2W/uZgQLFXToKeRcDiI= +github.com/cncf/xds/go v0.0.0-20210312221358-fbca930ec8ed/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa h1:jQCWAUqqlij9Pgj2i/PB79y4KOPYVyFYdROxgaCwdTQ= +github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa/go.mod h1:x/1Gn8zydmfq8dk6e9PdstVsDgu9RuyIIJqAaF//0IM= +github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I= +github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= +github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= +github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= +github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= +github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f h1:otljaYPt5hWxV3MUfO5dFPFiOXg9CyG5/kCfayTqsJ4= +github.com/cockroachdb/datadriven v1.0.3-0.20230413201302-be42291fc80f/go.mod h1:a9RdTaap04u637JoCzcUoIcDmvwSUtcUFtT/C3kJlTU= +github.com/cockroachdb/errors v1.11.1 h1:xSEW75zKaKCWzR3OfxXUxgrk/NtT4G1MiOv5lWZazG8= +github.com/cockroachdb/errors v1.11.1/go.mod h1:8MUxA3Gi6b25tYlFEBGLf+D8aISL+M4MIpiWMSNRfxw= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b h1:r6VH0faHjZeQy818SGhaone5OnYfxFR/+AzdY3sf5aE= +github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b/go.mod h1:Vz9DsVWQQhf3vs21MhPMZpMGSht7O/2vFW2xusFUVOs= +github.com/cockroachdb/pebble v1.1.0 h1:pcFh8CdCIt2kmEpK0OIatq67Ln9uGDYY3d5XnE0LJG4= +github.com/cockroachdb/pebble v1.1.0/go.mod h1:sEHm5NOXxyiAoKWhoFxT8xMgd/f3RA6qUqQ1BXKrh2E= +github.com/cockroachdb/redact v1.1.5 h1:u1PMllDkdFfPWaNGMyLD1+so+aq3uUItthCFqzwPJ30= +github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZZ2lK+dpvRg= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo= +github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ= +github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI= +github.com/cometbft/cometbft v0.38.7 h1:ULhIOJ9+LgSy6nLekhq9ae3juX3NnQUMMPyVdhZV6Hk= +github.com/cometbft/cometbft v0.38.7/go.mod h1:HIyf811dFMI73IE0F7RrnY/Fr+d1+HuJAgtkEpQjCMY= +github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M= +github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U= +github.com/containerd/console v1.0.3/go.mod h1:7LqA/THxQ86k76b8c/EMSiaJ3h1eZkMkXar0TQ1gf3U= +github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg= +github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1Ag8espWhkykbPM= +github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= +github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= +github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= +github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= +github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= +github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= +github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= +github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= +github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= +github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis= +github.com/cosmos/cosmos-db v1.0.2 h1:hwMjozuY1OlJs/uh6vddqnk9j7VamLv+0DBlbEXbAKs= +github.com/cosmos/cosmos-db v1.0.2/go.mod h1:Z8IXcFJ9PqKK6BIsVOB3QXtkKoqUOp1vRvPT39kOXEA= +github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA= +github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= +github.com/cosmos/cosmos-sdk v0.50.6 h1:efR3MsvMHX5sxS3be+hOobGk87IzlZbSpsI2x/Vw3hk= +github.com/cosmos/cosmos-sdk v0.50.6/go.mod h1:lVkRY6cdMJ0fG3gp8y4hFrsKZqF4z7y0M2UXFb9Yt40= +github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY= +github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw= +github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE= +github.com/cosmos/gogogateway v1.2.0/go.mod h1:iQpLkGWxYcnCdz5iAdLcRBSw3h7NXeOkZ4GUkT+tbFI= +github.com/cosmos/gogoproto v1.4.2/go.mod h1:cLxOsn1ljAHSV527CHOtaIP91kK6cCrZETRBrkzItWU= +github.com/cosmos/gogoproto v1.4.12 h1:vB6Lbe/rtnYGjQuFxkPiPYiCybqFT8QvLipDZP8JpFE= +github.com/cosmos/gogoproto v1.4.12/go.mod h1:LnZob1bXRdUoqMMtwYlcR3wjiElmlC+FkjaZRv1/eLY= +github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y= +github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM= +github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE= +github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco= +github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240429153234-e1e6da7e4ead h1:QB50+AmrEVqFr2hzvIxMkICziWQ/uuebze0vNYKMnBg= +github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240429153234-e1e6da7e4ead/go.mod h1:AJeroAXnPKeFpD1AfEfjYBHGEWt5gBfzUjgs4SYn2ZY= +github.com/cosmos/ibc-go/v8 v8.3.0 h1:fdW2S7NjZYFhSwmCaFjjyDv80kI1ePOJDQmco4qrnD0= +github.com/cosmos/ibc-go/v8 v8.3.0/go.mod h1:izwHZvn9lKrBn8xWj0aXWut6HKcwHMPD3uyuvOJoPSA= +github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM= +github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0= +github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM= +github.com/cosmos/ledger-cosmos-go v0.13.3/go.mod h1:HENcEP+VtahZFw38HZ3+LS3Iv5XV6svsnkk9vdJtLr8= +github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE= +github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= +github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= +github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= +github.com/creack/pty v1.1.18 h1:n56/Zwd5o6whRC5PMGretI4IdRLlmBXYNjScPaBgsbY= +github.com/creack/pty v1.1.18/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4= +github.com/cyphar/filepath-securejoin v0.2.3/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4= +github.com/danieljoos/wincred v1.1.2 h1:QLdCxFs1/Yl4zduvBdcHB8goaYk9RARS2SgLLRuAyr0= +github.com/danieljoos/wincred v1.1.2/go.mod h1:GijpziifJoIBfYh+S7BbkdUTU4LfM+QnGqR5Vl2tAx0= +github.com/davecgh/go-spew v0.0.0-20171005155431-ecdeabc65495/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/decred/dcrd/crypto/blake256 v1.0.0/go.mod h1:sQl2p6Y26YV+ZOcSTP6thNdn47hh8kt6rqSlvmrXFAc= +github.com/decred/dcrd/crypto/blake256 v1.0.1 h1:7PltbUIQB7u/FfZ39+DGa/ShuMyJ5ilcvdfma9wOH6Y= +github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPcCXqlm2ArzUIkw9czNJo= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= +github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= +github.com/decred/dcrd/lru v1.0.0 h1:Kbsb1SFDsIlaupWPwsPp+dkxiBY1frcS07PCPgotKz8= +github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= +github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= +github.com/dgraph-io/badger/v2 v2.2007.4 h1:TRWBQg8UrlUhaFdco01nO2uXwzKS7zd+HVdwV/GHc4o= +github.com/dgraph-io/badger/v2 v2.2007.4/go.mod h1:vSw/ax2qojzbN6eXHIx6KPKtCSHJN/Uz0X0VPruTIhk= +github.com/dgraph-io/ristretto v0.0.3-0.20200630154024-f66de99634de/go.mod h1:KPxhHT9ZxKefz+PCeOGsrHpl1qZ7i70dGTu2u+Ahh6E= +github.com/dgraph-io/ristretto v0.1.1 h1:6CWw5tJNgpegArSHpNHJKldNeq03FQCwYvfMVWajOK8= +github.com/dgraph-io/ristretto v0.1.1/go.mod h1:S1GPSBCYCIhmVNfcth17y2zZtQT6wzkzgwUve0VDWWA= +github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ= +github.com/dgryski/go-farm v0.0.0-20190423205320-6a90982ecee2/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 h1:fAjc9m62+UWV/WAFKLNi6ZS0675eEUC9y3AlwSbQu1Y= +github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13/go.mod h1:SqUrOPUnsFjfmXRMNPybcSiG0BgUW2AuFH8PAnS2iTw= +github.com/distribution/reference v0.5.0 h1:/FUIFXtfc/x2gpa5/VGfiGLuOIdYa1t65IKK2OFGvA0= +github.com/distribution/reference v0.5.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E= +github.com/docker/cli v25.0.6+incompatible h1:F1mCw1kUGixOkM8WQbcG5kniPvP8XCFxreFxl4b/UnY= +github.com/docker/cli v25.0.6+incompatible/go.mod h1:JLrzqnKDaYBop7H2jaqPtU4hHvMKP+vjCwu2uszcLI8= +github.com/docker/docker v25.0.6+incompatible h1:5cPwbwriIcsua2REJe8HqQV+6WlWc1byg2QSXzBxBGg= +github.com/docker/docker v25.0.6+incompatible/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk= +github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ= +github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec= +github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= +github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= +github.com/dsnet/compress v0.0.1 h1:PlZu0n3Tuv04TzpfPbrnI0HW/YwodEXDS+oPKahKF0Q= +github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= +github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= +github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= +github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= +github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto= +github.com/dvsekhvalnov/jose2go v1.6.0 h1:Y9gnSnP4qEI0+/uQkHvFXeD2PLPJeXEL+ySMEA2EjTY= +github.com/dvsekhvalnov/jose2go v1.6.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/eapache/go-resiliency v1.1.0/go.mod h1:kFI+JgMyC7bLPUVY133qvEBtVayf5mFgVsvEsIPBvNs= +github.com/eapache/go-xerial-snappy v0.0.0-20180814174437-776d5712da21/go.mod h1:+020luEh2TKB4/GOp8oxxtq0Daoen/Cii55CzbTV6DU= +github.com/eapache/queue v1.1.0/go.mod h1:6eCeP0CKFpHLu8blIFXhExK/dRa7WDZfr6jVFPTqq+I= +github.com/edsrzf/mmap-go v1.0.0/go.mod h1:YO35OhQPt3KJa3ryjFM5Bs14WD66h8eGKpfaBNrHW5M= +github.com/emicklei/dot v1.6.1 h1:ujpDlBkkwgWUY+qPId5IwapRW/xEoligRSYjioR6DFI= +github.com/emicklei/dot v1.6.1/go.mod h1:DeV7GvQtIw4h2u73RKBkkFdvVAz0D9fzeJrgPW6gy/s= +github.com/envoyproxy/go-control-plane v0.6.9/go.mod h1:SBwIajubJHhxtWwsL9s8ss4safvEdbitLhGGK48rN6g= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= +github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= +github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.mod h1:hliV/p42l8fGbc6Y9bQ70uLwIvmJyVE5k4iMKlh8wCQ= +github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= +github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/protoc-gen-validate v1.0.4 h1:gVPz/FMfvh57HdSJQyvBtF00j8JU4zdyUgIUNhlgg0A= +github.com/envoyproxy/protoc-gen-validate v1.0.4/go.mod h1:qys6tmnRsYrQqIhm2bvKZH4Blx/1gTIZ2UKVY1M+Yew= +github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= +github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= +github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= +github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= +github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= +github.com/fergusstrange/embedded-postgres v1.10.0 h1:YnwF6xAQYmKLAXXrrRx4rHDLih47YJwVPvg8jeKfdNg= +github.com/fergusstrange/embedded-postgres v1.10.0/go.mod h1:a008U8/Rws5FtIOTGYDYa7beVWsT3qVKyqExqYYjL+c= +github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= +github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= +github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= +github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8/go.mod h1:ZhphrRTfi2rbfLwlschooIH4+wKKDR4Pdxhh+TRoA20= +github.com/frankban/quicktest v1.11.3/go.mod h1:wRf/ReqHper53s+kmmSZizM8NamnL3IM0I9ntUbOk+k= +github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8= +github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0= +github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= +github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= +github.com/fsnotify/fsnotify v1.5.4/go.mod h1:OVB6XrOHzAwXMpEM7uPOzcehqUV2UqJxmVXmkdnm1bU= +github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= +github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= +github.com/getsentry/sentry-go v0.27.0 h1:Pv98CIbtB3LkMWmXi4Joa5OOcwbmnX88sF5qbK3r3Ps= +github.com/getsentry/sentry-go v0.27.0/go.mod h1:lc76E2QywIyW8WuBnwl8Lc4bkmQH4+w1gwTf25trprY= +github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= +github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE= +github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI= +github.com/gin-gonic/gin v1.6.3/go.mod h1:75u5sXoLsGZoRN5Sgbi1eraJ4GU3++wFwWzhwvtwp4M= +github.com/gin-gonic/gin v1.8.1 h1:4+fr/el88TOO3ewCmQr8cx/CtZ/umlIRIs5M4NTNjf8= +github.com/gin-gonic/gin v1.8.1/go.mod h1:ji8BvRH1azfM+SYow9zQ6SZMvR8qOMZHmsCuWR9tTTk= +github.com/go-chi/chi/v5 v5.0.12 h1:9euLV5sTrTNTRUU9POmDUvfxyj6LAABLUcEWO+JJb4s= +github.com/go-chi/chi/v5 v5.0.12/go.mod h1:DslCQbL2OYiznFReuXYUmQ2hGd1aDpCnlMNITLSKoi8= +github.com/go-errors/errors v1.4.2 h1:J6MZopCL4uSllY1OfXM374weqZFFItUbrImctkmUxIA= +github.com/go-errors/errors v1.4.2/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= +github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.9.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as= +github.com/go-kit/kit v0.10.0/go.mod h1:xUsJbQ/Fp4kEt7AFgCuvyX4a71u8h9jB8tj/ORgOZ7o= +github.com/go-kit/kit v0.12.0 h1:e4o3o3IsBfAKQh5Qbbiqyfu97Ku7jrO/JbohvztANh4= +github.com/go-kit/kit v0.12.0/go.mod h1:lHd+EkCZPIwYItmGDDRdhinkzX2A1sj+M9biaEaizzs= +github.com/go-kit/log v0.1.0/go.mod h1:zbhenjAZHb184qTLMA9ZjW7ThYL0H2mk7Q6pNt4vbaY= +github.com/go-kit/log v0.2.1 h1:MRVx0/zhvdseW+Gza6N9rVzU/IVzaeE1SFI4raAhmBU= +github.com/go-kit/log v0.2.1/go.mod h1:NwTd00d/i8cPZ3xOwwiv2PO5MOcx78fFErGNcVmBjv0= +github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE= +github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk= +github.com/go-logfmt/logfmt v0.5.0/go.mod h1:wCYkCAKZfumFQihp8CzCvQ3paCTfi41vtzG1KdI/P7A= +github.com/go-logfmt/logfmt v0.6.0 h1:wGYYu3uicYdqXVgoYbvnkrPVXkuLM1p1ifugDMEdRi4= +github.com/go-logfmt/logfmt v0.6.0/go.mod h1:WYhtIu8zTZfxdn5+rREduYbwxfcBr/Vr6KEVveWlfTs= +github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= +github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= +github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-logr/stdr v1.2.2 h1:hSWxHoqTgW2S2qGc0LTAI563KZ5YKYRhT3MFKZMbjag= +github.com/go-logr/stdr v1.2.2/go.mod h1:mMo/vtBO5dYbehREoey6XUKy/eSumjCCveDpRre4VKE= +github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4= +github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8= +github.com/go-playground/locales v0.14.0 h1:u50s323jtVGugKlcYeyzC0etD1HifMjqmJqb8WugfUU= +github.com/go-playground/locales v0.14.0/go.mod h1:sawfccIbzZTqEDETgFXqTho0QybSa7l++s0DH+LDiLs= +github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA= +github.com/go-playground/universal-translator v0.18.0 h1:82dyy6p4OuJq4/CByFNOn/jYrnRPArHwAcmLoJZxyho= +github.com/go-playground/universal-translator v0.18.0/go.mod h1:UvRDBj+xPUEGrFYl+lu/H90nyDXpg0fqeB/AQUGNTVA= +github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= +github.com/go-playground/validator/v10 v10.11.1 h1:prmOlTVv+YjZjmRmNSF3VmspqJIxJWXmqUsHwfTRRkQ= +github.com/go-playground/validator/v10 v10.11.1/go.mod h1:i+3WkQ1FvaUjjxh1kSvIA4dMGDBiPU55YFDl0WbKdWU= +github.com/go-sql-driver/mysql v1.4.0/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-sql-driver/mysql v1.6.0 h1:BCTh4TKNUYmOmMUcQ3IipzF5prigylS7XXjEkfCHuOE= +github.com/go-sql-driver/mysql v1.6.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= +github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee/go.mod h1:L0fX3K22YWvt/FAX9NnzrNzcI4wNYi9Yku4O0LKYflo= +github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU= +github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= +github.com/gobwas/pool v0.2.0/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og= +github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.0.2 h1:CoAavW/wd/kulfZmSIBt6p24n4j7tHgNVCjsfHVNUbo= +github.com/gobwas/ws v1.0.2/go.mod h1:szmBTxLgaFppYjEmNtny/v3w89xOydFnnZMcgRRu/EM= +github.com/goccy/go-json v0.9.11 h1:/pAaQDLHEoCq/5FFmSKBswWmK6H0e8g4159Kc/X/nqk= +github.com/goccy/go-json v0.9.11/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I= +github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= +github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= +github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= +github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA= +github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= +github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= +github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= +github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= +github.com/gogo/googleapis v1.4.1/go.mod h1:2lpHqI5OcWCtVElxXnPt+s8oJvMpySlOyM6xDCrzib4= +github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.0/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ= +github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4= +github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= +github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= +github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= +github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= +github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= +github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= +github.com/golang/groupcache v0.0.0-20160516000752-02826c3e7903/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= +github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= +github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= +github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= +github.com/golang/mock v1.6.0 h1:ErTB+efbowRARo13NNdxyJji2egdxLGQhRaY+DUumQc= +github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.0/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0= +github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= +github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= +github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb h1:PBC98N2aIaM3XXiurYmW7fx4GZkL8feAMVq7nEjURHk= +github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= +github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= +github.com/google/btree v1.1.2 h1:xf4v41cLI2Z6FxbKm+8Bu+m8ifhj15JuZ9sa0jZCMUU= +github.com/google/btree v1.1.2/go.mod h1:qOPhT0dTNdNzV6Z/lhRX0YXUafgPLFUh+gZMl761Gm4= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.6/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE= +github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/gofuzz v0.0.0-20170612174753-24818f796faf/go.mod h1:HP5RmnzzSNb993RKQDq4+1A4ia9nllfqcQFTQJedwGI= +github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0= +github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= +github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= +github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= +github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= +github.com/google/martian/v3 v3.2.1/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/martian/v3 v3.3.2 h1:IqNFLAmvJOgVlpdEBiQbDc2EwKW77amAycfTuWKdfvw= +github.com/google/martian/v3 v3.3.2/go.mod h1:oBOf6HBosgwRXnUGWUB05QECsc6uvmMiJ3+6W4l/CUk= +github.com/google/orderedcode v0.0.1 h1:UzfcAexk9Vhv8+9pNOgRu41f16lHq725vPwnSeiG/Us= +github.com/google/orderedcode v0.0.1/go.mod h1:iVyU4/qPKHY5h/wSd6rZZCDcLJNxiWO6dvsYES2Sb20= +github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= +github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= +github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10 h1:CqYfpuYIjnlNxM3msdyPRKabhXZWbKjf3Q8BWROFBso= +github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk= +github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= +github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= +github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= +github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= +github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510/go.mod h1:pupxD2MaaD3pAXIBCelhxNneeOaAeabZDe5s4K6zSpQ= +github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/googleapis/enterprise-certificate-proxy v0.0.0-20220520183353-fd19c99a87aa/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.1.0/go.mod h1:17drOmN3MwGY7t0e+Ei9b45FFGA3fBs3x36SsCg1hq8= +github.com/googleapis/enterprise-certificate-proxy v0.2.0/go.mod h1:8C0jb7/mgJe/9KK8Lm7X9ctZC2t60YyIpYEI16jx0Qg= +github.com/googleapis/enterprise-certificate-proxy v0.3.2 h1:Vie5ybvEvT75RniqhfFxPRy3Bf7vr3h0cechB90XaQs= +github.com/googleapis/enterprise-certificate-proxy v0.3.2/go.mod h1:VLSiSSBs/ksPL8kq3OBOQ6WRI2QnaFynd1DCjZ62+V0= +github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= +github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= +github.com/googleapis/gax-go/v2 v2.1.0/go.mod h1:Q3nei7sK6ybPYH7twZdmQpAd1MKb7pfu6SK+H1/DsU0= +github.com/googleapis/gax-go/v2 v2.1.1/go.mod h1:hddJymUZASv3XPyGkUpKj8pPO47Rmb0eJc8R6ouapiM= +github.com/googleapis/gax-go/v2 v2.2.0/go.mod h1:as02EH8zWkzwUoLbBaFeQ+arQaj/OthfcblKl4IGNaM= +github.com/googleapis/gax-go/v2 v2.3.0/go.mod h1:b8LNqSzNabLiUpXKkY7HAR5jr6bIT99EXz9pXxye9YM= +github.com/googleapis/gax-go/v2 v2.4.0/go.mod h1:XOTVJ59hdnfJLIP/dh8n5CGryZR2LxK9wbMD5+iXC6c= +github.com/googleapis/gax-go/v2 v2.5.1/go.mod h1:h6B0KMMFNtI2ddbGJn3T3ZbwkeT6yqEF02fYlzkUCyo= +github.com/googleapis/gax-go/v2 v2.6.0/go.mod h1:1mjbznJAPHFpesgE5ucqfYEscaz5kMdcIDwU/6+DDoY= +github.com/googleapis/gax-go/v2 v2.12.0 h1:A+gCJKdRfqXkr+BIRGtZLibNXf0m1f9E4HG56etFpas= +github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= +github.com/googleapis/go-type-adapters v1.0.0/go.mod h1:zHW75FOG2aur7gAO2B+MLby+cLsWGBF62rFAi7WjWO4= +github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= +github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg= +github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= +github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= +github.com/gorilla/mux v1.6.2/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.7.3/go.mod h1:1lud6UwP+6orDFRuTfBEV8e9/aOM/c4fVVCaMa2zaAs= +github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= +github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= +github.com/gorilla/websocket v0.0.0-20170926233335-4201258b820c/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ= +github.com/gorilla/websocket v1.4.1/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.0/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE= +github.com/gorilla/websocket v1.5.1 h1:gmztn0JnHVt9JZquRuzLw3g4wouNVzKL15iLr/zn/QY= +github.com/gorilla/websocket v1.5.1/go.mod h1:x3kM2JMyaluk02fnUJpQuwD2dCS5NDG2ZHL0uE0tcaY= +github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de4/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs= +github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= +github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= +github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= +github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= +github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= +github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= +github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= +github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= +github.com/hashicorp/consul/api v1.3.0/go.mod h1:MmDNSzIMUjNpY/mQ398R4bk2FnqQLoPndWW5VkKPlCE= +github.com/hashicorp/consul/sdk v0.3.0/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= +github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ= +github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48= +github.com/hashicorp/go-getter v1.7.3 h1:bN2+Fw9XPFvOCjB0UOevFIMICZ7G2XSQHzfvLUyOM5E= +github.com/hashicorp/go-getter v1.7.3/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= +github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= +github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= +github.com/hashicorp/go-metrics v0.5.3 h1:M5uADWMOGCTUNU1YuC4hfknOeHNaX54LDm4oYSucoNE= +github.com/hashicorp/go-metrics v0.5.3/go.mod h1:KEjodfebIOuBYSAe/bHTm+HChmKSxAOXPBieMLYozDE= +github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/hashicorp/go-plugin v1.5.2 h1:aWv8eimFqWlsEiMrYZdPYl+FdHaBJSN4AWwGWfT1G2Y= +github.com/hashicorp/go-plugin v1.5.2/go.mod h1:w1sAEES3g3PuV/RzUrgow20W2uErMly84hhD3um1WL4= +github.com/hashicorp/go-retryablehttp v0.5.3/go.mod h1:9B5zBasrRhHXnJnui7y6sL7es7NDiJgTc6Er0maI1Xs= +github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= +github.com/hashicorp/go-safetemp v1.0.0 h1:2HR189eFNrjHQyENnQMMpCiBAsRxzbTMIgBhEyExpmo= +github.com/hashicorp/go-safetemp v1.0.0/go.mod h1:oaerMy3BhqiTbVye6QuFhFtIceqFoDHxNAB65b+Rj1I= +github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= +github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= +github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-uuid v1.0.2 h1:cfejS+Tpcp13yd5nYHWDI6qVCny6wyX2Mt5SGur2IGE= +github.com/hashicorp/go-uuid v1.0.2/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= +github.com/hashicorp/go-version v1.2.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mOkIeek= +github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= +github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= +github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= +github.com/hashicorp/golang-lru v1.0.2 h1:dV3g9Z/unq5DpblPpw+Oqcv4dU/1omnb4Ok8iPY6p1c= +github.com/hashicorp/golang-lru v1.0.2/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= +github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= +github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= +github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= +github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= +github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= +github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= +github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE= +github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ= +github.com/hdevalence/ed25519consensus v0.1.0 h1:jtBwzzcHuTmFrQN6xQZn6CQEO/V9f7HsjsjeEZ6auqU= +github.com/hdevalence/ed25519consensus v0.1.0/go.mod h1:w3BHWjwJbFU29IRHL1Iqkw3sus+7FctEyM4RqDxYNzo= +github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= +github.com/huandu/go-assert v1.1.5 h1:fjemmA7sSfYHJD7CUqs9qTwwfdNAx7/j2/ZlHXzNB3c= +github.com/huandu/go-assert v1.1.5/go.mod h1:yOLvuqZwmcHIC5rIzrBhT7D3Q9c3GFnd0JrPVhn/06U= +github.com/huandu/skiplist v1.2.0 h1:gox56QD77HzSC0w+Ws3MH3iie755GBJU1OER3h5VsYw= +github.com/huandu/skiplist v1.2.0/go.mod h1:7v3iFjLcSAzO4fN5B8dvebvo/qsfumiLiDXMrPiHF9w= +github.com/hudl/fargo v1.3.0/go.mod h1:y3CKSmjA+wD2gak7sUSXTAoopbhU08POFhmITJgmKTg= +github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= +github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= +github.com/improbable-eng/grpc-web v0.15.0 h1:BN+7z6uNXZ1tQGcNAuaU1YjsLTApzkjt2tzCixLaUPQ= +github.com/improbable-eng/grpc-web v0.15.0/go.mod h1:1sy9HKV4Jt9aEs9JSnkWlRJPuPtwNr0l57L4f878wP8= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= +github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= +github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= +github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo= +github.com/jackc/chunkreader/v2 v2.0.0/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk= +github.com/jackc/chunkreader/v2 v2.0.1 h1:i+RDz65UE+mmpjTfyz0MoVTnzeYxroil2G82ki7MGG8= +github.com/jackc/chunkreader/v2 v2.0.1/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk= +github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3/go.mod h1:jkELnwuX+w9qN5YIfX0fl88Ehu4XC3keFuOJJk9pcnA= +github.com/jackc/pgconn v0.0.0-20190824142844-760dd75542eb/go.mod h1:lLjNuW/+OfW9/pnVKPazfWOgNfH2aPem8YQ7ilXGvJE= +github.com/jackc/pgconn v0.0.0-20190831204454-2fabfa3c18b7/go.mod h1:ZJKsE/KZfsUgOEh9hBm+xYTstcNHg7UPMVJqRfQxq4s= +github.com/jackc/pgconn v1.8.0/go.mod h1:1C2Pb36bGIP9QHGBYCjnyhqu7Rv3sGshaQUvmfGIB/o= +github.com/jackc/pgconn v1.9.0/go.mod h1:YctiPyvzfU11JFxoXokUOOKQXQmDMoJL9vJzHH8/2JY= +github.com/jackc/pgconn v1.9.1-0.20210724152538-d89c8390a530/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI= +github.com/jackc/pgconn v1.10.0 h1:4EYhlDVEMsJ30nNj0mmgwIUXoq7e9sMJrVC2ED6QlCU= +github.com/jackc/pgconn v1.10.0/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI= +github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE= +github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8= +github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE= +github.com/jackc/pgmock v0.0.0-20201204152224-4fe30f7445fd/go.mod h1:hrBW0Enj2AZTNpt/7Y5rr2xe/9Mn757Wtb2xeBzPv2c= +github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65 h1:DadwsjnMwFjfWc9y5Wi/+Zz7xoE5ALHsRQlOctkOiHc= +github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65/go.mod h1:5R2h2EEX+qri8jOWMbJCtaPWkrrNc7OHwsp2TCqp7ak= +github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= +github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= +github.com/jackc/pgproto3 v1.1.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78= +github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA= +github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190609003834-432c2951c711/go.mod h1:uH0AWtUmuShn0bcesswc4aBTWGvw0cAxIJp+6OB//Wg= +github.com/jackc/pgproto3/v2 v2.0.0-rc3/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM= +github.com/jackc/pgproto3/v2 v2.0.0-rc3.0.20190831210041-4c03ce451f29/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM= +github.com/jackc/pgproto3/v2 v2.0.6/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= +github.com/jackc/pgproto3/v2 v2.1.1 h1:7PQ/4gLoqnl87ZxL7xjO0DR5gYuviDCZxQJsUlFW1eI= +github.com/jackc/pgproto3/v2 v2.1.1/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= +github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b h1:C8S2+VttkHFdOOCXJe+YGfa4vHYwlt4Zx+IVXQ97jYg= +github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E= +github.com/jackc/pgtype v0.0.0-20190421001408-4ed0de4755e0/go.mod h1:hdSHsc1V01CGwFsrv11mJRHWJ6aifDLfdV3aVjFF0zg= +github.com/jackc/pgtype v0.0.0-20190824184912-ab885b375b90/go.mod h1:KcahbBH1nCMSo2DXpzsoWOAfFkdEtEJpPbVLq8eE+mc= +github.com/jackc/pgtype v0.0.0-20190828014616-a8802b16cc59/go.mod h1:MWlu30kVJrUS8lot6TQqcg7mtthZ9T0EoIBFiJcmcyw= +github.com/jackc/pgtype v1.8.1-0.20210724151600-32e20a603178/go.mod h1:C516IlIV9NKqfsMCXTdChteoXmwgUceqaLfjg2e3NlM= +github.com/jackc/pgtype v1.8.1 h1:9k0IXtdJXHJbyAWQgbWr1lU+MEhPXZz6RIXxfR5oxXs= +github.com/jackc/pgtype v1.8.1/go.mod h1:LUMuVrfsFfdKGLw+AFFVv6KtHOFMwRgDDzBt76IqCA4= +github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08CZQyj1PVQBHy9XOp5p8/SHH6a0psbY9Y= +github.com/jackc/pgx/v4 v4.0.0-20190421002000-1b8f0016e912/go.mod h1:no/Y67Jkk/9WuGR0JG/JseM9irFbnEPbuWV2EELPNuM= +github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQnOEnf1dqHGpw7JmHqHc1NxDoalibchSk9/RWuDc= +github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgSXP7iUjYm9C1NxKhny7lq6ee99u/z+IHFcgs= +github.com/jackc/pgx/v4 v4.13.0 h1:JCjhT5vmhMAf/YwBHLvrBn4OGdIQBiFG6ym8Zmdx570= +github.com/jackc/pgx/v4 v4.13.0/go.mod h1:9P4X524sErlaxj0XSGZk7s+LD0eOyu1ZDUrrpznYDF0= +github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= +github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= +github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= +github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA= +github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= +github.com/jhump/protoreflect v1.15.3 h1:6SFRuqU45u9hIZPJAoZ8c28T3nK64BNdp9w6jFonzls= +github.com/jhump/protoreflect v1.15.3/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k= +github.com/jinzhu/copier v0.3.5 h1:GlvfUwHk62RokgqVNvYsku0TATCF7bAHVwEXoBh3iJg= +github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S8hyyg= +github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af/go.mod h1:Nht3zPeWKUH0NzdCt2Blrr5ys8VGpn0CEB0cQHVjt7k= +github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg= +github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo= +github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8= +github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U= +github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= +github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= +github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= +github.com/jonboulle/clockwork v0.2.2 h1:UOGuzwb1PwsrDAObMuhUnj0p5ULPj8V/xJ7Kx9qUBdQ= +github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= +github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= +github.com/jrick/logrotate v1.0.0 h1:lQ1bL/n9mBNeIXoTUoYRlK4dHuNJVofX9oWqBtPnSzI= +github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= +github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= +github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.8/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= +github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= +github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= +github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= +github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= +github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= +github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= +github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= +github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= +github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= +github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= +github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= +github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= +github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= +github.com/kkdai/bstream v1.0.0 h1:Se5gHwgp2VT2uHfDrkbbgbgEvV9cimLELwrPJctSjg8= +github.com/kkdai/bstream v1.0.0/go.mod h1:FDnDOHt5Yx4p3FaHcioFT0QjDOtgUpvjeZqAs+NVZZA= +github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= +github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= +github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= +github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= +github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= +github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= +github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= +github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= +github.com/klauspost/pgzip v1.2.5 h1:qnWYvvKqedOF2ulHpMG72XQol4ILEJ8k2wwRl/Km8oE= +github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= +github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= +github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= +github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= +github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= +github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= +github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= +github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= +github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= +github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= +github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= +github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= +github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= +github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI/f/O0Avg7t8sqkPo78HFzjmeYFl6DPnc= +github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk= +github.com/lightninglabs/neutrino v0.15.0 h1:yr3uz36fLAq8hyM0TRUVlef1TRNoWAqpmmNlVtKUDtI= +github.com/lightninglabs/neutrino v0.15.0/go.mod h1:pmjwElN/091TErtSE9Vd5W4hpxoG2/+xlb+HoPm9Gug= +github.com/lightninglabs/neutrino/cache v1.1.1 h1:TllWOSlkABhpgbWJfzsrdUaDH2fBy/54VSIB4vVqV8M= +github.com/lightninglabs/neutrino/cache v1.1.1/go.mod h1:XJNcgdOw1LQnanGjw8Vj44CvguYA25IMKjWFZczwZuo= +github.com/lightningnetwork/lnd v0.16.4-beta.rc1 h1:L8ktsv1lM5esVtiOlEtOBqU1dCoDckbm0FkcketBskQ= +github.com/lightningnetwork/lnd v0.16.4-beta.rc1/go.mod h1:sK9F98TpFuO/fjLCX4jEjc65qr2GZGs8IquVde1N46I= +github.com/lightningnetwork/lnd/clock v1.0.1/go.mod h1:KnQudQ6w0IAMZi1SgvecLZQZ43ra2vpDNj7H/aasemg= +github.com/lightningnetwork/lnd/clock v1.1.0 h1:/yfVAwtPmdx45aQBoXQImeY7sOIEr7IXlImRMBOZ7GQ= +github.com/lightningnetwork/lnd/clock v1.1.0/go.mod h1:KnQudQ6w0IAMZi1SgvecLZQZ43ra2vpDNj7H/aasemg= +github.com/lightningnetwork/lnd/healthcheck v1.2.2 h1:im+qcpgSuteqRCGeorT9yqVXuLrS6A7/acYzGgarMS4= +github.com/lightningnetwork/lnd/healthcheck v1.2.2/go.mod h1:IWY0GChlarRbXFkFDdE4WY5POYJabe/7/H1iCZt4ZKs= +github.com/lightningnetwork/lnd/kvdb v1.4.1 h1:l/nLBPLbdvP/lajMtrFMLzAi5OoLTH3+zUU6SwoEEv8= +github.com/lightningnetwork/lnd/kvdb v1.4.1/go.mod h1:f+F7Da8HTa8MePFsdWvusGRdcmWTgSWykGsVyC02Z5M= +github.com/lightningnetwork/lnd/queue v1.1.0 h1:YpCJjlIvVxN/R7ww2aNiY8ex7U2fucZDLJ67tI3HFx8= +github.com/lightningnetwork/lnd/queue v1.1.0/go.mod h1:YTkTVZCxz8tAYreH27EO3s8572ODumWrNdYW2E/YKxg= +github.com/lightningnetwork/lnd/ticker v1.0.0/go.mod h1:iaLXJiVgI1sPANIF2qYYUJXjoksPNvGNYowB8aRbpX0= +github.com/lightningnetwork/lnd/ticker v1.1.0 h1:ShoBiRP3pIxZHaETndfQ5kEe+S4NdAY1hiX7YbZ4QE4= +github.com/lightningnetwork/lnd/ticker v1.1.0/go.mod h1:ubqbSVCn6RlE0LazXuBr7/Zi6QT0uQo++OgIRBxQUrk= +github.com/lightningnetwork/lnd/tlv v1.1.0 h1:gsyte75HVuA/X59O+BhaISHM6OobZ0YesPbdu+xG1h0= +github.com/lightningnetwork/lnd/tlv v1.1.0/go.mod h1:0+JKp4un47MG1lnj6jKa8woNeB1X7w3yF4MZB1NHiiE= +github.com/lightningnetwork/lnd/tor v1.0.0/go.mod h1:RDtaAdwfAm+ONuPYwUhNIH1RAvKPv+75lHPOegUcz64= +github.com/lightningnetwork/lnd/tor v1.1.0 h1:iXO7fSzjxTI+p88KmtpbuyuRJeNfgtpl9QeaAliILXE= +github.com/lightningnetwork/lnd/tor v1.1.0/go.mod h1:RDtaAdwfAm+ONuPYwUhNIH1RAvKPv+75lHPOegUcz64= +github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= +github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= +github.com/linxGnu/grocksdb v1.8.14 h1:HTgyYalNwBSG/1qCQUIott44wU5b2Y9Kr3z7SK5OfGQ= +github.com/linxGnu/grocksdb v1.8.14/go.mod h1:QYiYypR2d4v63Wj1adOOfzglnoII0gLj3PNh4fZkcFA= +github.com/lyft/protoc-gen-validate v0.0.13/go.mod h1:XbGvPuh87YZc5TdIa2/I4pLk0QoUACkjt2znoq26NVQ= +github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ= +github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY= +github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0= +github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= +github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= +github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= +github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= +github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= +github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= +github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= +github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= +github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= +github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= +github.com/mattn/go-sqlite3 v1.14.15 h1:vfoHhTN1af61xCRSWzFIWzx2YskyMTwHLrExkBOjvxI= +github.com/mattn/go-sqlite3 v1.14.15/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= +github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= +github.com/mholt/archiver/v3 v3.5.0 h1:nE8gZIrw66cu4osS/U7UW7YDuGMHssxKutU8IfWxwWE= +github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= +github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= +github.com/miekg/dns v1.1.43 h1:JKfpVSCB84vrAmHzyrsxB5NAr5kLoMXZArPSw7Qlgyg= +github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= +github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= +github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= +github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= +github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y= +github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= +github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= +github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= +github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= +github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= +github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY= +github.com/mitchellh/mapstructure v1.5.0/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/moby/sys/mountinfo v0.5.0/go.mod h1:3bMD3Rg+zkqx8MRYPi7Pyb0Ie97QEBmdxbhnCLlSvSU= +github.com/moby/term v0.0.0-20221205130635-1aeaba878587 h1:HfkjXDfhgVaN5rmueG8cL8KKeFNecRCXFhaJ2qZ5SKA= +github.com/moby/term v0.0.0-20221205130635-1aeaba878587/go.mod h1:8FzsFHVUBGZdbDsJw/ot+X+d5HLUbvklYLJ9uGfcI3Y= +github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= +github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= +github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= +github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M= +github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk= +github.com/mrunalp/fileutils v0.5.0/go.mod h1:M1WthSahJixYnrXQl/DFQuteStB1weuxD2QJNHXfbSQ= +github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= +github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= +github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= +github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= +github.com/mwitkow/grpc-proxy v0.0.0-20181017164139-0f1106ef9c76/go.mod h1:x5OoJHDHqxHS801UIuhqGl6QdSAEJvtausosHSdazIo= +github.com/nats-io/jwt v0.3.0/go.mod h1:fRYCDE99xlTsqUzISS1Bi75UBJ6ljOJQOAAu5VglpSg= +github.com/nats-io/jwt v0.3.2/go.mod h1:/euKqTS1ZD+zzjYrY7pseZrTtWQSjujC7xjPc8wL6eU= +github.com/nats-io/nats-server/v2 v2.1.2/go.mod h1:Afk+wRZqkMQs/p45uXdrVLuab3gwv3Z8C4HTBu8GD/k= +github.com/nats-io/nats.go v1.9.1/go.mod h1:ZjDU1L/7fJ09jvUSRVBR2e7+RnLiiIQyqyzEE/Zbp4w= +github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= +github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nwaples/rardecode v1.1.2 h1:Cj0yZY6T1Zx1R7AhTbyGSALm44/Mmq+BAPc4B/p/d3M= +github.com/nwaples/rardecode v1.1.2/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= +github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= +github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a h1:dlRvE5fWabOchtH7znfiFCcOvmIYgOeAS5ifBXBlh9Q= +github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a/go.mod h1:hVoHR2EVESiICEMbg137etN/Lx+lSrHPTD39Z/uE+2s= +github.com/oklog/oklog v0.3.2/go.mod h1:FCV+B7mhrz4o+ueLpx+KqkyXRGMWOYEvfiXtdGtbWGs= +github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= +github.com/oklog/run v1.1.0 h1:GEenZ1cK0+q0+wsJew9qUg/DyD8k3JzYsZAi5gYi2mA= +github.com/oklog/run v1.1.0/go.mod h1:sVPdnTZT1zYwAJeCMu2Th4T21pA3FPOQRfWjQlk7DVU= +github.com/olekukonko/tablewriter v0.0.0-20170122224234-a0225b3f23b5/go.mod h1:vsDQFd/mU46D+Z4whnwzcISnGGzXWMclvtLoiIKAKIo= +github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= +github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= +github.com/onsi/ginkgo v1.14.0/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= +github.com/onsi/ginkgo v1.16.4/go.mod h1:dX+/inL/fNMqNlz0e9LfyB9TswhZpCVdJM/Z6Vvnwo0= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.1.3/go.mod h1:vw5CSIxN1JObi/U8gcbwft7ZxR2dgaR70JSE3/PpL4c= +github.com/onsi/gomega v1.4.1/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA= +github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY= +github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= +github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= +github.com/onsi/gomega v1.17.0/go.mod h1:HnhC7FXeEQY45zxNK3PPoIUhzk/80Xly9PcubAlGdZY= +github.com/onsi/gomega v1.19.0/go.mod h1:LY+I3pBVzYsTBU1AnDwOSxaYi9WoWiqgwooUqq9yPro= +github.com/onsi/gomega v1.26.0 h1:03cDLK28U6hWvCAns6NeydX3zIm4SF3ci69ulidS32Q= +github.com/onsi/gomega v1.26.0/go.mod h1:r+zV744Re+DiYCIPRlYOTxn0YkOLcAnW8k1xXdMPGhM= +github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk= +github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U= +github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM= +github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034= +github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ= +github.com/opencontainers/runc v1.1.5 h1:L44KXEpKmfWDcS02aeGm8QNTFXTo2D+8MYGDIJ/GDEs= +github.com/opencontainers/runc v1.1.5/go.mod h1:1J5XiS+vdZ3wCyZybsuxXZWGrgSr8fFJHLXuG2PsnNg= +github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417/go.mod h1:jwyrGlmzljRJv/Fgzds9SsS/C5hL+LL3ko9hs6T5lQ0= +github.com/opencontainers/selinux v1.10.0/go.mod h1:2i0OySw99QjzBBQByd1Gr9gSjvuho1lHsJxIJ3gGbJI= +github.com/opentracing-contrib/go-observer v0.0.0-20170622124052-a52f23424492/go.mod h1:Ngi6UdF0k5OKD5t5wlmGhe/EDKPoUM3BXZSSfIuJbis= +github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74= +github.com/opentracing/opentracing-go v1.0.2/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o= +github.com/openzipkin-contrib/zipkin-go-opentracing v0.4.5/go.mod h1:/wsWhb9smxSfWAKL3wpBW7V8scJMt8N8gnaMCS9E/cA= +github.com/openzipkin/zipkin-go v0.1.6/go.mod h1:QgAqvLzwWbR/WpD4A3cGpPtJrZXNIiJc5AZX7/PBEpw= +github.com/openzipkin/zipkin-go v0.2.1/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/openzipkin/zipkin-go v0.2.2/go.mod h1:NaW6tEwdmWMaCDZzg8sh+IBNOxHMPnhQw8ySjnjRyN4= +github.com/ory/dockertest v3.3.5+incompatible h1:iLLK6SQwIhcbrG783Dghaaa3WPzGc+4Emza6EbVUUGA= +github.com/ory/dockertest v3.3.5+incompatible/go.mod h1:1vX4m9wsvi00u5bseYwXaSnhNrne+V0E6LAcBILJdPs= +github.com/ory/dockertest/v3 v3.10.0 h1:4K3z2VMe8Woe++invjaTB7VRyQXQy5UY+loujO4aNE4= +github.com/ory/dockertest/v3 v3.10.0/go.mod h1:nr57ZbRWMqfsdGdFNLHz5jjNdDb7VVFnzAeW1n5N1Lg= +github.com/pact-foundation/pact-go v1.0.4/go.mod h1:uExwJY4kCzNPcHRj+hCR/HBbOOIwwtUjcrb0b5/5kLM= +github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pascaldekloe/goe v0.1.0 h1:cBOtyMzM9HTpWjXfbbunk26uA6nG3a8n06Wieeh0MwY= +github.com/pascaldekloe/goe v0.1.0/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= +github.com/pborman/uuid v1.2.0/go.mod h1:X/NO0urCmaxf9VXbdlT7C2Yzkj2IKimNn4k+gtPdI/k= +github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic= +github.com/pelletier/go-toml/v2 v2.1.0 h1:FnwAJ4oYMvbT/34k9zzHuZNrhlz48GB3/s6at6/MHO4= +github.com/pelletier/go-toml/v2 v2.1.0/go.mod h1:tJU2Z3ZkXwnxa4DPO899bsyIoywizdUvyaeZurnPPDc= +github.com/performancecopilot/speed v3.0.0+incompatible/go.mod h1:/CLtqpZ5gBg1M9iaPbIdPPGyKcA8hKdoy6hAWba7Yac= +github.com/petermattis/goid v0.0.0-20180202154549-b0b1615b78e5/go.mod h1:jvVRKCrJTQWu0XVbaOlby/2lO20uSCHEMzzplHXte1o= +github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCRJjJzl4udgEf7hawInF9texMeO2jrU= +github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= +github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= +github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= +github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= +github.com/pierrec/lz4/v4 v4.1.8 h1:ieHkV+i2BRzngO4Wd/3HGowuZStgq6QkPsD1eolNAO4= +github.com/pierrec/lz4/v4 v4.1.8/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= +github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= +github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= +github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= +github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw= +github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829/go.mod h1:p2iRAGwDERtqlqzRXnrOVns+ignqQo//hLXqYxZYVNs= +github.com/prometheus/client_golang v1.0.0/go.mod h1:db9x61etRT2tGnBNRi70OPL5FsnadC4Ky3P0J6CfImo= +github.com/prometheus/client_golang v1.3.0/go.mod h1:hJaj2vgQTGQmVCsAACORcieXFeDPbaTKGT+JTgUa3og= +github.com/prometheus/client_golang v1.4.0/go.mod h1:e9GMxYsXl05ICDXkRhurwBS4Q3OK1iX/F2sw+iXX5zU= +github.com/prometheus/client_golang v1.7.1/go.mod h1:PY5Wy2awLA44sXw4AOSfFBetzPP4j5+D6mVACh+pe2M= +github.com/prometheus/client_golang v1.19.0 h1:ygXvpU1AoN1MhdzckN+PyD9QJOSD4x7kmXYlnfbA6JU= +github.com/prometheus/client_golang v1.19.0/go.mod h1:ZRM9uEAypZakd+q/x7+gmsvXdURP+DABIEIjnmDdp+k= +github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190115171406-56726106282f/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo= +github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.1.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.2.0/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= +github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E= +github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY= +github.com/prometheus/common v0.2.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.4.1/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4= +github.com/prometheus/common v0.7.0/go.mod h1:DjGbpBbp5NYNiECxcL/VnbXCCaQpKd3tt26CguLLsqA= +github.com/prometheus/common v0.9.1/go.mod h1:yhUN8i9wzaXS3w1O07YhxHEBxD+W35wd8bs7vj7HSQ4= +github.com/prometheus/common v0.10.0/go.mod h1:Tlit/dnDKsSWFlCLTWaA1cyBgKHSMdTB80sz/V91rCo= +github.com/prometheus/common v0.15.0/go.mod h1:U+gB1OBLb1lF3O42bTCL+FK18tX9Oar16Clt/msog/s= +github.com/prometheus/common v0.52.2 h1:LW8Vk7BccEdONfrJBDffQGRtpSzi5CQaRZGtboOO2ck= +github.com/prometheus/common v0.52.2/go.mod h1:lrWtQx+iDfn2mbH5GUzlH9TSHyfZpHkSiG1W7y3sF2Q= +github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.0-20190117184657-bf6a532e95b1/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk= +github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA= +github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A= +github.com/prometheus/procfs v0.1.3/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.3.0/go.mod h1:lV6e/gmhEcM9IjHGsFOCxxuZ+z1YqCvr4OA4YeYWdaU= +github.com/prometheus/procfs v0.13.0 h1:GqzLlQyfsPbaEHaQkO7tbDlriv/4o5Hudv6OXHGKX7o= +github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43ZKY6tow0Y1g= +github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= +github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= +github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 h1:OdAsTTz6OkFY5QxjkYwrChwuRruF69c169dPK26NUlk= +github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= +github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= +github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= +github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= +github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= +github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= +github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= +github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= +github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= +github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= +github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= +github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= +github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= +github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc= +github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= +github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= +github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= +github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= +github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= +github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= +github.com/sagikazarmark/locafero v0.4.0/go.mod h1:Pe1W6UlPYUk/+wc/6KFhbORCfqzgYEpgQ3O5fPuL3H4= +github.com/sagikazarmark/slog-shim v0.1.0 h1:diDBnUNK9N/354PgrxMywXnAwEr1QZcOr6gto+ugjYE= +github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWRIczQRv+GVI1AkeQ= +github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= +github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= +github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= +github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= +github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= +github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= +github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= +github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ= +github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= +github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= +github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= +github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= +github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= +github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= +github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= +github.com/sirupsen/logrus v1.9.0 h1:trlNQbNUG3OdDrDil03MCb1H2o9nJ1x4/5LYw7byDE0= +github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= +github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= +github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= +github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= +github.com/soheilhy/cmux v0.1.5 h1:jjzc5WVemNEDTLwv9tlmemhC73tI08BNOIGwBOo10Js= +github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= +github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= +github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= +github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= +github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spaolacci/murmur3 v1.1.0 h1:7c1g84S4BPRrfL5Xrdp6fOJ206sU9y293DDHaoy0bLI= +github.com/spaolacci/murmur3 v1.1.0/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA= +github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ= +github.com/spf13/afero v1.11.0 h1:WJQKhtpdm3v2IzqG8VMqrr6Rf3UYpEF239Jy9wNepM8= +github.com/spf13/afero v1.11.0/go.mod h1:GH9Y3pIexgf1MTIWtNGyogA5MwRIDXGUr+hbWNoBjkY= +github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= +github.com/spf13/cast v1.6.0 h1:GEiTHELF+vaR5dhz3VqZfFSzZjYbgeKDpBxQVS4GYJ0= +github.com/spf13/cast v1.6.0/go.mod h1:ancEpBxwJDODSW/UG4rDrAqiKolqNNh2DX3mk86cAdo= +github.com/spf13/cobra v0.0.3/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU= +github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0= +github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho= +github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo= +github.com/spf13/pflag v1.0.1/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= +github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s= +github.com/spf13/viper v1.18.2 h1:LUXCnvUvSM6FXAsj6nnfc8Q2tp1dIgUfY9Kc8GsSOiQ= +github.com/spf13/viper v1.18.2/go.mod h1:EKmWIqdnk5lOcmR72yw6hS+8OPYcwD0jteitLMVB+yk= +github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3DKn8O/DFsRAY58/XVQiIPMTMB1SddzLXVw= +github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= +github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8= +github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU= +github.com/supranational/blst v0.3.11 h1:LyU6FolezeWAhvQk0k6O/d49jqgO52MSDDfYgbeoEm4= +github.com/supranational/blst v0.3.11/go.mod h1:jZJtfjgudtNl4en1tzwPIV3KjUnQUvG3/j+w+fVonLw= +github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= +github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7/go.mod h1:q4W45IWZaF22tdD+VEXcAWRA037jwmWEB5VWYORlTpc= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d h1:vfofYNRScrDdvS342BElfbETmL1Aiz3i2t0zfRj16Hs= +github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d/go.mod h1:RRCYJbIwD5jmqPI9XoAFR0OcDxqUctll6zUj/+B4S48= +github.com/tendermint/go-amino v0.16.0 h1:GyhmgQKvqF82e2oZeuMSp9JTN0N09emoSZlb2lyGa2E= +github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoMC9Sphe2ZwGME= +github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= +github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= +github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 h1:uruHq4dN7GR16kFc5fp3d1RIYzJW5onx8Ybykw2YQFA= +github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= +github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= +github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= +github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0= +github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= +github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= +github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= +github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= +github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8= +github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +github.com/urfave/cli v1.20.0/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= +github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= +github.com/vishvananda/netlink v1.1.0/go.mod h1:cTgwzPIzzgDAYoQrMm0EdrjRUBkTqKYppBueQtXaqoE= +github.com/vishvananda/netns v0.0.0-20191106174202-0a2b9b5464df/go.mod h1:JP3t17pCcGlemwknint6hfoeCVQrEMVwxRLRjXpq+BU= +github.com/vulpine-io/io-test v1.0.0 h1:Ot8vMh+ssm1VWDAwJ3U4C5qG9aRnr5YfQFZPNZBAUGI= +github.com/vulpine-io/io-test v1.0.0/go.mod h1:X1I+p5GCxVX9m4nFd1HBtr2bVX9v1ZE6x8w+Obt36AU= +github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= +github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb h1:zGWFAtiMcyryUHoUjUJX0/lt1H2+i2Ka2n+D3DImSNo= +github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHovont7NscjpAxXsDA8S8BMYve8Y5+7cuRE7R0= +github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= +github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= +github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= +github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo= +github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= +github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= +github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= +github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= +github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= +github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= +github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= +github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= +github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= +go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= +go.etcd.io/bbolt v1.3.5-0.20200615073812-232d8fc87f50/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= +go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= +go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= +go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= +go.etcd.io/etcd/api/v3 v3.5.10 h1:szRajuUUbLyppkhs9K6BRtjY37l66XQQmw7oZRANE4k= +go.etcd.io/etcd/api/v3 v3.5.10/go.mod h1:TidfmT4Uycad3NM/o25fG3J07odo4GBB9hoxaodFCtI= +go.etcd.io/etcd/client/pkg/v3 v3.5.10 h1:kfYIdQftBnbAq8pUWFXfpuuxFSKzlmM5cSn76JByiT0= +go.etcd.io/etcd/client/pkg/v3 v3.5.10/go.mod h1:DYivfIviIuQ8+/lCq4vcxuseg2P2XbHygkKwFo9fc8U= +go.etcd.io/etcd/client/v2 v2.305.10 h1:MrmRktzv/XF8CvtQt+P6wLUlURaNpSDJHFZhe//2QE4= +go.etcd.io/etcd/client/v2 v2.305.10/go.mod h1:m3CKZi69HzilhVqtPDcjhSGp+kA1OmbNn0qamH80xjA= +go.etcd.io/etcd/client/v3 v3.5.10 h1:W9TXNZ+oB3MCd/8UjxHTWK5J9Nquw9fQBLJd5ne5/Ao= +go.etcd.io/etcd/client/v3 v3.5.10/go.mod h1:RVeBnDz2PUEZqTpgqwAtUd8nAPf5kjyFyND7P1VkOKc= +go.etcd.io/etcd/pkg/v3 v3.5.7 h1:obOzeVwerFwZ9trMWapU/VjDcYUJb5OfgC1zqEGWO/0= +go.etcd.io/etcd/pkg/v3 v3.5.7/go.mod h1:kcOfWt3Ov9zgYdOiJ/o1Y9zFfLhQjylTgL4Lru8opRo= +go.etcd.io/etcd/raft/v3 v3.5.7 h1:aN79qxLmV3SvIq84aNTliYGmjwsW6NqJSnqmI1HLJKc= +go.etcd.io/etcd/raft/v3 v3.5.7/go.mod h1:TflkAb/8Uy6JFBxcRaH2Fr6Slm9mCPVdI2efzxY96yU= +go.etcd.io/etcd/server/v3 v3.5.7 h1:BTBD8IJUV7YFgsczZMHhMTS67XuA4KpRquL0MFOJGRk= +go.etcd.io/etcd/server/v3 v3.5.7/go.mod h1:gxBgT84issUVBRpZ3XkW1T55NjOb4vZZRI4wVvNhf4A= +go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= +go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= +go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= +go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= +go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= +go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= +go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0= +go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 h1:UNQQKPfTDe1J81ViolILjTKPr9WetKW6uei2hFgJmFs= +go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0/go.mod h1:r9vWsPS/3AQItv3OSlEJ/E4mbrhUbbw18meOjArPtKQ= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 h1:sv9kVfal0MK0wBMCOGr+HeJm9v803BkJxGrk2au7j08= +go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0/go.mod h1:SK2UL73Zy1quvRPonmOmRDiWk1KBV3LyIeeIxcEApWw= +go.opentelemetry.io/otel v1.0.1/go.mod h1:OPEOD4jIT2SlZPMmwT6FqZz2C0ZNdQqiWcoK6M0SNFU= +go.opentelemetry.io/otel v1.22.0 h1:xS7Ku+7yTFvDfDraDIJVpw7XPyuHlB9MCiqqX5mcJ6Y= +go.opentelemetry.io/otel v1.22.0/go.mod h1:eoV4iAi3Ea8LkAEI9+GFT44O6T/D0GWAVFyZVCC6pMI= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.0.1 h1:ofMbch7i29qIUf7VtF+r0HRF6ac0SBaPSziSsKp7wkk= +go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.0.1/go.mod h1:Kv8liBeVNFkkkbilbgWRpV+wWuu+H5xdOT6HAgd30iw= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.0.1 h1:CFMFNoz+CGprjFAFy+RJFrfEe4GBia3RRm2a4fREvCA= +go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.0.1/go.mod h1:xOvWoTOrQjxjW61xtOmD/WKGRYb/P4NzRo3bs65U6Rk= +go.opentelemetry.io/otel/metric v1.22.0 h1:lypMQnGyJYeuYPhOM/bgjbFM6WE44W1/T45er4d8Hhg= +go.opentelemetry.io/otel/metric v1.22.0/go.mod h1:evJGjVpZv0mQ5QBRJoBF64yMuOf4xCWdXjK8pzFvliY= +go.opentelemetry.io/otel/sdk v1.0.1/go.mod h1:HrdXne+BiwsOHYYkBE5ysIcv2bvdZstxzmCQhxTcZkI= +go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= +go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= +go.opentelemetry.io/otel/trace v1.0.1/go.mod h1:5g4i4fKLaX2BQpSBsxw8YYcgKpMMSW3x7ZTuYBr3sUk= +go.opentelemetry.io/otel/trace v1.22.0 h1:Hg6pPujv0XG9QaVbGOBVHunyuLcCC3jN7WEhPx83XD0= +go.opentelemetry.io/otel/trace v1.22.0/go.mod h1:RbbHXVqKES9QhzZq/fE5UnOSILqRt40a21sPw2He1xo= +go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= +go.opentelemetry.io/proto/otlp v0.9.0 h1:C0g6TWmQYvjKRnljRULLWUVJGy8Uvu0NEL/5frY2/t4= +go.opentelemetry.io/proto/otlp v0.9.0/go.mod h1:1vKfU9rv61e9EVGthD1zNvUbiwPcimSsOPU9brfSHJg= +go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= +go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= +go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= +go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= +go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= +go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo= +go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= +go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= +go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= +go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= +go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= +go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= +go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= +go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= +go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= +go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= +go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo= +go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= +golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= +golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= +golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= +golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= +golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= +golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= +golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= +golang.org/x/exp v0.0.0-20200331195152-e8c3332aa8e5/go.mod h1:4M0jN8W1tt0AVLNr8HDosyJCDCDuyL9N9+3m7wDWgKw= +golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0 h1:985EYyeCOxTpcgOTJpflJUwOeEz0CQOdPt73OzpE9F8= +golang.org/x/exp v0.0.0-20240404231335-c0f41cb1a7a0/go.mod h1:/lliqkxwWAhPjf5oSOIJup2XcqJaw8RGS6k3TGEc7GI= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= +golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= +golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= +golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= +golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= +golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.0.0-20180719180050-a680a1efc54d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190125091013-d26f9f9a57f3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= +golang.org/x/net v0.0.0-20190613194153-d28f0bde5980/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20190813141303-74dc4d7220e7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= +golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200421231249-e086a090c8fd/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= +golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= +golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= +golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= +golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= +golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220412020605-290c469a71a5/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= +golang.org/x/net v0.0.0-20220607020251-c690dde0001d/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220624214902-1bab6f366d9e/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= +golang.org/x/net v0.0.0-20220909164309-bea034e7d591/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.0.0-20221014081412-f15817d10f9b/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco= +golang.org/x/net v0.24.0 h1:1PcaxkF854Fu3+lvBIx5SYn9wRlBzzcnHZSiaFFAb0w= +golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210514164344-f6687ab2804c/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210628180205-a41e5a781914/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210805134026-6f1e6394065a/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= +golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220309155454-6242fa91716a/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5/go.mod h1:DAh4E804XQdzx2j+YRIaUnCqCV2RuMz24cGBJ5QYIrc= +golang.org/x/oauth2 v0.0.0-20220608161450-d0670ef3b1eb/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2/go.mod h1:jaDAt6Dkxork7LmZnYtzbRWj0W47D86a3TGe0YHBvmE= +golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.0.0-20221014153046-6fdb5e3db783/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg= +golang.org/x/oauth2 v0.1.0/go.mod h1:G9FE4dLTsbXUu90h/Pf85g4w1D+SSAgR+q46nJZ8M4A= +golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= +golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220601150217-0de741cfad7f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20220929204114-8fcdb60fdcc0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191115151921-52ab43148777/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191220142924-d4481acd189f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200106162015-b016eb3dc98e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200420163511-1957bb5e6d1f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200615200032-f1bc736245b1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200814200057-3d37ad5750ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210616094352-59db8d763f22/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210809222454-d867a43fc93e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210819135213-f52c844e1c1c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210906170528-6f6e22806c34/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211210111614-af8b64212486/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220128215802-99c3d69c2c27/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220209214540-3681064d5158/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220315194320-039c03cc5b86/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220328115105-d36c6a25d886/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220502124256-b6088ccd6cba/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220610221304-9f5ed59c137d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220615213510-4f61da869c0c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220624220833-87e55d714810/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220728004956-3c1f35247d10/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20221010170243-090e33056c14/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= +golang.org/x/term v0.20.0 h1:VnkxpohqXaOBYJtBmEppKUG6mXpi+4O6purfc2+sMhw= +golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= +golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= +golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= +golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk= +golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM= +golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180828015842-6cd1fcedba52/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= +golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190823170909-c4a336ef6a2f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191029190741-b9c20aec41a5/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191108193012-7d206e10da11/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200103221440-774c71fcf114/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= +golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= +golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= +golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= +golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= +golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= +golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= +golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= +golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= +golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= +golang.org/x/tools v0.20.0 h1:hz/CVckiOxybQvFw6h7b/q80NTr9IUQb4s1IIzW7KNY= +golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg= +golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20220517211312-f3a8303e98df/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/api v0.3.1/go.mod h1:6wY9I6uQWHQ8EM57III9mq/AjF+i8G65rmVagqKMtkk= +google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= +google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= +google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= +google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= +google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= +google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= +google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= +google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= +google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= +google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= +google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= +google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= +google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= +google.golang.org/api v0.47.0/go.mod h1:Wbvgpq1HddcWVtzsVLyfLp8lDg6AA241LmgIL59tHXo= +google.golang.org/api v0.48.0/go.mod h1:71Pr1vy+TAZRPkPs/xlCf5SsU8WjuAWv1Pfjbtukyy4= +google.golang.org/api v0.50.0/go.mod h1:4bNT5pAuq5ji4SRZm+5QIkjny9JAyVD/3gaSihNefaw= +google.golang.org/api v0.51.0/go.mod h1:t4HdrdoNgyN5cbEfm7Lum0lcLDLiise1F8qDKX00sOU= +google.golang.org/api v0.54.0/go.mod h1:7C4bFFOvVDGXjfDTAsgGwDgAxRDeQ4X8NvUedIt6z3k= +google.golang.org/api v0.55.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.56.0/go.mod h1:38yMfeP1kfjsl8isn0tliTjIb1rJXcQi4UXlbqivdVE= +google.golang.org/api v0.57.0/go.mod h1:dVPlbZyBo2/OjBpmvNdpn2GRm6rPy75jyU7bmhdrMgI= +google.golang.org/api v0.61.0/go.mod h1:xQRti5UdCmoCEqFxcz93fTl338AVqDgyaDRuOZ3hg9I= +google.golang.org/api v0.63.0/go.mod h1:gs4ij2ffTRXwuzzgJl/56BdwJaA194ijkfn++9tDuPo= +google.golang.org/api v0.67.0/go.mod h1:ShHKP8E60yPsKNw/w8w+VYaj9H6buA5UqDp8dhbQZ6g= +google.golang.org/api v0.70.0/go.mod h1:Bs4ZM2HGifEvXwd50TtW70ovgJffJYw2oRCOFU/SkfA= +google.golang.org/api v0.71.0/go.mod h1:4PyU6e6JogV1f9eA4voyrTY2batOLdgZ5qZ5HOCc4j8= +google.golang.org/api v0.74.0/go.mod h1:ZpfMZOVRMywNyvJFeqL9HRWBgAuRfSjJFpe9QtRRyDs= +google.golang.org/api v0.75.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.77.0/go.mod h1:pU9QmyHLnzlpar1Mjt4IbapUCy8J+6HD6GeELN69ljA= +google.golang.org/api v0.78.0/go.mod h1:1Sg78yoMLOhlQTeF+ARBoytAcH1NNyyl390YMy6rKmw= +google.golang.org/api v0.80.0/go.mod h1:xY3nI94gbvBrE0J6NHXhxOmW97HG7Khjkku6AFB3Hyg= +google.golang.org/api v0.84.0/go.mod h1:NTsGnUFJMYROtiquksZHBWtHfeMC7iYthki7Eq3pa8o= +google.golang.org/api v0.85.0/go.mod h1:AqZf8Ep9uZ2pyTvgL+x0D3Zt0eoT9b5E8fmzfu6FO2g= +google.golang.org/api v0.90.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.93.0/go.mod h1:+Sem1dnrKlrXMR/X0bPnMWyluQe4RsNoYfmNLhOIkzw= +google.golang.org/api v0.95.0/go.mod h1:eADj+UBuxkh5zlrSntJghuNeg8HwQ1w5lTKkuqaETEI= +google.golang.org/api v0.96.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.97.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.98.0/go.mod h1:w7wJQLTM+wvQpNf5JyEcBoxK0RH7EDrh/L4qfsuJ13s= +google.golang.org/api v0.100.0/go.mod h1:ZE3Z2+ZOr87Rx7dqFsdRQkRBk36kDtp/h+QpHbB7a70= +google.golang.org/api v0.162.0 h1:Vhs54HkaEpkMBdgGdOT2P6F0csGG/vxDS0hWHJzmmps= +google.golang.org/api v0.162.0/go.mod h1:6SulDkfoBIg4NFmCuZ39XeeAgSHCPecfSUuDyYlAHs0= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.2.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= +google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/appengine v1.6.8 h1:IhEN5q69dyKagZPYMSdIjS2HqprW324FRQZJcGqPAsM= +google.golang.org/appengine v1.6.8/go.mod h1:1jJ3jBArFh5pcgW8gCtRJnepW8FzD1V44FJffLiz/Ds= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20180831171423-11092d34479b/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= +google.golang.org/genproto v0.0.0-20190530194941-fb225487d101/go.mod h1:z3L6/3dTEVtUr6QSP8miRzeRqwQOioJ9I66odjN4I7s= +google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= +google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= +google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= +google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200423170343-7949de9c1215/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= +google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= +google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= +google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= +google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210126160654-44e461bb6506/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= +google.golang.org/genproto v0.0.0-20210329143202-679c6ae281ee/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= +google.golang.org/genproto v0.0.0-20210513213006-bf773b8c8384/go.mod h1:P3QM42oQyzQSnHPnZ/vqoCdDmzH28fzWByN9asMeM8A= +google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210604141403-392c879c8b08/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210608205507-b6d2f5bf0d7d/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= +google.golang.org/genproto v0.0.0-20210624195500-8bfb893ecb84/go.mod h1:SzzZ/N+nwJDaO1kznhnlzqS8ocJICar6hYhVyhi++24= +google.golang.org/genproto v0.0.0-20210713002101-d411969a0d9a/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210716133855-ce7ef5c701ea/go.mod h1:AxrInvYm1dci+enl5hChSFPOmmUF1+uAa/UsgNRWd7k= +google.golang.org/genproto v0.0.0-20210728212813-7823e685a01f/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210805201207-89edb61ffb67/go.mod h1:ob2IJxKrgPT52GcgX759i1sleT07tiKowYBGbczaW48= +google.golang.org/genproto v0.0.0-20210813162853-db860fec028c/go.mod h1:cFeNkxwySK631ADgubI+/XFU/xp8FD5KIVV4rj8UC5w= +google.golang.org/genproto v0.0.0-20210821163610-241b8fcbd6c8/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210828152312-66f60bf46e71/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210831024726-fe130286e0e2/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210903162649-d08c68adba83/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210909211513-a8c4777a87af/go.mod h1:eFjDcFEctNawg4eG61bRv87N7iHBWyVhJu7u1kqDUXY= +google.golang.org/genproto v0.0.0-20210924002016-3dee208752a0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211118181313-81c1377c94b1/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211206160659-862468c7d6e0/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211208223120-3a66f561d7aa/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20211221195035-429b39de9b1c/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220126215142-9970aeb2e350/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220207164111-0872dc986b00/go.mod h1:5CzLGKJ67TSI2B9POpiiyGha0AjJvZIUgRMt1dSmuhc= +google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220304144024-325a89244dc8/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220310185008-1973136f34c6/go.mod h1:kGP+zUP2Ddo0ayMi4YuN7C3WZyJvGLZRh8Z5wnAqvEI= +google.golang.org/genproto v0.0.0-20220314164441-57ef72a4c106/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220324131243-acbaeb5b85eb/go.mod h1:hAL49I2IFola2sVEjAn7MEwsja0xp51I0tlGAf9hz4E= +google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220413183235-5e96e2839df9/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220414192740-2d67ff6cf2b4/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220421151946-72621c1f0bd3/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220429170224-98d788798c3e/go.mod h1:8w6bsBMX6yCPbAVTeqQHvzxW0EIFigd5lZyahWgyfDo= +google.golang.org/genproto v0.0.0-20220502173005-c8bf987b8c21/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220505152158-f39f71e6c8f3/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220518221133-4f43b3371335/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220523171625-347a074981d8/go.mod h1:RAyBrSAP7Fh3Nc84ghnVLDPuV51xc9agzmm4Ph6i0Q4= +google.golang.org/genproto v0.0.0-20220608133413-ed9918b62aac/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220616135557-88e70c0c3a90/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220617124728-180714bec0ad/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220624142145-8cd45d7dbd1f/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220628213854-d9e0b6570c03/go.mod h1:KEWEmljWE5zPzLBa/oHl6DaEt9LmfH6WtH1OHIvleBA= +google.golang.org/genproto v0.0.0-20220722212130-b98a9ff5e252/go.mod h1:GkXuJDJ6aQ7lnJcRF+SJVgFdQhypqgl3LB1C9vabdRE= +google.golang.org/genproto v0.0.0-20220801145646-83ce21fca29f/go.mod h1:iHe1svFLAZg9VWz891+QbRMwUv9O/1Ww+/mngYeThbc= +google.golang.org/genproto v0.0.0-20220815135757-37a418bb8959/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220817144833-d7fd3f11b9b1/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220822174746-9e6da59bd2fc/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829144015-23454907ede3/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220829175752-36a9c930ecbf/go.mod h1:dbqgFATTzChvnt+ujMdZwITVAJHFtfyN1qUhDqEiIlk= +google.golang.org/genproto v0.0.0-20220913154956-18f8339a66a5/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220914142337-ca0e39ece12f/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220915135415-7fd63a7952de/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220916172020-2692e8806bfa/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220919141832-68c03719ef51/go.mod h1:0Nb8Qy+Sk5eDzHnzlStwW3itdNaWoZA5XeSG+R3JHSo= +google.golang.org/genproto v0.0.0-20220920201722-2b89144ce006/go.mod h1:ht8XFiar2npT/g4vkk7O0WYS1sHOHbdujxbEp7CJWbw= +google.golang.org/genproto v0.0.0-20220926165614-551eb538f295/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce/go.mod h1:woMGP53BroOrRY3xTxlbr8Y3eB/nzAvvFM83q7kG2OI= +google.golang.org/genproto v0.0.0-20221010155953-15ba04fc1c0e/go.mod h1:3526vdqwhZAwq4wsRUaVG555sVgsNmIjRtO7t/JH29U= +google.golang.org/genproto v0.0.0-20221014173430-6e2ab493f96b/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221014213838-99cd37c6964a/go.mod h1:1vXfmgAz9N9Jx0QA82PqRVauvCz1SGSz739p0f183jM= +google.golang.org/genproto v0.0.0-20221025140454-527a21cfbd71/go.mod h1:9qHF0xnpdSfF6knlcsnpzUu5y+rpwgbvsyGAZPBMg4s= +google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de h1:F6qOa9AZTYJXOUEr4jDysRDLrm4PHePlge4v4TGAlxY= +google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:VUhTRKeHn9wwcdrk73nvdC9gF178Tzhmt/qyaFcPLSo= +google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de h1:jFNzHPIeuzhdRwVhbZdiym9q0ory/xY3sA+v2wPg8I0= +google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de/go.mod h1:5iCWqnniDlqZHrd3neWVTOwvh/v6s3232omMecelax8= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda h1:LI5DOvAxUPMv/50agcLLoo+AdWc1irS9Rzz4vPuD1V4= +google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY= +google.golang.org/grpc v1.17.0/go.mod h1:6QZJwpn2B+Zp71q/5VxRsJ6NXXVCE5NRUHRo+f3cWCs= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.20.0/go.mod h1:chYK+tFQF0nDUGJgXMSgLCQk3phJEuONr2DCgLDdAQM= +google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= +google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= +google.golang.org/grpc v1.22.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.23.1/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= +google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= +google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= +google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.32.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= +google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= +google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= +google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= +google.golang.org/grpc v1.37.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.37.1/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= +google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= +google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= +google.golang.org/grpc v1.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= +google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= +google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= +google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.46.2/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.47.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.48.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= +google.golang.org/grpc v1.49.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.0/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.50.1/go.mod h1:ZgQEeidpAuNRZ8iRrlBKXZQP1ghovWIVhdJRyCDK+GI= +google.golang.org/grpc v1.63.2 h1:MUeiw1B2maTVZthpU5xvASfTh3LDbxHd6IJ6QQVU+xM= +google.golang.org/grpc v1.63.2/go.mod h1:WAX/8DgncnokcFUldAxq7GeB5DXHDbMF+lLvDomNkRA= +google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= +google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= +google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= +google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= +google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= +gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= +gopkg.in/cheggaaa/pb.v1 v1.0.25/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw= +gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= +gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= +gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= +gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s= +gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= +gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= +gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8= +gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= +gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= +gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI= +gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74= +gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY= +gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU= +gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU= +honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= +honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= +lukechampine.com/uint128 v1.2.0 h1:mBi/5l91vocEN8otkC5bDLhi2KdCticRiwbdB0O+rjI= +lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk= +modernc.org/cc/v3 v3.40.0 h1:P3g79IUS/93SYhtoeaHW+kRCIrYaxJ27MFPv+7kaTOw= +modernc.org/cc/v3 v3.40.0/go.mod h1:/bTg4dnWkSXowUO6ssQKnOV0yMVxDYNIsIrzqTFDGH0= +modernc.org/ccgo/v3 v3.16.13 h1:Mkgdzl46i5F/CNR/Kj80Ri59hC8TKAhZrYSaqvkwzUw= +modernc.org/ccgo/v3 v3.16.13/go.mod h1:2Quk+5YgpImhPjv2Qsob1DnZ/4som1lJTodubIcoUkY= +modernc.org/ccorpus v1.11.6 h1:J16RXiiqiCgua6+ZvQot4yUuUy8zxgqbqEEUuGPlISk= +modernc.org/ccorpus v1.11.6/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ= +modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM= +modernc.org/httpfs v1.0.6/go.mod h1:7dosgurJGp0sPaRanU53W4xZYKh14wfzX420oZADeHM= +modernc.org/libc v1.22.2 h1:4U7v51GyhlWqQmwCHj28Rdq2Yzwk55ovjFrdPjs8Hb0= +modernc.org/libc v1.22.2/go.mod h1:uvQavJ1pZ0hIoC/jfqNoMLURIMhKzINIWypNM17puug= +modernc.org/mathutil v1.5.0 h1:rV0Ko/6SfM+8G+yKiyI830l3Wuz1zRutdslNoQ0kfiQ= +modernc.org/mathutil v1.5.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E= +modernc.org/memory v1.4.0 h1:crykUfNSnMAXaOJnnxcSzbUGMqkLWjklJKkBK2nwZwk= +modernc.org/memory v1.4.0/go.mod h1:PkUhL0Mugw21sHPeskwZW4D6VscE/GQJOnIpCnW6pSU= +modernc.org/opt v0.1.3 h1:3XOZf2yznlhC+ibLltsDGzABUGVx8J6pnFMS3E4dcq4= +modernc.org/opt v0.1.3/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0= +modernc.org/sqlite v1.20.3 h1:SqGJMMxjj1PHusLxdYxeQSodg7Jxn9WWkaAQjKrntZs= +modernc.org/sqlite v1.20.3/go.mod h1:zKcGyrICaxNTMEHSr1HQ2GUraP0j+845GYw37+EyT6A= +modernc.org/strutil v1.1.3 h1:fNMm+oJklMGYfU9Ylcywl0CO5O6nTfaowNsh2wpPjzY= +modernc.org/strutil v1.1.3/go.mod h1:MEHNA7PdEnEwLvspRMtWTNnp2nnyvMfkimT1NKNAGbw= +modernc.org/tcl v1.15.0 h1:oY+JeD11qVVSgVvodMJsu7Edf8tr5E/7tuhF5cNYz34= +modernc.org/tcl v1.15.0/go.mod h1:xRoGotBZ6dU+Zo2tca+2EqVEeMmOUBzHnhIwq4YrVnE= +modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg= +modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= +modernc.org/z v1.7.0 h1:xkDw/KepgEjeizO2sNco+hqYkU12taxQFqPEmgm1GWE= +modernc.org/z v1.7.0/go.mod h1:hVdgNMh8ggTuRG1rGU8x+xGRFfiQUIAw0ZqlPy8+HyQ= +nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= +nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= +pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= +pgregory.net/rapid v1.1.0/go.mod h1:PY5XlDGj0+V1FCq0o192FdRhpKHGTRIWBgqjDBTrq04= +rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= +rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= +rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= +sigs.k8s.io/yaml v1.1.0/go.mod h1:UJmg0vDUVViEyp3mgSv9WPwZCDxu4rQW1olrI1uml+o= +sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E= +sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY= +sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU= diff --git a/covenant-signer/itest/bitcoind_node_setup.go b/covenant-signer/itest/bitcoind_node_setup.go new file mode 100644 index 0000000..029c5bf --- /dev/null +++ b/covenant-signer/itest/bitcoind_node_setup.go @@ -0,0 +1,103 @@ +package e2etest + +import ( + "encoding/json" + "fmt" + "os" + "strconv" + "strings" + "testing" + "time" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/itest/containers" + "github.com/stretchr/testify/require" +) + +var ( + startTimeout = 30 * time.Second +) + +type CreateWalletResponse struct { + Name string `json:"name"` + Warning string `json:"warning"` +} + +type GenerateBlockResponse struct { + // address of the recipient of rewards + Address string `json:"address"` + // blocks generated + Blocks []string `json:"blocks"` +} + +type BitcoindTestHandler struct { + t *testing.T + m *containers.Manager +} + +func NewBitcoindHandler(t *testing.T, m *containers.Manager) *BitcoindTestHandler { + return &BitcoindTestHandler{ + t: t, + m: m, + } +} + +func (h *BitcoindTestHandler) Start() { + tempPath, err := os.MkdirTemp("", "bitcoind-staker-test-*") + require.NoError(h.t, err) + + h.t.Cleanup(func() { + _ = os.RemoveAll(tempPath) + }) + + _, err = h.m.RunBitcoindResource(tempPath) + require.NoError(h.t, err) + + require.Eventually(h.t, func() bool { + _, err := h.GetBlockCount() + h.t.Logf("failed to get block count: %v", err) + return err == nil + }, startTimeout, 500*time.Millisecond, "bitcoind did not start") +} + +func (h *BitcoindTestHandler) GetBlockCount() (int, error) { + buff, _, err := h.m.ExecBitcoindCliCmd(h.t, []string{"getblockcount"}) + if err != nil { + return 0, err + } + + buffStr := buff.String() + + parsedBuffStr := strings.TrimSuffix(buffStr, "\n") + + num, err := strconv.Atoi(parsedBuffStr) + if err != nil { + return 0, err + } + + return num, nil +} + +func (h *BitcoindTestHandler) CreateWallet(walletName string, passphrase string) *CreateWalletResponse { + // last false on the list will create legacy wallet. This is needed, as currently + // we are signing all taproot transactions by dumping the private key and signing it + // on app level. Descriptor wallets do not allow dumping private keys. + buff, _, err := h.m.ExecBitcoindCliCmd(h.t, []string{"createwallet", walletName, "false", "false", passphrase}) + require.NoError(h.t, err) + + var response CreateWalletResponse + err = json.Unmarshal(buff.Bytes(), &response) + require.NoError(h.t, err) + + return &response +} + +func (h *BitcoindTestHandler) GenerateBlocks(count int) *GenerateBlockResponse { + buff, _, err := h.m.ExecBitcoindCliCmd(h.t, []string{"-generate", fmt.Sprintf("%d", count)}) + require.NoError(h.t, err) + + var response GenerateBlockResponse + err = json.Unmarshal(buff.Bytes(), &response) + require.NoError(h.t, err) + + return &response +} diff --git a/covenant-signer/itest/containers/config.go b/covenant-signer/itest/containers/config.go new file mode 100644 index 0000000..c93dbd0 --- /dev/null +++ b/covenant-signer/itest/containers/config.go @@ -0,0 +1,24 @@ +package containers + +// ImageConfig contains all images and their respective tags +// needed for running e2e tests. +type ImageConfig struct { + BitcoindRepository string + BitcoindVersion string +} + +//nolint:deadcode +const ( + dockerBitcoindRepository = "lncm/bitcoind" + dockerBitcoindVersionTag = "v26.0" +) + +// NewImageConfig returns ImageConfig needed for running e2e test. +func NewImageConfig() ImageConfig { + config := ImageConfig{ + BitcoindRepository: dockerBitcoindRepository, + BitcoindVersion: dockerBitcoindVersionTag, + } + return config + +} diff --git a/covenant-signer/itest/containers/containers.go b/covenant-signer/itest/containers/containers.go new file mode 100644 index 0000000..5c09c6c --- /dev/null +++ b/covenant-signer/itest/containers/containers.go @@ -0,0 +1,187 @@ +package containers + +import ( + "bytes" + "context" + "fmt" + "regexp" + "testing" + "time" + + "github.com/ory/dockertest/v3" + "github.com/ory/dockertest/v3/docker" + "github.com/stretchr/testify/require" +) + +const ( + bitcoindContainerName = "bitcoind-test" +) + +var errRegex = regexp.MustCompile(`(E|e)rror`) + +// Manager is a wrapper around all Docker instances, and the Docker API. +// It provides utilities to run and interact with all Docker containers used within e2e testing. +type Manager struct { + cfg ImageConfig + pool *dockertest.Pool + resources map[string]*dockertest.Resource +} + +// NewManager creates a new Manager instance and initializes +// all Docker specific utilities. Returns an error if initialization fails. +func NewManager() (docker *Manager, err error) { + docker = &Manager{ + cfg: NewImageConfig(), + resources: make(map[string]*dockertest.Resource), + } + docker.pool, err = dockertest.NewPool("") + if err != nil { + return nil, err + } + return docker, nil +} + +func (m *Manager) ExecBitcoindCliCmd(t *testing.T, command []string) (bytes.Buffer, bytes.Buffer, error) { + // this is currently hardcoded, as it will be the same for all tests + cmd := []string{"bitcoin-cli", "-chain=regtest", "-rpcuser=user", "-rpcpassword=pass"} + cmd = append(cmd, command...) + return m.ExecCmd(t, bitcoindContainerName, cmd) +} + +// ExecCmd executes command by running it on the given container. +// It word for word `error` in output to discern between error and regular output. +// It retures stdout and stderr as bytes.Buffer and an error if the command fails. +func (m *Manager) ExecCmd(t *testing.T, containerName string, command []string) (bytes.Buffer, bytes.Buffer, error) { + if _, ok := m.resources[containerName]; !ok { + return bytes.Buffer{}, bytes.Buffer{}, fmt.Errorf("no resource %s found", containerName) + } + containerId := m.resources[containerName].Container.ID + + var ( + outBuf bytes.Buffer + errBuf bytes.Buffer + ) + + timeout := 20 * time.Second + ctx, cancel := context.WithTimeout(context.Background(), timeout) + defer cancel() + + t.Logf("\n\nRunning: \"%s\"", command) + + // We use the `require.Eventually` function because it is only allowed to do one transaction per block without + // sequence numbers. For simplicity, we avoid keeping track of the sequence number and just use the `require.Eventually`. + require.Eventually( + t, + func() bool { + exec, err := m.pool.Client.CreateExec(docker.CreateExecOptions{ + Context: ctx, + AttachStdout: true, + AttachStderr: true, + Container: containerId, + User: "root", + Cmd: command, + }) + + if err != nil { + t.Logf("failed to create exec: %v", err) + return false + } + + err = m.pool.Client.StartExec(exec.ID, docker.StartExecOptions{ + Context: ctx, + Detach: false, + OutputStream: &outBuf, + ErrorStream: &errBuf, + }) + if err != nil { + t.Logf("failed to start exec: %v", err) + return false + } + + errBufString := errBuf.String() + // Note that this does not match all errors. + // This only works if CLI outputs "Error" or "error" + // to stderr. + if errRegex.MatchString(errBufString) { + t.Log("\nstderr:") + t.Log(errBufString) + + t.Log("\nstdout:") + t.Log(outBuf.String()) + return false + } + + return true + }, + timeout, + 500*time.Millisecond, + "command failed", + ) + + return outBuf, errBuf, nil +} + +func (m *Manager) RunBitcoindResource( + bitcoindCfgPath string, +) (*dockertest.Resource, error) { + bitcoindResource, err := m.pool.RunWithOptions( + &dockertest.RunOptions{ + Name: bitcoindContainerName, + Repository: m.cfg.BitcoindRepository, + Tag: m.cfg.BitcoindVersion, + User: "root:root", + Mounts: []string{ + fmt.Sprintf("%s/:/data/.bitcoin", bitcoindCfgPath), + }, + ExposedPorts: []string{ + "8332", + "8333", + "28332", + "28333", + "18443", + "18444", + }, + PortBindings: map[docker.Port][]docker.PortBinding{ + "8332/tcp": {{HostIP: "", HostPort: "8332"}}, + "8333/tcp": {{HostIP: "", HostPort: "8333"}}, + "28332/tcp": {{HostIP: "", HostPort: "28332"}}, + "28333/tcp": {{HostIP: "", HostPort: "28333"}}, + "18443/tcp": {{HostIP: "", HostPort: "18443"}}, + "18444/tcp": {{HostIP: "", HostPort: "18444"}}, + }, + Cmd: []string{ + "-regtest", + "-txindex", + "-rpcuser=user", + "-rpcpassword=pass", + "-rpcallowip=0.0.0.0/0", + "-rpcbind=0.0.0.0", + }, + }, + dockerConf, + ) + if err != nil { + return nil, err + } + m.resources[bitcoindContainerName] = bitcoindResource + return bitcoindResource, nil +} + +// ClearResources removes all outstanding Docker resources created by the Manager. +func (m *Manager) ClearResources() error { + for _, resource := range m.resources { + if err := m.pool.Purge(resource); err != nil { + return err + } + } + + return nil +} + +func dockerConf(config *docker.HostConfig) { + // in this case we don't want the nodes to restart on failure + config.RestartPolicy = docker.RestartPolicy{ + Name: "no", + } + config.AutoRemove = true +} diff --git a/covenant-signer/itest/e2e_test.go b/covenant-signer/itest/e2e_test.go new file mode 100644 index 0000000..3b7944f --- /dev/null +++ b/covenant-signer/itest/e2e_test.go @@ -0,0 +1,456 @@ +//go:build e2e +// +build e2e + +package e2etest + +import ( + "bytes" + "context" + "encoding/hex" + "encoding/json" + "fmt" + "math/rand" + "net/http" + "testing" + "time" + + "github.com/babylonlabs-io/babylon/btcstaking" + staking "github.com/babylonlabs-io/babylon/btcstaking" + "github.com/babylonlabs-io/babylon/testutil/datagen" + "github.com/babylonlabs-io/networks/parameters/parser" + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcutil" + "github.com/btcsuite/btcd/chaincfg" + "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/btcsuite/btcd/wire" + "github.com/stretchr/testify/require" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/btcclient" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/itest/containers" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/metrics" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/types" +) + +var ( + netParams = &chaincfg.RegressionNetParams + eventuallyPollInterval = 100 * time.Millisecond + eventuallyTimeout = 10 * time.Second +) + +type TestManager struct { + t *testing.T + bitcoindHandler *BitcoindTestHandler + walletPass string + btcClient *btcclient.BtcClient + localCovenantPubKey *btcec.PublicKey + allCovenantKeys []*btcec.PublicKey + covenantQuorum uint32 + finalityProviderKey *btcec.PrivateKey + walletAddress btcutil.Address + stakerPrivKey *btcec.PrivateKey + stakerPubKey *btcec.PublicKey + magicBytes []byte + requiredUnbondingTime uint16 + confirmationDepth uint16 + requiredUnbondingFee btcutil.Amount + signerConfig *config.Config + app *signerapp.SignerApp + server *signerservice.SigningServer +} + +type stakingData struct { + stakingAmount btcutil.Amount + stakingTime uint16 + stakingFeeRate btcutil.Amount +} + +func defaultStakingData() *stakingData { + return &stakingData{ + stakingAmount: btcutil.Amount(100000), + stakingTime: 10000, + stakingFeeRate: btcutil.Amount(5000), // feeRatePerKb + } +} + +func StartManager( + t *testing.T, + numMatureOutputsInWallet uint32) *TestManager { + m, err := containers.NewManager() + require.NoError(t, err) + t.Cleanup(func() { + _ = m.ClearResources() + }) + + h := NewBitcoindHandler(t, m) + h.Start() + + // Give some time to launch and bitcoind + time.Sleep(2 * time.Second) + + passphrase := "pass" + _ = h.CreateWallet("test-wallet", passphrase) + // only outputs which are 100 deep are mature + _ = h.GenerateBlocks(int(numMatureOutputsInWallet) + 100) + + appConfig := config.DefaultConfig() + appConfig.BtcNodeConfig.Host = "127.0.0.1:18443" + appConfig.BtcNodeConfig.User = "user" + appConfig.BtcNodeConfig.Pass = "pass" + appConfig.BtcNodeConfig.Network = netParams.Name + + fakeParsedConfig, err := appConfig.Parse() + require.NoError(t, err) + // Client for testing purposes + client, err := btcclient.NewBtcClient(fakeParsedConfig.BtcNodeConfig) + require.NoError(t, err) + + outputs, err := client.ListOutputs(true) + require.NoError(t, err) + require.Len(t, outputs, int(numMatureOutputsInWallet)) + + // easiest way to get address controlled by wallet is to retrive address from one + // of the outputs + output := outputs[0] + walletAddress, err := btcutil.DecodeAddress(output.Address, netParams) + require.NoError(t, err) + + // Unlock wallet for all tests 60min + err = client.UnlockWallet(60*60*60, passphrase) + require.NoError(t, err) + + stakerPrivKey, err := btcec.NewPrivateKey() + require.NoError(t, err) + stakerPubKey := stakerPrivKey.PubKey() + + fpKey, err := btcec.NewPrivateKey() + require.NoError(t, err) + + covAddress, err := client.RpcClient.GetNewAddress("covenant") + require.NoError(t, err) + info, err := client.RpcClient.GetAddressInfo(covAddress.EncodeAddress()) + require.NoError(t, err) + covenantPubKeyBytes, err := hex.DecodeString(*info.PubKey) + require.NoError(t, err) + localCovenantKey, err := btcec.ParsePubKey(covenantPubKeyBytes) + require.NoError(t, err) + + remoteCovenantKey1, err := btcec.NewPrivateKey() + require.NoError(t, err) + require.NotNil(t, remoteCovenantKey1) + remoteCovenantKey2, err := btcec.NewPrivateKey() + require.NoError(t, err) + require.NotNil(t, remoteCovenantKey2) + + mb := []byte{0x0, 0x1, 0x2, 0x3} + appConfig.Server.Host = "127.0.0.1" + appConfig.Server.Port = 10090 + + testParams := parser.VersionedGlobalParams{} + testParams.ActivationHeight = 1 + testParams.StakingCap = 10000000000 + testParams.Tag = hex.EncodeToString(mb) + testParams.CovenantPks = []string{ + hex.EncodeToString(localCovenantKey.SerializeCompressed()), + hex.EncodeToString(remoteCovenantKey1.PubKey().SerializeCompressed()), + hex.EncodeToString(remoteCovenantKey2.PubKey().SerializeCompressed()), + } + testParams.CovenantQuorum = 2 + testParams.UnbondingTime = 100 + testParams.UnbondingFee = 1000 + testParams.MinStakingTime = 10000 + testParams.MaxStakingTime = 10000 + testParams.MinStakingAmount = 10000 + testParams.MaxStakingAmount = 10000000 + testParams.ConfirmationDepth = 10 + + // TODO: Update tests to create json file and read from it. + globalParams := parser.GlobalParams{ + Versions: []*parser.VersionedGlobalParams{ + &testParams, + }, + } + + parsedGlobalParams, err := parser.ParseGlobalParams(&globalParams) + require.NoError(t, err) + + parsedconfig, err := appConfig.Parse() + require.NoError(t, err) + + // In e2e test we are using the same node for signing as for indexing functionalities + chainInfo := signerapp.NewBitcoindChainInfo(client) + signer := signerapp.NewPsbtSigner(client) + + app := signerapp.NewSignerApp( + signer, + chainInfo, + &signerapp.VersionedParamsRetriever{parsedGlobalParams}, + netParams, + ) + + met := metrics.NewCovenantSignerMetrics() + + server, err := signerservice.New( + context.Background(), + parsedconfig, + app, + met, + ) + + require.NoError(t, err) + + go func() { + _ = server.Start() + }() + + // Give some time to launch server + time.Sleep(3 * time.Second) + + t.Cleanup(func() { + _ = server.Stop(context.TODO()) + }) + + return &TestManager{ + t: t, + bitcoindHandler: h, + walletPass: passphrase, + btcClient: client, + localCovenantPubKey: localCovenantKey, + allCovenantKeys: parsedGlobalParams.Versions[0].CovenantPks, + covenantQuorum: parsedGlobalParams.Versions[0].CovenantQuorum, + requiredUnbondingTime: parsedGlobalParams.Versions[0].UnbondingTime, + requiredUnbondingFee: parsedGlobalParams.Versions[0].UnbondingFee, + confirmationDepth: parsedGlobalParams.Versions[0].ConfirmationDepth, + finalityProviderKey: fpKey, + walletAddress: walletAddress, + stakerPrivKey: stakerPrivKey, + stakerPubKey: stakerPubKey, + magicBytes: mb, + signerConfig: appConfig, + app: app, + server: server, + } +} + +func (tm *TestManager) covenantPubKeys() []*btcec.PublicKey { + return tm.allCovenantKeys +} + +func (tm *TestManager) SigningServerUrl() string { + return fmt.Sprintf("http://%s:%d", tm.signerConfig.Server.Host, tm.signerConfig.Server.Port) +} + +type stakingTxSigInfo struct { + stakingTxHash *chainhash.Hash + stakingOutput *wire.TxOut + stakingInfo *btcstaking.IdentifiableStakingInfo +} + +func (tm *TestManager) sendStakingTxToBtc(d *stakingData) *stakingTxSigInfo { + info, err := staking.BuildV0IdentifiableStakingOutputs( + tm.magicBytes, + tm.stakerPubKey, + tm.finalityProviderKey.PubKey(), + tm.covenantPubKeys(), + tm.covenantQuorum, + d.stakingTime, + d.stakingAmount, + netParams, + ) + require.NoError(tm.t, err) + + // staking output will always have index 0 + tx, err := tm.btcClient.CreateAndSignTx( + []*wire.TxOut{info.StakingOutput, info.OpReturnOutput}, + d.stakingFeeRate, + tm.walletAddress, + ) + require.NoError(tm.t, err) + + hash, err := tm.btcClient.SendTx(tx) + require.NoError(tm.t, err) + // generate exact amount of block to confirm staking tx + _ = tm.bitcoindHandler.GenerateBlocks(int(tm.confirmationDepth)) + return &stakingTxSigInfo{ + stakingTxHash: hash, + stakingOutput: info.StakingOutput, + stakingInfo: info, + } +} + +type unbondingTxWithMetadata struct { + unbondingTx *wire.MsgTx +} + +func (tm *TestManager) createUnbondingTx( + si *stakingTxSigInfo, + d *stakingData, +) *unbondingTxWithMetadata { + + unbondingInfo, err := staking.BuildUnbondingInfo( + tm.stakerPubKey, + []*btcec.PublicKey{tm.finalityProviderKey.PubKey()}, + tm.covenantPubKeys(), + tm.covenantQuorum, + tm.requiredUnbondingTime, + d.stakingAmount-tm.requiredUnbondingFee, + netParams, + ) + require.NoError(tm.t, err) + unbondingTx := wire.NewMsgTx(2) + unbondingTx.AddTxIn(wire.NewTxIn(wire.NewOutPoint(si.stakingTxHash, 0), nil, nil)) + unbondingTx.AddTxOut(unbondingInfo.UnbondingOutput) + + return &unbondingTxWithMetadata{ + unbondingTx: unbondingTx, + } +} + +func (tm *TestManager) createNUnbondingTransactions(n int, d *stakingData) ([]*unbondingTxWithMetadata, []*wire.MsgTx) { + var infos []*stakingTxSigInfo + var sendStakingTransactions []*wire.MsgTx + + for i := 0; i < n; i++ { + sInfo := tm.sendStakingTxToBtc(d) + conf, status, err := tm.btcClient.TxDetails(sInfo.stakingTxHash, sInfo.stakingOutput.PkScript) + require.NoError(tm.t, err) + require.Equal(tm.t, btcclient.TxInChain, status) + infos = append(infos, sInfo) + sendStakingTransactions = append(sendStakingTransactions, conf.Tx) + } + + var unbondingTxs []*unbondingTxWithMetadata + for _, i := range infos { + info := i + ubs := tm.createUnbondingTx( + info, + d, + ) + unbondingTxs = append(unbondingTxs, ubs) + } + + return unbondingTxs, sendStakingTransactions +} + +func TestSigningUnbondingTx(t *testing.T) { + tm := StartManager(t, 100) + + stakingData := defaultStakingData() + + stakingTxInfo := tm.sendStakingTxToBtc(stakingData) + + unb := tm.createUnbondingTx(stakingTxInfo, stakingData) + + // staker signs unbonding tx + unbondingPathInfo, err := stakingTxInfo.stakingInfo.UnbondingPathSpendInfo() + require.NoError(t, err) + + stakerSig, err := btcstaking.SignTxWithOneScriptSpendInputFromTapLeaf( + unb.unbondingTx, + stakingTxInfo.stakingOutput, + tm.stakerPrivKey, + unbondingPathInfo.RevealedLeaf, + ) + require.NoError(t, err) + + sig, err := signerservice.RequestCovenantSignaure( + context.Background(), + tm.SigningServerUrl(), + 10*time.Second, + unb.unbondingTx, + stakerSig, + tm.localCovenantPubKey, + stakingTxInfo.stakingOutput.PkScript, + ) + + require.NoError(t, err) + require.NotNil(t, sig) + + // check if signature provided by covenant signer is valid signature over unbonding + // path + err = btcstaking.VerifyTransactionSigWithOutput( + unb.unbondingTx, + stakingTxInfo.stakingOutput, + unbondingPathInfo.GetPkScriptPath(), + tm.localCovenantPubKey, + sig.Serialize(), + ) + require.NoError(t, err) +} + +func TestProperResponseForInvalidRequest(t *testing.T) { + tm := StartManager(t, 100) + + stakingData := defaultStakingData() + + stakingTxInfo := tm.sendStakingTxToBtc(stakingData) + + unb := tm.createUnbondingTx(stakingTxInfo, stakingData) + + // staker signs unbonding tx + unbondingPathInfo, err := stakingTxInfo.stakingInfo.UnbondingPathSpendInfo() + require.NoError(t, err) + + randomKey, err := btcec.NewPrivateKey() + require.NoError(t, err) + + // We will send invalid signature in request, server should respond with + // bad request + badSig, err := btcstaking.SignTxWithOneScriptSpendInputFromTapLeaf( + unb.unbondingTx, + stakingTxInfo.stakingOutput, + randomKey, + unbondingPathInfo.RevealedLeaf, + ) + require.NoError(t, err) + + sig, err := signerservice.RequestCovenantSignaure( + context.Background(), + tm.SigningServerUrl(), + 10*time.Second, + unb.unbondingTx, + badSig, + tm.localCovenantPubKey, + stakingTxInfo.stakingOutput.PkScript, + ) + + require.Error(t, err) + require.Nil(t, sig) + require.EqualError(t, err, "signing request failed. status code: 400, message: {\"errorCode\":\"BAD_REQUEST\",\"message\":\"staker unbonding signature verification failed: signature is not valid: invalid signing request\"}") +} + +func TestRejectToLargeRequest(t *testing.T) { + tm := StartManager(t, 100) + r := rand.New(rand.NewSource(time.Now().UnixNano())) + tmContentLimit := tm.signerConfig.Server.MaxContentLength + size := tmContentLimit + 1 + tooLargeTx := datagen.GenRandomByteArray(r, uint64(size)) + + req := types.SignUnbondingTxRequest{ + StakingOutputPkScriptHex: "", + UnbondingTxHex: hex.EncodeToString(tooLargeTx), + StakerUnbondingSigHex: "", + CovenantPublicKey: "", + } + + marshalled, err := json.Marshal(req) + require.NoError(t, err) + + route := fmt.Sprintf("%s/v1/sign-unbonding-tx", tm.SigningServerUrl()) + + httpRequest, err := http.NewRequestWithContext(context.Background(), "POST", route, bytes.NewReader(marshalled)) + require.NoError(t, err) + + // use json + httpRequest.Header.Set("Content-Type", "application/json") + + client := http.Client{Timeout: 10 * time.Second} + // send the request + res, err := client.Do(httpRequest) + require.NoError(t, err) + require.NotNil(t, res) + defer res.Body.Close() + require.Equal(t, http.StatusRequestEntityTooLarge, res.StatusCode) +} diff --git a/covenant-signer/main.go b/covenant-signer/main.go new file mode 100644 index 0000000..38e3561 --- /dev/null +++ b/covenant-signer/main.go @@ -0,0 +1,7 @@ +package main + +import "github.com/babylonlabs-io/covenant-emulator/covenant-signer/cmd" + +func main() { + _ = cmd.Execute() +} diff --git a/covenant-signer/mocks/signer_mocks.go b/covenant-signer/mocks/signer_mocks.go new file mode 100644 index 0000000..4f52367 --- /dev/null +++ b/covenant-signer/mocks/signer_mocks.go @@ -0,0 +1,143 @@ +// Code generated by MockGen. DO NOT EDIT. +// Source: signerapp/expected_interfaces.go + +// Package mocks is a generated GoMock package. +package mocks + +import ( + context "context" + reflect "reflect" + + signerapp "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" + chainhash "github.com/btcsuite/btcd/chaincfg/chainhash" + gomock "github.com/golang/mock/gomock" +) + +// MockBabylonParamsRetriever is a mock of BabylonParamsRetriever interface. +type MockBabylonParamsRetriever struct { + ctrl *gomock.Controller + recorder *MockBabylonParamsRetrieverMockRecorder +} + +// MockBabylonParamsRetrieverMockRecorder is the mock recorder for MockBabylonParamsRetriever. +type MockBabylonParamsRetrieverMockRecorder struct { + mock *MockBabylonParamsRetriever +} + +// NewMockBabylonParamsRetriever creates a new mock instance. +func NewMockBabylonParamsRetriever(ctrl *gomock.Controller) *MockBabylonParamsRetriever { + mock := &MockBabylonParamsRetriever{ctrl: ctrl} + mock.recorder = &MockBabylonParamsRetrieverMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockBabylonParamsRetriever) EXPECT() *MockBabylonParamsRetrieverMockRecorder { + return m.recorder +} + +// ParamsByHeight mocks base method. +func (m *MockBabylonParamsRetriever) ParamsByHeight(ctx context.Context, height uint64) (*signerapp.BabylonParams, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "ParamsByHeight", ctx, height) + ret0, _ := ret[0].(*signerapp.BabylonParams) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// ParamsByHeight indicates an expected call of ParamsByHeight. +func (mr *MockBabylonParamsRetrieverMockRecorder) ParamsByHeight(ctx, height interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParamsByHeight", reflect.TypeOf((*MockBabylonParamsRetriever)(nil).ParamsByHeight), ctx, height) +} + +// MockBtcChainInfo is a mock of BtcChainInfo interface. +type MockBtcChainInfo struct { + ctrl *gomock.Controller + recorder *MockBtcChainInfoMockRecorder +} + +// MockBtcChainInfoMockRecorder is the mock recorder for MockBtcChainInfo. +type MockBtcChainInfoMockRecorder struct { + mock *MockBtcChainInfo +} + +// NewMockBtcChainInfo creates a new mock instance. +func NewMockBtcChainInfo(ctrl *gomock.Controller) *MockBtcChainInfo { + mock := &MockBtcChainInfo{ctrl: ctrl} + mock.recorder = &MockBtcChainInfoMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockBtcChainInfo) EXPECT() *MockBtcChainInfoMockRecorder { + return m.recorder +} + +// BestBlockHeight mocks base method. +func (m *MockBtcChainInfo) BestBlockHeight(ctx context.Context) (uint32, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "BestBlockHeight", ctx) + ret0, _ := ret[0].(uint32) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// BestBlockHeight indicates an expected call of BestBlockHeight. +func (mr *MockBtcChainInfoMockRecorder) BestBlockHeight(ctx interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BestBlockHeight", reflect.TypeOf((*MockBtcChainInfo)(nil).BestBlockHeight), ctx) +} + +// TxByHash mocks base method. +func (m *MockBtcChainInfo) TxByHash(ctx context.Context, txHash *chainhash.Hash, pkScript []byte) (*signerapp.TxInfo, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "TxByHash", ctx, txHash, pkScript) + ret0, _ := ret[0].(*signerapp.TxInfo) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// TxByHash indicates an expected call of TxByHash. +func (mr *MockBtcChainInfoMockRecorder) TxByHash(ctx, txHash, pkScript interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TxByHash", reflect.TypeOf((*MockBtcChainInfo)(nil).TxByHash), ctx, txHash, pkScript) +} + +// MockExternalBtcSigner is a mock of ExternalBtcSigner interface. +type MockExternalBtcSigner struct { + ctrl *gomock.Controller + recorder *MockExternalBtcSignerMockRecorder +} + +// MockExternalBtcSignerMockRecorder is the mock recorder for MockExternalBtcSigner. +type MockExternalBtcSignerMockRecorder struct { + mock *MockExternalBtcSigner +} + +// NewMockExternalBtcSigner creates a new mock instance. +func NewMockExternalBtcSigner(ctrl *gomock.Controller) *MockExternalBtcSigner { + mock := &MockExternalBtcSigner{ctrl: ctrl} + mock.recorder = &MockExternalBtcSignerMockRecorder{mock} + return mock +} + +// EXPECT returns an object that allows the caller to indicate expected use. +func (m *MockExternalBtcSigner) EXPECT() *MockExternalBtcSignerMockRecorder { + return m.recorder +} + +// RawSignature mocks base method. +func (m *MockExternalBtcSigner) RawSignature(ctx context.Context, request *signerapp.SigningRequest) (*signerapp.SigningResult, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "RawSignature", ctx, request) + ret0, _ := ret[0].(*signerapp.SigningResult) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// RawSignature indicates an expected call of RawSignature. +func (mr *MockExternalBtcSignerMockRecorder) RawSignature(ctx, request interface{}) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RawSignature", reflect.TypeOf((*MockExternalBtcSigner)(nil).RawSignature), ctx, request) +} diff --git a/covenant-signer/observability/metrics/prometheus.go b/covenant-signer/observability/metrics/prometheus.go new file mode 100644 index 0000000..358346d --- /dev/null +++ b/covenant-signer/observability/metrics/prometheus.go @@ -0,0 +1,52 @@ +package metrics + +import ( + "net/http" + "regexp" + "time" + + "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/collectors" + "github.com/prometheus/client_golang/prometheus/promhttp" + "github.com/rs/zerolog/log" +) + +const ( + metricRequestTimeout time.Duration = 15 * time.Second + metricRequestIdleTimeout time.Duration = 30 * time.Second +) + +func Start(addr string, reg *prometheus.Registry) { + go start(addr, reg) +} + +func start(addr string, reg *prometheus.Registry) { + // Add Go module build info. + reg.MustRegister(collectors.NewBuildInfoCollector()) + reg.MustRegister(collectors.NewGoCollector( + collectors.WithGoCollectorRuntimeMetrics(collectors.GoRuntimeMetricsRule{Matcher: regexp.MustCompile("/.*")})), + ) + + mux := http.NewServeMux() + // Expose the registered metrics via HTTP. + mux.Handle("/metrics", promhttp.HandlerFor( + reg, + promhttp.HandlerOpts{ + // Opt into OpenMetrics to support exemplars. + EnableOpenMetrics: true, + }, + )) + + server := &http.Server{ + Addr: addr, + Handler: mux, + ReadTimeout: metricRequestTimeout, + WriteTimeout: metricRequestTimeout, + IdleTimeout: metricRequestIdleTimeout, + } + + log.Printf("Starting metrics server on %s", addr) + if err := server.ListenAndServe(); err != nil && err != http.ErrServerClosed { + log.Fatal().Err(err).Msgf("Error starting metrics server on %s", addr) + } +} diff --git a/covenant-signer/observability/metrics/signer.go b/covenant-signer/observability/metrics/signer.go new file mode 100644 index 0000000..ba3dde5 --- /dev/null +++ b/covenant-signer/observability/metrics/signer.go @@ -0,0 +1,48 @@ +package metrics + +import ( + "github.com/prometheus/client_golang/prometheus" + "github.com/prometheus/client_golang/prometheus/promauto" +) + +type CovenantSignerMetrics struct { + Registry *prometheus.Registry + ReceivedSigningRequests prometheus.Counter + SuccessfulSigningRequests prometheus.Counter + FailedSigningRequests prometheus.Counter +} + +func NewCovenantSignerMetrics() *CovenantSignerMetrics { + registry := prometheus.NewRegistry() + registerer := promauto.With(registry) + + uwMetrics := &CovenantSignerMetrics{ + Registry: registry, + ReceivedSigningRequests: registerer.NewCounter(prometheus.CounterOpts{ + Name: "signer_received_signing_requests", + Help: "The total number of signing requests received by the signer", + }), + SuccessfulSigningRequests: registerer.NewCounter(prometheus.CounterOpts{ + Name: "signer_succeeded_signing_requests", + Help: "The total number times the signer successfully responded with a signature", + }), + FailedSigningRequests: registerer.NewCounter(prometheus.CounterOpts{ + Name: "signer_failed_signing_requests", + Help: "The total number of times signer responded with an internal error", + }), + } + + return uwMetrics +} + +func (m *CovenantSignerMetrics) IncReceivedSigningRequests() { + m.ReceivedSigningRequests.Inc() +} + +func (m *CovenantSignerMetrics) IncSuccessfulSigningRequests() { + m.SuccessfulSigningRequests.Inc() +} + +func (m *CovenantSignerMetrics) IncFailedSigningRequests() { + m.FailedSigningRequests.Inc() +} diff --git a/covenant-signer/observability/tracing/tracing.go b/covenant-signer/observability/tracing/tracing.go new file mode 100644 index 0000000..1d3a5cd --- /dev/null +++ b/covenant-signer/observability/tracing/tracing.go @@ -0,0 +1,29 @@ +package tracing + +import ( + "context" + "github.com/google/uuid" +) + +type TraceContextKey string + +const TraceInfoKey = TraceContextKey("requestTracingInfo") +const TraceIdKey = TraceContextKey("requestTraceId") + +type SpanDetail struct { + Name string + Duration int64 +} + +type TracingInfo struct { + SpanDetails []SpanDetail +} + +func AttachTracingIntoContext(ctx context.Context) context.Context { + // Attach traceId into context + traceID := uuid.New().String() + ctx = context.WithValue(ctx, TraceIdKey, traceID) + + // Start tracingInfo + return context.WithValue(ctx, TraceInfoKey, &TracingInfo{}) +} diff --git a/covenant-signer/signerapp/babylon_params_retriever.go b/covenant-signer/signerapp/babylon_params_retriever.go new file mode 100644 index 0000000..9c2ec42 --- /dev/null +++ b/covenant-signer/signerapp/babylon_params_retriever.go @@ -0,0 +1,43 @@ +package signerapp + +import ( + "context" + "fmt" + + "github.com/babylonlabs-io/networks/parameters/parser" +) + +type VersionedParamsRetriever struct { + *parser.ParsedGlobalParams +} + +var _ BabylonParamsRetriever = &VersionedParamsRetriever{} + +func NewVersionedParamsRetriever(path string) (*VersionedParamsRetriever, error) { + parsedGlobalParams, err := parser.NewParsedGlobalParamsFromFile(path) + if err != nil { + return nil, err + } + return &VersionedParamsRetriever{parsedGlobalParams}, nil +} + +func (v *VersionedParamsRetriever) ParamsByHeight(ctx context.Context, height uint64) (*BabylonParams, error) { + versionedParams := v.ParsedGlobalParams.GetVersionedGlobalParamsByHeight(height) + + if versionedParams == nil { + return nil, fmt.Errorf("no global params for height %d", height) + } + + return &BabylonParams{ + CovenantPublicKeys: versionedParams.CovenantPks, + CovenantQuorum: versionedParams.CovenantQuorum, + MagicBytes: versionedParams.Tag, + UnbondingTime: versionedParams.UnbondingTime, + UnbondingFee: versionedParams.UnbondingFee, + MaxStakingAmount: versionedParams.MaxStakingAmount, + MinStakingAmount: versionedParams.MinStakingAmount, + MaxStakingTime: versionedParams.MaxStakingTime, + MinStakingTime: versionedParams.MinStakingTime, + ConfirmationDepth: versionedParams.ConfirmationDepth, + }, nil +} diff --git a/covenant-signer/signerapp/btc_chain_info.go b/covenant-signer/signerapp/btc_chain_info.go new file mode 100644 index 0000000..c5ec1ad --- /dev/null +++ b/covenant-signer/signerapp/btc_chain_info.go @@ -0,0 +1,40 @@ +package signerapp + +import ( + "context" + "fmt" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/btcclient" + "github.com/btcsuite/btcd/chaincfg/chainhash" +) + +var _ BtcChainInfo = (*BitcoindChainInfo)(nil) + +type BitcoindChainInfo struct { + c *btcclient.BtcClient +} + +func NewBitcoindChainInfo(c *btcclient.BtcClient) *BitcoindChainInfo { + return &BitcoindChainInfo{c: c} +} + +func (b *BitcoindChainInfo) TxByHash(_ context.Context, txHash *chainhash.Hash, pkScript []byte) (*TxInfo, error) { + conf, status, err := b.c.TxDetails(txHash, pkScript) + + if err != nil { + return nil, fmt.Errorf("failed to get tx by hash: %w", err) + } + + if status != btcclient.TxInChain { + return nil, fmt.Errorf("tx with hash %s is not in chain", txHash.String()) + } + + return &TxInfo{ + Tx: conf.Tx, + TxInclusionHeight: conf.BlockHeight, + }, nil +} + +func (b *BitcoindChainInfo) BestBlockHeight(_ context.Context) (uint32, error) { + return b.c.BestBlockHeight() +} diff --git a/covenant-signer/signerapp/btc_priv_key_signer.go b/covenant-signer/signerapp/btc_priv_key_signer.go new file mode 100644 index 0000000..69dffad --- /dev/null +++ b/covenant-signer/signerapp/btc_priv_key_signer.go @@ -0,0 +1,54 @@ +package signerapp + +import ( + "context" + "fmt" + + "github.com/babylonlabs-io/babylon/btcstaking" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/btcclient" +) + +// PrivKeySigner is a signer that uses a private key from connected bitcoind node +// Due to transfer of key through channer, it require encrypted connection +// to bitcoind node like ssh or tls. +// Key is zeroed after signing, to not sit in memory longer than needed. +type PrivKeySigner struct { + client *btcclient.BtcClient +} + +func NewPrivKeySigner(client *btcclient.BtcClient) *PrivKeySigner { + return &PrivKeySigner{ + client: client, + } +} + +var _ ExternalBtcSigner = (*PrivKeySigner)(nil) + +func (s *PrivKeySigner) RawSignature(ctx context.Context, request *SigningRequest) (*SigningResult, error) { + if err := btcstaking.IsSimpleTransfer(request.UnbondingTransaction); err != nil { + return nil, fmt.Errorf("invalid unbonding transaction received for signing: %w", err) + } + + key, err := s.client.DumpPrivateKey(request.CovenantAddress) + + if err != nil { + return nil, fmt.Errorf("failed to retrieve covenant key for signing: %w", err) + } + // Zero key after signing + defer key.Zero() + + sig, err := btcstaking.SignTxWithOneScriptSpendInputFromTapLeaf( + request.UnbondingTransaction, + request.StakingOutput, + key, + *request.SpendDescription.ScriptLeaf, + ) + + if err != nil { + return nil, fmt.Errorf("failed to sign transaction: %w", err) + } + + return &SigningResult{ + Signature: sig, + }, nil +} diff --git a/covenant-signer/signerapp/btc_psbt_signer.go b/covenant-signer/signerapp/btc_psbt_signer.go new file mode 100644 index 0000000..869fd66 --- /dev/null +++ b/covenant-signer/signerapp/btc_psbt_signer.go @@ -0,0 +1,95 @@ +package signerapp + +import ( + "context" + "fmt" + + staking "github.com/babylonlabs-io/babylon/btcstaking" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/btcclient" + "github.com/btcsuite/btcd/btcec/v2/schnorr" + "github.com/btcsuite/btcd/btcutil/psbt" + "github.com/btcsuite/btcd/txscript" + "github.com/btcsuite/btcd/wire" +) + +var _ ExternalBtcSigner = (*PsbtSigner)(nil) + +type PsbtSigner struct { + client *btcclient.BtcClient +} + +func NewPsbtSigner(client *btcclient.BtcClient) *PsbtSigner { + return &PsbtSigner{ + client: client, + } +} + +// TODO: Figure out how to sign complex taproot scripts using psbt packets sent +// to bitcoind. It may require using descriptors wallets. +func (s *PsbtSigner) RawSignature(ctx context.Context, request *SigningRequest) (*SigningResult, error) { + if err := staking.IsSimpleTransfer(request.UnbondingTransaction); err != nil { + return nil, fmt.Errorf("invalid unbonding transaction: %w", err) + } + + psbtPacket, err := psbt.New( + []*wire.OutPoint{&request.UnbondingTransaction.TxIn[0].PreviousOutPoint}, + request.UnbondingTransaction.TxOut, + request.UnbondingTransaction.Version, + request.UnbondingTransaction.LockTime, + []uint32{wire.MaxTxInSequenceNum}, + ) + + if err != nil { + return nil, fmt.Errorf("failed to create PSBT packet with unbonding transaction: %w", err) + } + + psbtPacket.Inputs[0].SighashType = txscript.SigHashDefault + psbtPacket.Inputs[0].WitnessUtxo = request.StakingOutput + psbtPacket.Inputs[0].Bip32Derivation = []*psbt.Bip32Derivation{ + { + PubKey: request.CovenantPublicKey.SerializeCompressed(), + }, + } + + ctrlBlockBytes, err := request.SpendDescription.ControlBlock.ToBytes() + + if err != nil { + return nil, fmt.Errorf("failed to serialize control block: %w", err) + } + + psbtPacket.Inputs[0].TaprootLeafScript = []*psbt.TaprootTapLeafScript{ + { + ControlBlock: ctrlBlockBytes, + Script: request.SpendDescription.ScriptLeaf.Script, + LeafVersion: request.SpendDescription.ScriptLeaf.LeafVersion, + }, + } + + signedPacket, err := s.client.SignPsbt(psbtPacket) + + if err != nil { + return nil, fmt.Errorf("failed to sign PSBT packet: %w", err) + } + + if len(signedPacket.Inputs[0].TaprootScriptSpendSig) == 0 { + // this can happen if btcwallet does not maintain the private key for the + // for the public in signing request + return nil, fmt.Errorf("no signature found in PSBT packet. Wallet does not maintain covenant public key") + } + + schnorSignature := signedPacket.Inputs[0].TaprootScriptSpendSig[0].Signature + + parsedSignature, err := schnorr.ParseSignature(schnorSignature) + + if err != nil { + return nil, fmt.Errorf("failed to parse schnorr signature in psbt packet: %w", err) + + } + + result := &SigningResult{ + Signature: parsedSignature, + } + + return result, nil +} diff --git a/covenant-signer/signerapp/expected_interfaces.go b/covenant-signer/signerapp/expected_interfaces.go new file mode 100644 index 0000000..16654e7 --- /dev/null +++ b/covenant-signer/signerapp/expected_interfaces.go @@ -0,0 +1,64 @@ +package signerapp + +import ( + "context" + + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcec/v2/schnorr" + "github.com/btcsuite/btcd/btcutil" + "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/btcsuite/btcd/txscript" + "github.com/btcsuite/btcd/wire" +) + +type BabylonParams struct { + CovenantPublicKeys []*btcec.PublicKey + CovenantQuorum uint32 + MagicBytes []byte + UnbondingTime uint16 + UnbondingFee btcutil.Amount + MaxStakingAmount btcutil.Amount + MinStakingAmount btcutil.Amount + MaxStakingTime uint16 + MinStakingTime uint16 + ConfirmationDepth uint16 +} + +type BabylonParamsRetriever interface { + // ParamsByHeight + ParamsByHeight(ctx context.Context, height uint64) (*BabylonParams, error) +} + +type TxInfo struct { + Tx *wire.MsgTx + TxInclusionHeight uint32 +} + +type BtcChainInfo interface { + // Returns only transactions inluded in canonical chain + // passing pkScript as argument make it light client friendly + TxByHash(ctx context.Context, txHash *chainhash.Hash, pkScript []byte) (*TxInfo, error) + + BestBlockHeight(ctx context.Context) (uint32, error) +} + +type SpendPathDescription struct { + ControlBlock *txscript.ControlBlock + ScriptLeaf *txscript.TapLeaf +} + +type SigningRequest struct { + StakingOutput *wire.TxOut + UnbondingTransaction *wire.MsgTx + CovenantPublicKey *btcec.PublicKey + CovenantAddress btcutil.Address + SpendDescription *SpendPathDescription +} + +type SigningResult struct { + Signature *schnorr.Signature +} + +type ExternalBtcSigner interface { + RawSignature(ctx context.Context, request *SigningRequest) (*SigningResult, error) +} diff --git a/covenant-signer/signerapp/signer.go b/covenant-signer/signerapp/signer.go new file mode 100644 index 0000000..35acc37 --- /dev/null +++ b/covenant-signer/signerapp/signer.go @@ -0,0 +1,279 @@ +package signerapp + +import ( + "bytes" + "context" + "encoding/hex" + "fmt" + + "github.com/babylonlabs-io/babylon/btcstaking" + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcec/v2/schnorr" + "github.com/btcsuite/btcd/btcutil" + "github.com/btcsuite/btcd/chaincfg" + "github.com/btcsuite/btcd/txscript" + "github.com/btcsuite/btcd/wire" +) + +var ( + ErrInvalidSigningRequest = fmt.Errorf("invalid signing request") +) + +func wrapInvalidSigningRequestError(err error) error { + return fmt.Errorf("%s: %w", err, ErrInvalidSigningRequest) +} + +type SignerApp struct { + s ExternalBtcSigner + r BtcChainInfo + p BabylonParamsRetriever + net *chaincfg.Params +} + +func NewSignerApp( + s ExternalBtcSigner, + r BtcChainInfo, + p BabylonParamsRetriever, + net *chaincfg.Params, +) *SignerApp { + return &SignerApp{ + s: s, + r: r, + p: p, + net: net, + } +} + +func (s *SignerApp) pubKeyToAddress(pubKey *btcec.PublicKey) (btcutil.Address, error) { + pubKeyHash := btcutil.Hash160(pubKey.SerializeCompressed()) + witnessAddr, err := btcutil.NewAddressWitnessPubKeyHash( + pubKeyHash, s.net, + ) + + if err != nil { + return nil, err + } + return witnessAddr, nil +} + +func isCovenantMember(pubKey *btcec.PublicKey, covenantKeys []*btcec.PublicKey) bool { + for _, key := range covenantKeys { + if pubKey.IsEqual(key) { + return true + } + } + + return false +} + +func outputsAreEqual(a *wire.TxOut, b *wire.TxOut) bool { + if a.Value != b.Value { + return false + } + + if !bytes.Equal(a.PkScript, b.PkScript) { + return false + } + + return true +} + +// TODO: add unit tests for validations +func (s *SignerApp) SignUnbondingTransaction( + ctx context.Context, + stakingOutputPkScript []byte, + unbondingTx *wire.MsgTx, + stakerUnbondingSig *schnorr.Signature, + covnentSignerPubKey *btcec.PublicKey, +) (*schnorr.Signature, error) { + if err := btcstaking.CheckPreSignedUnbondingTxSanity(unbondingTx); err != nil { + return nil, wrapInvalidSigningRequestError(err) + } + + script, err := txscript.ParsePkScript(stakingOutputPkScript) + + if err != nil { + return nil, wrapInvalidSigningRequestError(err) + } + + if script.Class() != txscript.WitnessV1TaprootTy { + return nil, wrapInvalidSigningRequestError(fmt.Errorf("invalid staking output pk script")) + } + + stakingTxHash := unbondingTx.TxIn[0].PreviousOutPoint.Hash + + stakingTxInfo, err := s.r.TxByHash(ctx, &stakingTxHash, stakingOutputPkScript) + + if err != nil { + return nil, err + } + bestBlock, err := s.r.BestBlockHeight(ctx) + + if err != nil { + return nil, err + } + + // TODO: This should probably be done when service is started, otherwise if we implement + // retrieving params from service we will call it for every signing request + params, err := s.p.ParamsByHeight(ctx, uint64(stakingTxInfo.TxInclusionHeight)) + + if err != nil { + return nil, err + } + + if !isCovenantMember(covnentSignerPubKey, params.CovenantPublicKeys) { + return nil, wrapInvalidSigningRequestError(fmt.Errorf("received covenant public key %s is not committee member at height %d", + hex.EncodeToString(covnentSignerPubKey.SerializeCompressed()), + stakingTxInfo.TxInclusionHeight, + )) + } + + // We are using signed numbers here as calls to: + // - TxByHash + // - BestBlockHeight + // are not atomic. This means if we do them during underlying node re-org + // we may hit the case where stakingTxInfo.TxInclusionHeight is higher than bestBlock. + numberOfStakingTxConfirmations := (int64(bestBlock) - int64(stakingTxInfo.TxInclusionHeight)) + 1 + + if numberOfStakingTxConfirmations < int64(params.ConfirmationDepth) { + return nil, wrapInvalidSigningRequestError(fmt.Errorf( + "staking tx does not have enough confirmations. Current confirmations: %d, required confirmations: %d", + numberOfStakingTxConfirmations, + params.ConfirmationDepth, + )) + } + + parsedStakingTransaction, err := btcstaking.ParseV0StakingTx( + stakingTxInfo.Tx, + params.MagicBytes, + params.CovenantPublicKeys, + params.CovenantQuorum, + s.net) + + if err != nil { + return nil, wrapInvalidSigningRequestError(err) + } + + stakingOutputIndexFromUnbondingTx := unbondingTx.TxIn[0].PreviousOutPoint.Index + + //#nosec G115 -- safe conversion from int to uint32, as this point we know that + // - staking transaction is valid BTC transaction that is part of the BTC ledger + // - BTC transactions won't have more that math.MaxUint32 outputs (in reality the max is closer to ~4k output) + if stakingOutputIndexFromUnbondingTx != uint32(parsedStakingTransaction.StakingOutputIdx) { + return nil, wrapInvalidSigningRequestError(fmt.Errorf("unbonding transaction has invalid input index")) + } + + if parsedStakingTransaction.OpReturnData.StakingTime < params.MinStakingTime || + parsedStakingTransaction.OpReturnData.StakingTime > params.MaxStakingTime { + return nil, wrapInvalidSigningRequestError( + fmt.Errorf( + "staking time of staking tx with hash: %s is out of bounds", + stakingTxHash.String(), + ), + ) + } + + if parsedStakingTransaction.StakingOutput.Value < int64(params.MinStakingAmount) || + parsedStakingTransaction.StakingOutput.Value > int64(params.MaxStakingAmount) { + return nil, wrapInvalidSigningRequestError(fmt.Errorf( + "staking amount of staking tx with hash: %s is out of bounds", + stakingTxHash.String(), + )) + } + + expectedUnbondingOutputValue := parsedStakingTransaction.StakingOutput.Value - int64(params.UnbondingFee) + + if expectedUnbondingOutputValue <= 0 { + // This is actually eror of our parameters configuaration and should not happen + // for honest requests. + return nil, fmt.Errorf("staking output value is too low") + } + + // build expected output in unbonding transaction + unbondingInfo, err := btcstaking.BuildUnbondingInfo( + parsedStakingTransaction.OpReturnData.StakerPublicKey.PubKey, + []*btcec.PublicKey{parsedStakingTransaction.OpReturnData.FinalityProviderPublicKey.PubKey}, + params.CovenantPublicKeys, + params.CovenantQuorum, + params.UnbondingTime, + btcutil.Amount(expectedUnbondingOutputValue), + s.net, + ) + + if err != nil { + return nil, err + } + + if !outputsAreEqual(unbondingInfo.UnbondingOutput, unbondingTx.TxOut[0]) { + return nil, wrapInvalidSigningRequestError( + fmt.Errorf("unbonding output does not match expected output"), + ) + } + + // At this point we know that: + // - unbonding tx has correct shape - 1 input, 1 output, no timelocks, not replaceable + // - staking tx exists on btc chain, is mature and has correct shape according Babylong Params + // - unbonding tx output matches the parameters from the staking transaction and the params + // We can send request to our remote signer + stakingInfo, err := btcstaking.BuildStakingInfo( + parsedStakingTransaction.OpReturnData.StakerPublicKey.PubKey, + []*btcec.PublicKey{parsedStakingTransaction.OpReturnData.FinalityProviderPublicKey.PubKey}, + params.CovenantPublicKeys, + params.CovenantQuorum, + parsedStakingTransaction.OpReturnData.StakingTime, + btcutil.Amount(parsedStakingTransaction.StakingOutput.Value), + s.net, + ) + + if err != nil { + return nil, err + } + + unbondingPathInfo, err := stakingInfo.UnbondingPathSpendInfo() + + if err != nil { + return nil, err + } + + // Verify that staker signature is correct. This makes sure that this is staker + // who requests unbonding or at least someone who has access to staker's private key + err = btcstaking.VerifyTransactionSigWithOutput( + unbondingTx, + parsedStakingTransaction.StakingOutput, + unbondingPathInfo.RevealedLeaf.Script, + parsedStakingTransaction.OpReturnData.StakerPublicKey.PubKey, + stakerUnbondingSig.Serialize(), + ) + + if err != nil { + return nil, wrapInvalidSigningRequestError( + fmt.Errorf( + "staker unbonding signature verification failed: %w", + err, + ), + ) + } + + covenantKeyAddress, err := s.pubKeyToAddress(covnentSignerPubKey) + + if err != nil { + return nil, err + } + + sig, err := s.s.RawSignature(ctx, &SigningRequest{ + StakingOutput: parsedStakingTransaction.StakingOutput, + UnbondingTransaction: unbondingTx, + CovenantPublicKey: covnentSignerPubKey, + CovenantAddress: covenantKeyAddress, + SpendDescription: &SpendPathDescription{ + ControlBlock: &unbondingPathInfo.ControlBlock, + ScriptLeaf: &unbondingPathInfo.RevealedLeaf, + }, + }) + + if err != nil { + return nil, err + } + + return sig.Signature, nil +} diff --git a/covenant-signer/signerapp/signer_test.go b/covenant-signer/signerapp/signer_test.go new file mode 100644 index 0000000..47ed6f5 --- /dev/null +++ b/covenant-signer/signerapp/signer_test.go @@ -0,0 +1,287 @@ +package signerapp_test + +import ( + "context" + "encoding/hex" + "errors" + "fmt" + "testing" + + "github.com/babylonlabs-io/babylon/btcstaking" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/mocks" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" + "github.com/babylonlabs-io/networks/parameters/parser" + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcec/v2/schnorr" + "github.com/btcsuite/btcd/btcutil" + "github.com/btcsuite/btcd/btcutil/hdkeychain" + "github.com/btcsuite/btcd/chaincfg" + "github.com/btcsuite/btcd/chaincfg/chainhash" + "github.com/btcsuite/btcd/wire" + "github.com/golang/mock/gomock" + "github.com/stretchr/testify/require" +) + +var ( + defaultParam = parser.VersionedGlobalParams{ + Version: 0, + ActivationHeight: 100, + StakingCap: 3000000, + CapHeight: 0, + Tag: "01020304", + CovenantPks: []string{ + "03ffeaec52a9b407b355ef6967a7ffc15fd6c3fe07de2844d61550475e7a5233e5", + "03a5c60c2188e833d39d0fa798ab3f69aa12ed3dd2f3bad659effa252782de3c31", + "0359d3532148a597a2d05c0395bf5f7176044b1cd312f37701a9b4d0aad70bc5a4", + "0357349e985e742d5131e1e2b227b5170f6350ac2e2feb72254fcc25b3cee21a18", + "03c8ccb03c379e452f10c81232b41a1ca8b63d0baf8387e57d302c987e5abb8527", + }, + CovenantQuorum: 3, + UnbondingTime: 1000, + UnbondingFee: 1000, + MaxStakingAmount: 300000, + MinStakingAmount: 3000, + MaxStakingTime: 10000, + MinStakingTime: 100, + ConfirmationDepth: 10, + } + + globalParams = parser.GlobalParams{ + Versions: []*parser.VersionedGlobalParams{&defaultParam}, + } + + // always valid + parsed, _ = parser.ParseGlobalParams(&globalParams) + + net = chaincfg.MainNetParams +) + +type MockedDependencies struct { + pr *mocks.MockBabylonParamsRetriever + bi *mocks.MockBtcChainInfo + s *mocks.MockExternalBtcSigner + params *signerapp.BabylonParams +} + +func parserParamsToBabylonParams( + versionedParams *parser.ParsedVersionedGlobalParams) *signerapp.BabylonParams { + return &signerapp.BabylonParams{ + CovenantPublicKeys: versionedParams.CovenantPks, + CovenantQuorum: versionedParams.CovenantQuorum, + MagicBytes: versionedParams.Tag, + UnbondingTime: versionedParams.UnbondingTime, + UnbondingFee: versionedParams.UnbondingFee, + MaxStakingAmount: versionedParams.MaxStakingAmount, + MinStakingAmount: versionedParams.MinStakingAmount, + MaxStakingTime: versionedParams.MaxStakingTime, + MinStakingTime: versionedParams.MinStakingTime, + ConfirmationDepth: versionedParams.ConfirmationDepth, + } +} + +func NewMockedDependencies(t *testing.T) *MockedDependencies { + ctrl := gomock.NewController(t) + return &MockedDependencies{ + pr: mocks.NewMockBabylonParamsRetriever(ctrl), + bi: mocks.NewMockBtcChainInfo(ctrl), + s: mocks.NewMockExternalBtcSigner(ctrl), + params: parserParamsToBabylonParams(parsed.Versions[0]), + } +} + +type TestData struct { + StakerPrivKey *btcec.PrivateKey + StakerPubKey *btcec.PublicKey + FinalityProviderPublicKey *btcec.PublicKey + StakingInfo *btcstaking.IdentifiableStakingInfo + StakingTransaction *wire.MsgTx + UnbondingTx *wire.MsgTx + UnbondingTxStakerSig *schnorr.Signature +} + +func NewValidTestData(t *testing.T, params *signerapp.BabylonParams) *TestData { + stakerKey, err := btcec.NewPrivateKey() + require.NoError(t, err) + stakerPubKey := stakerKey.PubKey() + fpKey, err := btcec.NewPrivateKey() + require.NoError(t, err) + stakingInfo, stakingTx, err := btcstaking.BuildV0IdentifiableStakingOutputsAndTx( + params.MagicBytes, + stakerPubKey, + fpKey.PubKey(), + params.CovenantPublicKeys, + params.CovenantQuorum, + params.MinStakingTime+1, + params.MaxStakingAmount, + &net, + ) + + require.NoError(t, err) + + stakingUnbondingPathInfo, err := stakingInfo.UnbondingPathSpendInfo() + require.NoError(t, err) + + fakeInputHashBytes := [32]byte{} + fakeInputHash, err := chainhash.NewHash(fakeInputHashBytes[:]) + require.NoError(t, err) + fakeInputIndex := uint32(0) + stakingTx.AddTxIn(wire.NewTxIn(wire.NewOutPoint(fakeInputHash, fakeInputIndex), nil, nil)) + + unbondingInfo, err := btcstaking.BuildUnbondingInfo( + stakerPubKey, + []*btcec.PublicKey{fpKey.PubKey()}, + params.CovenantPublicKeys, + params.CovenantQuorum, + params.UnbondingTime, + btcutil.Amount(stakingInfo.StakingOutput.Value-int64(params.UnbondingFee)), + &net, + ) + require.NoError(t, err) + stakingTxHash := stakingTx.TxHash() + unbondingTx := wire.NewMsgTx(wire.TxVersion) + unbondingTx.AddTxIn(wire.NewTxIn(wire.NewOutPoint(&stakingTxHash, 0), nil, nil)) + unbondingTx.AddTxOut(unbondingInfo.UnbondingOutput) + + validSig, err := btcstaking.SignTxWithOneScriptSpendInputFromTapLeaf( + unbondingTx, + stakingInfo.StakingOutput, + stakerKey, + stakingUnbondingPathInfo.RevealedLeaf, + ) + + require.NoError(t, err) + + return &TestData{ + StakerPrivKey: stakerKey, + StakerPubKey: stakerPubKey, + FinalityProviderPublicKey: fpKey.PubKey(), + StakingInfo: stakingInfo, + StakingTransaction: stakingTx, + UnbondingTx: unbondingTx, + UnbondingTxStakerSig: validSig, + } +} + +func TestValidSigningRequest(t *testing.T) { + deps := NewMockedDependencies(t) + signerApp := signerapp.NewSignerApp(deps.s, deps.bi, deps.pr, &net) + validData := NewValidTestData(t, deps.params) + + deps.bi.EXPECT().TxByHash( + gomock.Any(), + &validData.UnbondingTx.TxIn[0].PreviousOutPoint.Hash, + validData.StakingInfo.StakingOutput.PkScript).Return( + &signerapp.TxInfo{ + Tx: validData.StakingTransaction, + TxInclusionHeight: 200, + }, nil, + ) + deps.bi.EXPECT().BestBlockHeight(gomock.Any()).Return(uint32(300), nil) + deps.pr.EXPECT().ParamsByHeight(gomock.Any(), uint64(200)).Return(deps.params, nil) + // return staker signature from mock, as it does not matter for test correctness + deps.s.EXPECT().RawSignature(gomock.Any(), gomock.Any()).Return(&signerapp.SigningResult{ + Signature: validData.UnbondingTxStakerSig, + }, nil) + + receivedSignature, err := signerApp.SignUnbondingTransaction( + context.Background(), + validData.StakingInfo.StakingOutput.PkScript, + validData.UnbondingTx, + validData.UnbondingTxStakerSig, + deps.params.CovenantPublicKeys[0], + ) + + require.NoError(t, err) + require.NotNil(t, receivedSignature) + require.Equal(t, validData.UnbondingTxStakerSig, receivedSignature) +} + +func TestErrRequestNotCovenantMember(t *testing.T) { + deps := NewMockedDependencies(t) + signerApp := signerapp.NewSignerApp(deps.s, deps.bi, deps.pr, &net) + validData := NewValidTestData(t, deps.params) + + deps.bi.EXPECT().TxByHash( + gomock.Any(), + &validData.UnbondingTx.TxIn[0].PreviousOutPoint.Hash, + validData.StakingInfo.StakingOutput.PkScript).Return( + &signerapp.TxInfo{ + Tx: validData.StakingTransaction, + TxInclusionHeight: 200, + }, nil, + ) + deps.bi.EXPECT().BestBlockHeight(gomock.Any()).Return(uint32(300), nil) + deps.pr.EXPECT().ParamsByHeight(gomock.Any(), uint64(200)).Return(deps.params, nil) + + unknownCovenantMember, err := btcec.NewPrivateKey() + require.NoError(t, err) + + receivedSignature, err := signerApp.SignUnbondingTransaction( + context.Background(), + validData.StakingInfo.StakingOutput.PkScript, + validData.UnbondingTx, + validData.UnbondingTxStakerSig, + unknownCovenantMember.PubKey(), + ) + + require.Error(t, err) + require.Nil(t, receivedSignature) + require.True(t, errors.Is(err, signerapp.ErrInvalidSigningRequest)) +} + +func TestErrSignerNotReady(t *testing.T) { + + prvKey := "tprv8ZgxMBicQKsPdkArkw7uECTCfqthm5NAWhLpcHMyHYTAsKv2V3QsxvXhAyLqfjXSsdFAVAhwq54TsZe7rkYB3QCCNNVm4xHM7y8z8hoYzzk" + hdKey, err := hdkeychain.NewKeyFromString(prvKey) + require.NoError(t, err) + fmt.Println(hdKey.String()) + ecPrivKey, err := hdKey.ECPrivKey() + require.NoError(t, err) + fmt.Println("Master key") + fmt.Println(hex.EncodeToString(ecPrivKey.Serialize())) + + fmt.Println("Derive 0") + key, err := DeriveDefaultWitnessKeyPath(hdKey, 0) + require.NoError(t, err) + fmt.Println(key.String()) + ecPrivKey1, err := key.ECPrivKey() + require.NoError(t, err) + fmt.Println("Private key") + fmt.Println(hex.EncodeToString(ecPrivKey1.Serialize())) + pubKey := ecPrivKey1.PubKey() + fmt.Println("Public key") + fmt.Println(hex.EncodeToString(pubKey.SerializeCompressed())) + +} + +// 84h/1h/0h/0 +func DeriveDefaultWitnessKeyPath(masterPrivKey *hdkeychain.ExtendedKey, index uint32) (*hdkeychain.ExtendedKey, error) { + + // 84h + first, err := masterPrivKey.Derive(hdkeychain.HardenedKeyStart + 84) + if err != nil { + return nil, err + } + // 84h/1h + second, err := first.Derive(hdkeychain.HardenedKeyStart + 1) + if err != nil { + return nil, err + } + // 84h/1h/0h + third, err := second.Derive(hdkeychain.HardenedKeyStart + 0) + if err != nil { + return nil, err + } + + fourth, err := third.Derive(0) + if err != nil { + return nil, err + } + + fifth, err := fourth.Derive(index) + if err != nil { + return nil, err + } + + return fifth, nil +} diff --git a/covenant-signer/signerservice/client.go b/covenant-signer/signerservice/client.go new file mode 100644 index 0000000..c8a1b3c --- /dev/null +++ b/covenant-signer/signerservice/client.go @@ -0,0 +1,101 @@ +package signerservice + +import ( + "bytes" + "context" + "encoding/hex" + "encoding/json" + "fmt" + "io" + "net/http" + "time" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/handlers" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/types" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/utils" + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcec/v2/schnorr" + "github.com/btcsuite/btcd/wire" +) + +const ( + // 1MB should be enough for the response + maxResponseSize = 1 << 20 // 1MB +) + +func RequestCovenantSignaure( + ctx context.Context, + signerUrl string, + timeout time.Duration, + unbondingTx *wire.MsgTx, + stakerUnbondingSig *schnorr.Signature, + covenantMemberPublicKey *btcec.PublicKey, + stakingTransactionPkScript []byte, +) (*schnorr.Signature, error) { + unbondingTxHex, err := utils.SerializeBTCTxToHex(unbondingTx) + + if err != nil { + return nil, err + } + + keyHex := hex.EncodeToString(covenantMemberPublicKey.SerializeCompressed()) + + pkScriptHex := hex.EncodeToString(stakingTransactionPkScript) + + sigHex := hex.EncodeToString(stakerUnbondingSig.Serialize()) + + req := types.SignUnbondingTxRequest{ + StakingOutputPkScriptHex: pkScriptHex, + UnbondingTxHex: unbondingTxHex, + StakerUnbondingSigHex: sigHex, + CovenantPublicKey: keyHex, + } + + marshalled, err := json.Marshal(req) + + if err != nil { + return nil, err + } + + route := fmt.Sprintf("%s/v1/sign-unbonding-tx", signerUrl) + + httpRequest, err := http.NewRequestWithContext(ctx, "POST", route, bytes.NewReader(marshalled)) + + if err != nil { + return nil, err + } + + // use json + httpRequest.Header.Set("Content-Type", "application/json") + + client := http.Client{Timeout: timeout} + // send the request + res, err := client.Do(httpRequest) + + if err != nil { + return nil, err + } + + defer res.Body.Close() + + maxSizeReader := http.MaxBytesReader(nil, res.Body, maxResponseSize) + + // read body, up to 1MB + resBody, err := io.ReadAll(maxSizeReader) + + if err != nil { + return nil, err + } + + if res.StatusCode != http.StatusOK { + return nil, fmt.Errorf("signing request failed. status code: %d, message: %s", res.StatusCode, string(resBody)) + } + + var response handlers.PublicResponse[types.SignUnbondingTxResponse] + if err := json.Unmarshal(resBody, &response); err != nil { + return nil, err + } + + return utils.SchnorSignatureFromHex(response.Data.SignatureHex) +} diff --git a/covenant-signer/signerservice/handlers/handler.go b/covenant-signer/signerservice/handlers/handler.go new file mode 100644 index 0000000..b19e815 --- /dev/null +++ b/covenant-signer/signerservice/handlers/handler.go @@ -0,0 +1,37 @@ +package handlers + +import ( + "context" + "net/http" + + m "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/metrics" + s "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" +) + +type Handler struct { + s *s.SignerApp + m *m.CovenantSignerMetrics +} + +type Result struct { + Data interface{} + Status int +} + +type PublicResponse[T any] struct { + Data T `json:"data"` +} + +func NewResult[T any](data T) *Result { + res := &PublicResponse[T]{Data: data} + return &Result{Data: res, Status: http.StatusOK} +} + +func NewHandler( + _ context.Context, s *s.SignerApp, m *m.CovenantSignerMetrics, +) (*Handler, error) { + return &Handler{ + s: s, + m: m, + }, nil +} diff --git a/covenant-signer/signerservice/handlers/sign_unbonding.go b/covenant-signer/signerservice/handlers/sign_unbonding.go new file mode 100644 index 0000000..51dc80b --- /dev/null +++ b/covenant-signer/signerservice/handlers/sign_unbonding.go @@ -0,0 +1,91 @@ +package handlers + +import ( + "encoding/hex" + "encoding/json" + "errors" + "net/http" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/types" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/utils" + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcec/v2/schnorr" +) + +func parseSchnorrSigFromHex(hexStr string) (*schnorr.Signature, error) { + sigBytes, err := hex.DecodeString(hexStr) + if err != nil { + return nil, err + } + + return schnorr.ParseSignature(sigBytes) +} + +func (h *Handler) SignUnbonding(request *http.Request) (*Result, *types.Error) { + payload := &types.SignUnbondingTxRequest{} + err := json.NewDecoder(request.Body).Decode(payload) + if err != nil { + return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid request payload") + } + + pkScript, err := hex.DecodeString(payload.StakingOutputPkScriptHex) + + if err != nil { + return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid staking output pk script") + } + + covenantPublicKeyBytes, err := hex.DecodeString(payload.CovenantPublicKey) + + if err != nil { + return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid covenant public key") + } + + covenantPublicKey, err := btcec.ParsePubKey(covenantPublicKeyBytes) + + if err != nil { + return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid covenant public key") + } + + unbondingTx, _, err := utils.NewBTCTxFromHex(payload.UnbondingTxHex) + + if err != nil { + return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid unbonding transaction") + } + + stakerUnbondingSig, err := parseSchnorrSigFromHex(payload.StakerUnbondingSigHex) + + if err != nil { + return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid staker unbonding signature") + } + + // do not count the requests with invalid arguments + h.m.IncReceivedSigningRequests() + + sig, err := h.s.SignUnbondingTransaction( + request.Context(), + pkScript, + unbondingTx, + stakerUnbondingSig, + covenantPublicKey, + ) + + if err != nil { + h.m.IncFailedSigningRequests() + + if errors.Is(err, signerapp.ErrInvalidSigningRequest) { + return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, err.Error()) + } + + // if this is unknown error, return internal server error + return nil, types.NewErrorWithMsg(http.StatusInternalServerError, types.InternalServiceError, err.Error()) + } + + resp := types.SignUnbondingTxResponse{ + SignatureHex: hex.EncodeToString(sig.Serialize()), + } + + h.m.IncSuccessfulSigningRequests() + + return NewResult(resp), nil +} diff --git a/covenant-signer/signerservice/http_response.go b/covenant-signer/signerservice/http_response.go new file mode 100644 index 0000000..30a58d8 --- /dev/null +++ b/covenant-signer/signerservice/http_response.go @@ -0,0 +1,86 @@ +package signerservice + +import ( + "encoding/json" + "net/http" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/handlers" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/types" + logger "github.com/rs/zerolog" +) + +type ErrorResponse struct { + ErrorCode string `json:"errorCode"` + Message string `json:"message"` +} + +func newInternalServiceError() *ErrorResponse { + return &ErrorResponse{ + ErrorCode: types.InternalServiceError.String(), + Message: "Internal service error", + } +} + +func (e *ErrorResponse) Error() string { + return e.Message +} + +func registerHandler(handlerFunc func(*http.Request) (*handlers.Result, *types.Error)) func(http.ResponseWriter, *http.Request) { + return func(w http.ResponseWriter, r *http.Request) { + // Set up metrics recording for the endpoint + + // Handle the actual business logic + result, err := handlerFunc(r) + + if err != nil { + if http.StatusText(err.StatusCode) == "" { + logger.Ctx(r.Context()).Error().Err(err).Int("status_code", err.StatusCode).Msg("invalid status code") + err.StatusCode = http.StatusInternalServerError + } + + errorResponse := &ErrorResponse{ + ErrorCode: string(err.ErrorCode), + Message: err.Err.Error(), + } + // Log the error + if err.StatusCode >= http.StatusInternalServerError { + logger.Ctx(r.Context()).Error().Err(errorResponse).Msg("request failed with 5xx error") + errorResponse.Message = "Internal service error" // Hide the internal message error from client + } + // terminate the request here + writeResponse(w, r, err.StatusCode, errorResponse) + return + } + + if result == nil || http.StatusText(result.Status) == "" { + logger.Ctx(r.Context()).Error().Msg("invalid success response, error returned") + // terminate the request here + writeResponse(w, r, http.StatusInternalServerError, newInternalServiceError()) + return + } + + writeResponse(w, r, result.Status, result.Data) + } +} + +// Write and return response +func writeResponse( + w http.ResponseWriter, + r *http.Request, + statusCode int, + res interface{}, +) { + respBytes, err := json.Marshal(res) + + if err != nil { + logger.Ctx(r.Context()).Err(err).Msg("failed to marshal error response") + http.Error(w, "Failed to process the request. Please try again later.", http.StatusInternalServerError) + return + } + + w.Header().Set("Content-Type", "application/json") + w.WriteHeader(statusCode) + if _, err := w.Write(respBytes); err != nil { + logger.Ctx(r.Context()).Err(err).Msg("failed to write response") + } +} diff --git a/covenant-signer/signerservice/middlewares/content_length.go b/covenant-signer/signerservice/middlewares/content_length.go new file mode 100644 index 0000000..ff3b110 --- /dev/null +++ b/covenant-signer/signerservice/middlewares/content_length.go @@ -0,0 +1,22 @@ +package middlewares + +import ( + "net/http" +) + +func ContentLengthMiddleware(maxBytes int64) func(http.Handler) http.Handler { + f := func(h http.Handler) http.Handler { + fn := func(w http.ResponseWriter, r *http.Request) { + if r.ContentLength > int64(maxBytes) { + http.Error(w, "Request Entity Too Large", http.StatusRequestEntityTooLarge) + return + } + + r.Body = http.MaxBytesReader(w, r.Body, maxBytes) + + h.ServeHTTP(w, r) + } + return http.HandlerFunc(fn) + } + return f +} diff --git a/covenant-signer/signerservice/middlewares/logging.go b/covenant-signer/signerservice/middlewares/logging.go new file mode 100644 index 0000000..226e241 --- /dev/null +++ b/covenant-signer/signerservice/middlewares/logging.go @@ -0,0 +1,38 @@ +package middlewares + +import ( + "net/http" + "time" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/tracing" + + "github.com/rs/zerolog/log" +) + +func LoggingMiddleware(next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + startTime := time.Now() + logger := log.With().Str("path", r.URL.Path).Logger() + + // Attach traceId into each log within the request chain + traceId := r.Context().Value(tracing.TraceIdKey) + if traceId != nil { + logger = logger.With().Interface("traceId", traceId).Logger() + } + + logger.Debug().Msg("request received") + r = r.WithContext(logger.WithContext(r.Context())) + + next.ServeHTTP(w, r) + + requestDuration := time.Since(startTime).Milliseconds() + logEvent := logger.Info() + + tracingInfo := r.Context().Value(tracing.TraceInfoKey) + if tracingInfo != nil { + logEvent = logEvent.Interface("tracingInfo", tracingInfo) + } + + logEvent.Interface("requestDuration", requestDuration).Msg("Request completed") + }) +} diff --git a/covenant-signer/signerservice/middlewares/tracing.go b/covenant-signer/signerservice/middlewares/tracing.go new file mode 100644 index 0000000..f39561c --- /dev/null +++ b/covenant-signer/signerservice/middlewares/tracing.go @@ -0,0 +1,14 @@ +package middlewares + +import ( + "net/http" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/tracing" +) + +func TracingMiddleware(next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + ctx := tracing.AttachTracingIntoContext(r.Context()) + next.ServeHTTP(w, r.WithContext(ctx)) + }) +} diff --git a/covenant-signer/signerservice/server.go b/covenant-signer/signerservice/server.go new file mode 100644 index 0000000..4027e83 --- /dev/null +++ b/covenant-signer/signerservice/server.go @@ -0,0 +1,73 @@ +package signerservice + +import ( + "context" + "fmt" + "net/http" + + m "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/metrics" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/handlers" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/middlewares" + "github.com/rs/zerolog/log" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" + s "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" + "github.com/go-chi/chi/v5" +) + +type SigningServer struct { + httpServer *http.Server + handler *handlers.Handler +} + +func (a *SigningServer) SetupRoutes(r *chi.Mux) { + handler := a.handler + r.Post("/v1/sign-unbonding-tx", registerHandler(handler.SignUnbonding)) +} + +func New( + ctx context.Context, + cfg *config.ParsedConfig, + signer *s.SignerApp, + metrics *m.CovenantSignerMetrics, +) (*SigningServer, error) { + r := chi.NewRouter() + + // TODO: Add middlewares + // r.Use(middlewares.CorsMiddleware(cfg)) + r.Use(middlewares.TracingMiddleware) + r.Use(middlewares.LoggingMiddleware) + r.Use(middlewares.ContentLengthMiddleware(int64(cfg.ServerConfig.MaxContentLength))) + // TODO: TLS configuration if server is to be exposed over the internet, if it supposed to + // be behind some reverse proxy like nginx or cloudflare, then it's not needed. + // Probably it needs to be configurable + + srv := &http.Server{ + Addr: fmt.Sprintf("%s:%d", cfg.ServerConfig.Host, cfg.ServerConfig.Port), + WriteTimeout: cfg.ServerConfig.WriteTimeout, + ReadTimeout: cfg.ServerConfig.ReadTimeout, + IdleTimeout: cfg.ServerConfig.IdleTimeout, + Handler: r, + } + + h, err := handlers.NewHandler(ctx, signer, metrics) + if err != nil { + log.Fatal().Err(err).Msg("error while setting up handlers") + } + + server := &SigningServer{ + httpServer: srv, + handler: h, + } + server.SetupRoutes(r) + return server, nil +} + +func (s *SigningServer) Start() error { + log.Info().Msgf("Starting server on %s", s.httpServer.Addr) + return s.httpServer.ListenAndServe() +} + +func (s *SigningServer) Stop(ctx context.Context) error { + return s.httpServer.Shutdown(ctx) +} diff --git a/covenant-signer/signerservice/types/error.go b/covenant-signer/signerservice/types/error.go new file mode 100644 index 0000000..cede610 --- /dev/null +++ b/covenant-signer/signerservice/types/error.go @@ -0,0 +1,63 @@ +package types + +import ( + "errors" + "net/http" +) + +type ErrorCode string + +func (e ErrorCode) String() string { + return string(e) +} + +const ( + // 5XX + InternalServiceError ErrorCode = "INTERNAL_SERVICE_ERROR" + ValidationError ErrorCode = "VALIDATION_ERROR" + NotFound ErrorCode = "NOT_FOUND" + BadRequest ErrorCode = "BAD_REQUEST" + Forbidden ErrorCode = "FORBIDDEN" +) + +// Error represents an error with an HTTP status code and an application-specific error code. +type Error struct { + Err error + StatusCode int + ErrorCode ErrorCode +} + +const UninitializedStatusCode = 0 + +func (e *Error) Error() string { + return e.Err.Error() +} + +// NewError creates a new Error with the provided status code, error code, and underlying error. +// If the status code is not provided (0), it defaults to http.StatusInternalServerError(500). +// If the error code is empty, it defaults to INTERNAL_SERVICE_ERROR. +func NewError(statusCode int, errorCode ErrorCode, err error) *Error { + if statusCode == UninitializedStatusCode { + statusCode = http.StatusInternalServerError + } + if errorCode == "" { + errorCode = InternalServiceError + } + return &Error{ + StatusCode: statusCode, + ErrorCode: errorCode, + Err: err, + } +} + +func NewErrorWithMsg(statusCode int, errorCode ErrorCode, msg string) *Error { + return NewError(statusCode, errorCode, errors.New(msg)) +} + +func NewInternalServiceError(err error) *Error { + return &Error{ + StatusCode: http.StatusInternalServerError, + ErrorCode: InternalServiceError, + Err: err, + } +} diff --git a/covenant-signer/signerservice/types/sign_unbonding.go b/covenant-signer/signerservice/types/sign_unbonding.go new file mode 100644 index 0000000..23a8387 --- /dev/null +++ b/covenant-signer/signerservice/types/sign_unbonding.go @@ -0,0 +1,15 @@ +package types + +// SignUnbondingTxPayload carries all data necessary to sign unbonding transaction +type SignUnbondingTxRequest struct { + StakingOutputPkScriptHex string `json:"staking_output_pk_script_hex"` + UnbondingTxHex string `json:"unbonding_tx_hex"` + StakerUnbondingSigHex string `json:"staker_unbonding_sig_hex"` + // 33 bytes compressed public key + CovenantPublicKey string `json:"covenant_public_key"` +} + +// SignUnbondingTxResponse covenant member schnorr signature +type SignUnbondingTxResponse struct { + SignatureHex string `json:"signature_hex"` +} diff --git a/covenant-signer/utils/btc.go b/covenant-signer/utils/btc.go new file mode 100644 index 0000000..514b76c --- /dev/null +++ b/covenant-signer/utils/btc.go @@ -0,0 +1,84 @@ +package utils + +import ( + "bytes" + "encoding/hex" + + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/btcec/v2/schnorr" + "github.com/btcsuite/btcd/wire" +) + +func NewBTCTxFromBytes(txBytes []byte) (*wire.MsgTx, error) { + var msgTx wire.MsgTx + rbuf := bytes.NewReader(txBytes) + if err := msgTx.Deserialize(rbuf); err != nil { + return nil, err + } + + return &msgTx, nil +} + +func NewBTCTxFromHex(txHex string) (*wire.MsgTx, []byte, error) { + txBytes, err := hex.DecodeString(txHex) + if err != nil { + return nil, nil, err + } + + parsed, err := NewBTCTxFromBytes(txBytes) + + if err != nil { + return nil, nil, err + } + + return parsed, txBytes, nil +} + +func SerializeBTCTx(tx *wire.MsgTx) ([]byte, error) { + var txBuf bytes.Buffer + if err := tx.Serialize(&txBuf); err != nil { + return nil, err + } + return txBuf.Bytes(), nil +} + +func SerializeBTCTxToHex(tx *wire.MsgTx) (string, error) { + bytes, err := SerializeBTCTx(tx) + + if err != nil { + return "", err + } + + return hex.EncodeToString(bytes), nil + +} + +func PubKeyFromHex(hexString string) (*btcec.PublicKey, error) { + bytes, err := hex.DecodeString(hexString) + if err != nil { + return nil, err + } + + key, err := schnorr.ParsePubKey(bytes) + + if err != nil { + return nil, err + } + + return key, nil +} + +func SchnorSignatureFromHex(hexString string) (*schnorr.Signature, error) { + bytes, err := hex.DecodeString(hexString) + if err != nil { + return nil, err + } + + sig, err := schnorr.ParseSignature(bytes) + + if err != nil { + return nil, err + } + + return sig, nil +} From 5ceac161c25447d20f939bbad8c95693d079a503 Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Tue, 19 Nov 2024 12:48:00 +0100 Subject: [PATCH 2/8] run tests through root make file --- Makefile | 4 +++- covenant-signer/CONTRIBUTING.md | 5 ----- 2 files changed, 3 insertions(+), 6 deletions(-) delete mode 100644 covenant-signer/CONTRIBUTING.md diff --git a/Makefile b/Makefile index 5839d3f..13a2569 100644 --- a/Makefile +++ b/Makefile @@ -55,10 +55,12 @@ build-docker: test: go test ./... + cd covenant-signer; go test ./... test-e2e: cd $(TOOLS_DIR); go install -trimpath $(BABYLON_PKG) go test -mod=readonly -timeout=25m -v $(PACKAGES_E2E) -count=1 --tags=e2e + cd covenant-signer; make test-e2e mock-gen: mkdir -p $(MOCKS_DIR) @@ -125,4 +127,4 @@ release: else release: @echo "Error: GITHUB_TOKEN is not defined. Please define it before running 'make release'." -endif \ No newline at end of file +endif diff --git a/covenant-signer/CONTRIBUTING.md b/covenant-signer/CONTRIBUTING.md deleted file mode 100644 index 1b98edb..0000000 --- a/covenant-signer/CONTRIBUTING.md +++ /dev/null @@ -1,5 +0,0 @@ -# Contributing - -Covenant-signer repository follows the same contributing rules as -[Babylon node](https://github.com/babylonlabs-io/babylon/blob/main/CONTRIBUTING.md) -repository. From ed6bb0ba893204b746e8ee633e00e050c8560ad5 Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Wed, 20 Nov 2024 08:56:19 +0100 Subject: [PATCH 3/8] Adapt signer to phase-2 --- covenant-signer/cmd/signerCmd.go | 33 +- covenant-signer/config/config.go | 64 +-- covenant-signer/go.mod | 3 +- covenant-signer/go.sum | 2 - covenant-signer/itest/e2e_test.go | 430 +++++++----------- covenant-signer/mocks/signer_mocks.go | 130 +----- .../signerapp/babylon_params_retriever.go | 43 -- covenant-signer/signerapp/btc_chain_info.go | 40 -- .../signerapp/btc_priv_key_signer.go | 54 --- covenant-signer/signerapp/btc_psbt_signer.go | 95 ---- .../signerapp/expected_interfaces.go | 59 +-- .../signerapp/hardcoded_priv_key_retriever.go | 29 ++ covenant-signer/signerapp/signer.go | 304 ++++--------- covenant-signer/signerapp/signer_test.go | 287 ------------ covenant-signer/signerservice/client.go | 36 +- .../handlers/sign_transactions.go | 42 ++ .../signerservice/handlers/sign_unbonding.go | 91 ---- covenant-signer/signerservice/server.go | 2 +- .../signerservice/types/sign_transactions.go | 233 ++++++++++ .../signerservice/types/sign_unbonding.go | 15 - 20 files changed, 584 insertions(+), 1408 deletions(-) delete mode 100644 covenant-signer/signerapp/babylon_params_retriever.go delete mode 100644 covenant-signer/signerapp/btc_chain_info.go delete mode 100644 covenant-signer/signerapp/btc_priv_key_signer.go delete mode 100644 covenant-signer/signerapp/btc_psbt_signer.go create mode 100644 covenant-signer/signerapp/hardcoded_priv_key_retriever.go delete mode 100644 covenant-signer/signerapp/signer_test.go create mode 100644 covenant-signer/signerservice/handlers/sign_transactions.go delete mode 100644 covenant-signer/signerservice/handlers/sign_unbonding.go create mode 100644 covenant-signer/signerservice/types/sign_transactions.go delete mode 100644 covenant-signer/signerservice/types/sign_unbonding.go diff --git a/covenant-signer/cmd/signerCmd.go b/covenant-signer/cmd/signerCmd.go index 82c7d53..81483a6 100644 --- a/covenant-signer/cmd/signerCmd.go +++ b/covenant-signer/cmd/signerCmd.go @@ -3,9 +3,9 @@ package cmd import ( "fmt" + "github.com/btcsuite/btcd/btcec/v2" "github.com/spf13/cobra" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/btcclient" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" m "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/metrics" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" @@ -35,40 +35,17 @@ var runSignerCmd = &cobra.Command{ return err } - parsedGlobalParams, err := signerapp.NewVersionedParamsRetriever(globalParamPath) + privKey, err := btcec.NewPrivateKey() if err != nil { return err } - fullNodeClient, err := btcclient.NewBtcClient(parsedConfig.BtcNodeConfig) - - if err != nil { - return err - } - - chainInfo := signerapp.NewBitcoindChainInfo(fullNodeClient) - - signerClient, err := btcclient.NewBtcClient(parsedConfig.BtcSignerConfig.ToBtcConfig()) - - if err != nil { - return err - } - - var signer signerapp.ExternalBtcSigner - if parsedConfig.BtcSignerConfig.SignerType == config.PsbtSigner { - fmt.Println("using psbt signer") - signer = signerapp.NewPsbtSigner(signerClient) - } else if parsedConfig.BtcSignerConfig.SignerType == config.PrivKeySigner { - fmt.Println("using privkey signer") - signer = signerapp.NewPrivKeySigner(signerClient) - } + // TODO: Implement other approach to store keys + prk := signerapp.NewHardcodedPrivKeyRetriever(privKey) app := signerapp.NewSignerApp( - signer, - chainInfo, - parsedGlobalParams, - parsedConfig.BtcNodeConfig.Network, + prk, ) metrics := m.NewCovenantSignerMetrics() diff --git a/covenant-signer/config/config.go b/covenant-signer/config/config.go index 0f34811..7d38821 100644 --- a/covenant-signer/config/config.go +++ b/covenant-signer/config/config.go @@ -16,40 +16,23 @@ const ( ) type Config struct { - BtcNodeConfig BtcConfig `mapstructure:"btc-config"` - BtcSignerConfig BtcSignerConfig `mapstructure:"btc-signer-config"` - Server ServerConfig `mapstructure:"server-config"` - Metrics MetricsConfig `mapstructure:"metrics"` + Server ServerConfig `mapstructure:"server-config"` + Metrics MetricsConfig `mapstructure:"metrics"` } func DefaultConfig() *Config { return &Config{ - BtcNodeConfig: *DefaultBtcConfig(), - BtcSignerConfig: *DefaultBtcSignerConfig(), - Server: *DefaultServerConfig(), - Metrics: *DefaultMetricsConfig(), + Server: *DefaultServerConfig(), + Metrics: *DefaultMetricsConfig(), } } type ParsedConfig struct { - BtcNodeConfig *ParsedBtcConfig - BtcSignerConfig *ParsedBtcSignerConfig - ServerConfig *ParsedServerConfig - MetricsConfig *ParsedMetricsConfig + ServerConfig *ParsedServerConfig + MetricsConfig *ParsedMetricsConfig } func (cfg *Config) Parse() (*ParsedConfig, error) { - btcConfig, err := cfg.BtcNodeConfig.Parse() - if err != nil { - return nil, err - } - - btcSignerConfig, err := cfg.BtcSignerConfig.Parse() - - if err != nil { - return nil, err - } - serverConfig, err := cfg.Server.Parse() if err != nil { @@ -63,45 +46,14 @@ func (cfg *Config) Parse() (*ParsedConfig, error) { } return &ParsedConfig{ - BtcNodeConfig: btcConfig, - BtcSignerConfig: btcSignerConfig, - ServerConfig: serverConfig, - MetricsConfig: metricsConfig, + ServerConfig: serverConfig, + MetricsConfig: metricsConfig, }, nil } const defaultConfigTemplate = `# This is a TOML config file. # For more information, see https://github.com/toml-lang/toml -# There are two btc related configs -# 1. [btc-config] is config for btc full node which should have transaction indexing -# enabled. This node should be synced and can be open to the public. -# 2. [btc-signer-config] is config for bitcoind daemon which should have only -# wallet functionality, it should run in separate network. This bitcoind instance -# will be used to sign psbt's -[btc-config] -# Btc node host -host = "{{ .BtcNodeConfig.Host }}" -# Btc node user -user = "{{ .BtcNodeConfig.User }}" -# Btc node password -pass = "{{ .BtcNodeConfig.Pass }}" -# Btc network (testnet3|mainnet|regtest|simnet|signet) -network = "{{ .BtcNodeConfig.Network }}" - -[btc-signer-config] -# Btc node host -host = "{{ .BtcSignerConfig.Host }}" -# TODO: consider reading user/pass from command line -# Btc node user -user = "{{ .BtcSignerConfig.User }}" -# Btc node password -pass = "{{ .BtcSignerConfig.Pass }}" -# Btc network (testnet3|mainnet|regtest|simnet|signet) -network = "{{ .BtcSignerConfig.Network }}" -# Signer type (psbt|privkey) -signer-type = "{{ .BtcSignerConfig.SignerType }}" - [server-config] # The address to listen on host = "{{ .Server.Host }}" diff --git a/covenant-signer/go.mod b/covenant-signer/go.mod index ab42528..c576f70 100644 --- a/covenant-signer/go.mod +++ b/covenant-signer/go.mod @@ -42,8 +42,8 @@ require ( ) require ( + cosmossdk.io/math v1.3.0 github.com/babylonlabs-io/babylon v0.12.1 - github.com/babylonlabs-io/networks/parameters v0.2.2 github.com/btcsuite/btcd/btcutil/psbt v1.1.8 github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 @@ -67,7 +67,6 @@ require ( cosmossdk.io/depinject v1.0.0-alpha.4 // indirect cosmossdk.io/errors v1.0.1 // indirect cosmossdk.io/log v1.3.1 // indirect - cosmossdk.io/math v1.3.0 // indirect cosmossdk.io/store v1.1.0 // indirect cosmossdk.io/x/circuit v0.1.0 // indirect cosmossdk.io/x/evidence v0.1.0 // indirect diff --git a/covenant-signer/go.sum b/covenant-signer/go.sum index 513c2c9..3d8a050 100644 --- a/covenant-signer/go.sum +++ b/covenant-signer/go.sum @@ -281,8 +281,6 @@ github.com/aws/aws-sdk-go v1.44.312/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8 github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/babylonlabs-io/babylon v0.12.1 h1:Qfmrq3pdDEZGq6DtMXxwiQjx0HD+t+U0cXQzsJfX15U= github.com/babylonlabs-io/babylon v0.12.1/go.mod h1:ZOrTde9vs2xoqGTFw4xhupu2CMulnpywiuk0eh4kPOw= -github.com/babylonlabs-io/networks/parameters v0.2.2 h1:TCu39fZvjX5f6ZZrjhYe54M6wWxglNewuKu56yE+zrc= -github.com/babylonlabs-io/networks/parameters v0.2.2/go.mod h1:iEJVOzaLsE33vpP7J4u+CRGfkSIfErUAwRmgCFCBpyI= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q= github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8= diff --git a/covenant-signer/itest/e2e_test.go b/covenant-signer/itest/e2e_test.go index 3b7944f..6cef2ee 100644 --- a/covenant-signer/itest/e2e_test.go +++ b/covenant-signer/itest/e2e_test.go @@ -14,10 +14,12 @@ import ( "testing" "time" + asig "github.com/babylonlabs-io/babylon/crypto/schnorr-adaptor-signature" + + sdkmath "cosmossdk.io/math" "github.com/babylonlabs-io/babylon/btcstaking" staking "github.com/babylonlabs-io/babylon/btcstaking" "github.com/babylonlabs-io/babylon/testutil/datagen" - "github.com/babylonlabs-io/networks/parameters/parser" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcutil" "github.com/btcsuite/btcd/chaincfg" @@ -25,7 +27,6 @@ import ( "github.com/btcsuite/btcd/wire" "github.com/stretchr/testify/require" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/btcclient" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/itest/containers" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/metrics" @@ -41,24 +42,13 @@ var ( ) type TestManager struct { - t *testing.T - bitcoindHandler *BitcoindTestHandler - walletPass string - btcClient *btcclient.BtcClient - localCovenantPubKey *btcec.PublicKey - allCovenantKeys []*btcec.PublicKey - covenantQuorum uint32 - finalityProviderKey *btcec.PrivateKey - walletAddress btcutil.Address - stakerPrivKey *btcec.PrivateKey - stakerPubKey *btcec.PublicKey - magicBytes []byte - requiredUnbondingTime uint16 - confirmationDepth uint16 - requiredUnbondingFee btcutil.Amount - signerConfig *config.Config - app *signerapp.SignerApp - server *signerservice.SigningServer + t *testing.T + bitcoindHandler *BitcoindTestHandler + walletPass string + covenantPrivKey *btcec.PrivateKey + signerConfig *config.Config + app *signerapp.SignerApp + server *signerservice.SigningServer } type stakingData struct { @@ -96,105 +86,23 @@ func StartManager( _ = h.GenerateBlocks(int(numMatureOutputsInWallet) + 100) appConfig := config.DefaultConfig() - appConfig.BtcNodeConfig.Host = "127.0.0.1:18443" - appConfig.BtcNodeConfig.User = "user" - appConfig.BtcNodeConfig.Pass = "pass" - appConfig.BtcNodeConfig.Network = netParams.Name - - fakeParsedConfig, err := appConfig.Parse() - require.NoError(t, err) - // Client for testing purposes - client, err := btcclient.NewBtcClient(fakeParsedConfig.BtcNodeConfig) - require.NoError(t, err) - - outputs, err := client.ListOutputs(true) - require.NoError(t, err) - require.Len(t, outputs, int(numMatureOutputsInWallet)) - - // easiest way to get address controlled by wallet is to retrive address from one - // of the outputs - output := outputs[0] - walletAddress, err := btcutil.DecodeAddress(output.Address, netParams) - require.NoError(t, err) - - // Unlock wallet for all tests 60min - err = client.UnlockWallet(60*60*60, passphrase) - require.NoError(t, err) - - stakerPrivKey, err := btcec.NewPrivateKey() - require.NoError(t, err) - stakerPubKey := stakerPrivKey.PubKey() - fpKey, err := btcec.NewPrivateKey() + covenantPrivateKey, err := btcec.NewPrivateKey() require.NoError(t, err) - covAddress, err := client.RpcClient.GetNewAddress("covenant") - require.NoError(t, err) - info, err := client.RpcClient.GetAddressInfo(covAddress.EncodeAddress()) - require.NoError(t, err) - covenantPubKeyBytes, err := hex.DecodeString(*info.PubKey) - require.NoError(t, err) - localCovenantKey, err := btcec.ParsePubKey(covenantPubKeyBytes) - require.NoError(t, err) - - remoteCovenantKey1, err := btcec.NewPrivateKey() - require.NoError(t, err) - require.NotNil(t, remoteCovenantKey1) - remoteCovenantKey2, err := btcec.NewPrivateKey() - require.NoError(t, err) - require.NotNil(t, remoteCovenantKey2) - - mb := []byte{0x0, 0x1, 0x2, 0x3} - appConfig.Server.Host = "127.0.0.1" - appConfig.Server.Port = 10090 - - testParams := parser.VersionedGlobalParams{} - testParams.ActivationHeight = 1 - testParams.StakingCap = 10000000000 - testParams.Tag = hex.EncodeToString(mb) - testParams.CovenantPks = []string{ - hex.EncodeToString(localCovenantKey.SerializeCompressed()), - hex.EncodeToString(remoteCovenantKey1.PubKey().SerializeCompressed()), - hex.EncodeToString(remoteCovenantKey2.PubKey().SerializeCompressed()), - } - testParams.CovenantQuorum = 2 - testParams.UnbondingTime = 100 - testParams.UnbondingFee = 1000 - testParams.MinStakingTime = 10000 - testParams.MaxStakingTime = 10000 - testParams.MinStakingAmount = 10000 - testParams.MaxStakingAmount = 10000000 - testParams.ConfirmationDepth = 10 - - // TODO: Update tests to create json file and read from it. - globalParams := parser.GlobalParams{ - Versions: []*parser.VersionedGlobalParams{ - &testParams, - }, - } - - parsedGlobalParams, err := parser.ParseGlobalParams(&globalParams) - require.NoError(t, err) - - parsedconfig, err := appConfig.Parse() - require.NoError(t, err) - - // In e2e test we are using the same node for signing as for indexing functionalities - chainInfo := signerapp.NewBitcoindChainInfo(client) - signer := signerapp.NewPsbtSigner(client) + privKeyRetriever := signerapp.NewHardcodedPrivKeyRetriever(covenantPrivateKey) app := signerapp.NewSignerApp( - signer, - chainInfo, - &signerapp.VersionedParamsRetriever{parsedGlobalParams}, - netParams, + privKeyRetriever, ) met := metrics.NewCovenantSignerMetrics() + parsedConfig, err := appConfig.Parse() + require.NoError(t, err) server, err := signerservice.New( context.Background(), - parsedconfig, + parsedConfig, app, met, ) @@ -213,212 +121,190 @@ func StartManager( }) return &TestManager{ - t: t, - bitcoindHandler: h, - walletPass: passphrase, - btcClient: client, - localCovenantPubKey: localCovenantKey, - allCovenantKeys: parsedGlobalParams.Versions[0].CovenantPks, - covenantQuorum: parsedGlobalParams.Versions[0].CovenantQuorum, - requiredUnbondingTime: parsedGlobalParams.Versions[0].UnbondingTime, - requiredUnbondingFee: parsedGlobalParams.Versions[0].UnbondingFee, - confirmationDepth: parsedGlobalParams.Versions[0].ConfirmationDepth, - finalityProviderKey: fpKey, - walletAddress: walletAddress, - stakerPrivKey: stakerPrivKey, - stakerPubKey: stakerPubKey, - magicBytes: mb, - signerConfig: appConfig, - app: app, - server: server, + t: t, + bitcoindHandler: h, + walletPass: passphrase, + covenantPrivKey: covenantPrivateKey, + signerConfig: appConfig, + app: app, + server: server, } } -func (tm *TestManager) covenantPubKeys() []*btcec.PublicKey { - return tm.allCovenantKeys -} - func (tm *TestManager) SigningServerUrl() string { return fmt.Sprintf("http://%s:%d", tm.signerConfig.Server.Host, tm.signerConfig.Server.Port) } -type stakingTxSigInfo struct { - stakingTxHash *chainhash.Hash - stakingOutput *wire.TxOut - stakingInfo *btcstaking.IdentifiableStakingInfo -} - -func (tm *TestManager) sendStakingTxToBtc(d *stakingData) *stakingTxSigInfo { - info, err := staking.BuildV0IdentifiableStakingOutputs( - tm.magicBytes, - tm.stakerPubKey, - tm.finalityProviderKey.PubKey(), - tm.covenantPubKeys(), - tm.covenantQuorum, - d.stakingTime, - d.stakingAmount, +func buildDataToSign(t *testing.T, covnenantPublicKey *btcec.PublicKey) signerapp.ParsedSigningRequest { + stakerPrivKey, err := btcec.NewPrivateKey() + require.NoError(t, err) + finalityProviderKey, err := btcec.NewPrivateKey() + require.NoError(t, err) + stakingTime := uint16(10000) + unbondingTime := uint16(1000) + stakingAmount := btcutil.Amount(100000) + unbondingFee := btcutil.Amount(1000) + slashingFee := btcutil.Amount(1000) + slashingRate := sdkmath.LegacyMustNewDecFromStr("0.1") + + fakeInput := wire.NewTxIn(wire.NewOutPoint(&chainhash.Hash{}, 0), nil, nil) + stakingInfo, err := btcstaking.BuildStakingInfo( + stakerPrivKey.PubKey(), + []*btcec.PublicKey{finalityProviderKey.PubKey()}, + []*btcec.PublicKey{covnenantPublicKey}, + 1, + stakingTime, + stakingAmount, netParams, ) - require.NoError(tm.t, err) + require.NoError(t, err) - // staking output will always have index 0 - tx, err := tm.btcClient.CreateAndSignTx( - []*wire.TxOut{info.StakingOutput, info.OpReturnOutput}, - d.stakingFeeRate, - tm.walletAddress, - ) - require.NoError(tm.t, err) - - hash, err := tm.btcClient.SendTx(tx) - require.NoError(tm.t, err) - // generate exact amount of block to confirm staking tx - _ = tm.bitcoindHandler.GenerateBlocks(int(tm.confirmationDepth)) - return &stakingTxSigInfo{ - stakingTxHash: hash, - stakingOutput: info.StakingOutput, - stakingInfo: info, - } -} + stakingTx := wire.NewMsgTx(2) + stakingTx.AddTxIn(fakeInput) + stakingTx.AddTxOut(stakingInfo.StakingOutput) -type unbondingTxWithMetadata struct { - unbondingTx *wire.MsgTx -} + stakingSlashingSpendInfo, err := stakingInfo.SlashingPathSpendInfo() + require.NoError(t, err) + stakingUnbondingSpendInfo, err := stakingInfo.UnbondingPathSpendInfo() + require.NoError(t, err) -func (tm *TestManager) createUnbondingTx( - si *stakingTxSigInfo, - d *stakingData, -) *unbondingTxWithMetadata { + stakingSlashingScript := stakingSlashingSpendInfo.RevealedLeaf.Script + stakingUnbondingScript := stakingUnbondingSpendInfo.RevealedLeaf.Script unbondingInfo, err := staking.BuildUnbondingInfo( - tm.stakerPubKey, - []*btcec.PublicKey{tm.finalityProviderKey.PubKey()}, - tm.covenantPubKeys(), - tm.covenantQuorum, - tm.requiredUnbondingTime, - d.stakingAmount-tm.requiredUnbondingFee, + stakerPrivKey.PubKey(), + []*btcec.PublicKey{finalityProviderKey.PubKey()}, + []*btcec.PublicKey{covnenantPublicKey}, + 1, + unbondingTime, + stakingAmount-unbondingFee, netParams, ) - require.NoError(tm.t, err) + require.NoError(t, err) + + unbondingSlashingSpendInfo, err := unbondingInfo.SlashingPathSpendInfo() + require.NoError(t, err) + unbondingSlashingScript := unbondingSlashingSpendInfo.RevealedLeaf.Script + + stakingTxHash := stakingTx.TxHash() + stakingOutputIndex := uint32(0) + unbondingTx := wire.NewMsgTx(2) - unbondingTx.AddTxIn(wire.NewTxIn(wire.NewOutPoint(si.stakingTxHash, 0), nil, nil)) + unbondingTx.AddTxIn(wire.NewTxIn(wire.NewOutPoint(&stakingTxHash, stakingOutputIndex), nil, nil)) unbondingTx.AddTxOut(unbondingInfo.UnbondingOutput) - return &unbondingTxWithMetadata{ - unbondingTx: unbondingTx, - } -} + stakingSlashingTx, err := btcstaking.BuildSlashingTxFromStakingTxStrict( + stakingTx, + stakingOutputIndex, + stakingSlashingScript, + stakerPrivKey.PubKey(), + unbondingTime, + int64(slashingFee), + slashingRate, + netParams, + ) + require.NoError(t, err) -func (tm *TestManager) createNUnbondingTransactions(n int, d *stakingData) ([]*unbondingTxWithMetadata, []*wire.MsgTx) { - var infos []*stakingTxSigInfo - var sendStakingTransactions []*wire.MsgTx - - for i := 0; i < n; i++ { - sInfo := tm.sendStakingTxToBtc(d) - conf, status, err := tm.btcClient.TxDetails(sInfo.stakingTxHash, sInfo.stakingOutput.PkScript) - require.NoError(tm.t, err) - require.Equal(tm.t, btcclient.TxInChain, status) - infos = append(infos, sInfo) - sendStakingTransactions = append(sendStakingTransactions, conf.Tx) - } + unbondingSlashingTx, err := btcstaking.BuildSlashingTxFromStakingTxStrict( + unbondingTx, + 0, + unbondingSlashingScript, + stakerPrivKey.PubKey(), + unbondingTime, + int64(slashingFee), + slashingRate, + netParams, + ) + require.NoError(t, err) - var unbondingTxs []*unbondingTxWithMetadata - for _, i := range infos { - info := i - ubs := tm.createUnbondingTx( - info, - d, - ) - unbondingTxs = append(unbondingTxs, ubs) - } + fpEncKey, err := asig.NewEncryptionKeyFromBTCPK(finalityProviderKey.PubKey()) + require.NoError(t, err) - return unbondingTxs, sendStakingTransactions + return signerapp.ParsedSigningRequest{ + StakingTx: stakingTx, + SlashingTx: stakingSlashingTx, + UnbondingTx: unbondingTx, + SlashUnbondingTx: unbondingSlashingTx, + StakingOutputIdx: stakingOutputIndex, + SlashingScript: stakingSlashingScript, + UnbondingScript: stakingUnbondingScript, + UnbondingSlashingScript: unbondingSlashingScript, + FpEncKeys: []*asig.EncryptionKey{fpEncKey}, + } } -func TestSigningUnbondingTx(t *testing.T) { +func TestSigningTransactions(t *testing.T) { tm := StartManager(t, 100) - stakingData := defaultStakingData() + dataToSign := buildDataToSign(t, tm.covenantPrivKey.PubKey()) - stakingTxInfo := tm.sendStakingTxToBtc(stakingData) - - unb := tm.createUnbondingTx(stakingTxInfo, stakingData) - - // staker signs unbonding tx - unbondingPathInfo, err := stakingTxInfo.stakingInfo.UnbondingPathSpendInfo() - require.NoError(t, err) - - stakerSig, err := btcstaking.SignTxWithOneScriptSpendInputFromTapLeaf( - unb.unbondingTx, - stakingTxInfo.stakingOutput, - tm.stakerPrivKey, - unbondingPathInfo.RevealedLeaf, - ) - require.NoError(t, err) - - sig, err := signerservice.RequestCovenantSignaure( + sigs, err := signerservice.RequestCovenantSignaure( context.Background(), tm.SigningServerUrl(), 10*time.Second, - unb.unbondingTx, - stakerSig, - tm.localCovenantPubKey, - stakingTxInfo.stakingOutput.PkScript, + &dataToSign, ) require.NoError(t, err) - require.NotNil(t, sig) + require.NotNil(t, sigs) - // check if signature provided by covenant signer is valid signature over unbonding - // path - err = btcstaking.VerifyTransactionSigWithOutput( - unb.unbondingTx, - stakingTxInfo.stakingOutput, - unbondingPathInfo.GetPkScriptPath(), - tm.localCovenantPubKey, - sig.Serialize(), - ) + err = tm.verifyResponse(sigs, &dataToSign) require.NoError(t, err) } -func TestProperResponseForInvalidRequest(t *testing.T) { - tm := StartManager(t, 100) +func (tm *TestManager) verifyResponse(resp *signerapp.ParsedSigningResponse, req *signerapp.ParsedSigningRequest) error { - stakingData := defaultStakingData() + slashAdaptorSig, err := asig.NewAdaptorSignatureFromBytes(resp.SlashAdaptorSigs[0]) - stakingTxInfo := tm.sendStakingTxToBtc(stakingData) + if err != nil { + return err + } - unb := tm.createUnbondingTx(stakingTxInfo, stakingData) + err = btcstaking.EncVerifyTransactionSigWithOutput( + req.SlashingTx, + req.StakingTx.TxOut[req.StakingOutputIdx], + req.SlashingScript, + tm.covenantPrivKey.PubKey(), + req.FpEncKeys[0], + slashAdaptorSig, + ) - // staker signs unbonding tx - unbondingPathInfo, err := stakingTxInfo.stakingInfo.UnbondingPathSpendInfo() - require.NoError(t, err) + if err != nil { + return fmt.Errorf("failed to verify slash adaptor signature for slashing tx: %w", err) + } - randomKey, err := btcec.NewPrivateKey() - require.NoError(t, err) + slashUnbondingAdaptorSig, err := asig.NewAdaptorSignatureFromBytes(resp.SlashUnbondingAdaptorSigs[0]) - // We will send invalid signature in request, server should respond with - // bad request - badSig, err := btcstaking.SignTxWithOneScriptSpendInputFromTapLeaf( - unb.unbondingTx, - stakingTxInfo.stakingOutput, - randomKey, - unbondingPathInfo.RevealedLeaf, + if err != nil { + return err + } + + err = btcstaking.EncVerifyTransactionSigWithOutput( + req.SlashUnbondingTx, + req.UnbondingTx.TxOut[0], + req.UnbondingSlashingScript, + tm.covenantPrivKey.PubKey(), + req.FpEncKeys[0], + slashUnbondingAdaptorSig, ) - require.NoError(t, err) - sig, err := signerservice.RequestCovenantSignaure( - context.Background(), - tm.SigningServerUrl(), - 10*time.Second, - unb.unbondingTx, - badSig, - tm.localCovenantPubKey, - stakingTxInfo.stakingOutput.PkScript, + if err != nil { + return fmt.Errorf("failed to verify slash unbonding adaptor signature for slash unbonding tx: %w", err) + } + + err = btcstaking.VerifyTransactionSigWithOutput( + req.UnbondingTx, + req.StakingTx.TxOut[req.StakingOutputIdx], + req.UnbondingScript, + tm.covenantPrivKey.PubKey(), + resp.UnbondingSig.Serialize(), ) - require.Error(t, err) - require.Nil(t, sig) - require.EqualError(t, err, "signing request failed. status code: 400, message: {\"errorCode\":\"BAD_REQUEST\",\"message\":\"staker unbonding signature verification failed: signature is not valid: invalid signing request\"}") + if err != nil { + return fmt.Errorf("failed to verify unbonding signature for unbonding tx: %w", err) + } + + return nil } func TestRejectToLargeRequest(t *testing.T) { @@ -428,17 +314,15 @@ func TestRejectToLargeRequest(t *testing.T) { size := tmContentLimit + 1 tooLargeTx := datagen.GenRandomByteArray(r, uint64(size)) - req := types.SignUnbondingTxRequest{ - StakingOutputPkScriptHex: "", - UnbondingTxHex: hex.EncodeToString(tooLargeTx), - StakerUnbondingSigHex: "", - CovenantPublicKey: "", + req := types.SignTransactionsRequest{ + StakingTxHex: "", + UnbondingTxHex: hex.EncodeToString(tooLargeTx), } marshalled, err := json.Marshal(req) require.NoError(t, err) - route := fmt.Sprintf("%s/v1/sign-unbonding-tx", tm.SigningServerUrl()) + route := fmt.Sprintf("%s/v1/sign-transactions", tm.SigningServerUrl()) httpRequest, err := http.NewRequestWithContext(context.Background(), "POST", route, bytes.NewReader(marshalled)) require.NoError(t, err) diff --git a/covenant-signer/mocks/signer_mocks.go b/covenant-signer/mocks/signer_mocks.go index 4f52367..815e63f 100644 --- a/covenant-signer/mocks/signer_mocks.go +++ b/covenant-signer/mocks/signer_mocks.go @@ -8,136 +8,44 @@ import ( context "context" reflect "reflect" - signerapp "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" - chainhash "github.com/btcsuite/btcd/chaincfg/chainhash" + btcec "github.com/btcsuite/btcd/btcec/v2" gomock "github.com/golang/mock/gomock" ) -// MockBabylonParamsRetriever is a mock of BabylonParamsRetriever interface. -type MockBabylonParamsRetriever struct { +// MockPrivKeyRetriever is a mock of PrivKeyRetriever interface. +type MockPrivKeyRetriever struct { ctrl *gomock.Controller - recorder *MockBabylonParamsRetrieverMockRecorder + recorder *MockPrivKeyRetrieverMockRecorder } -// MockBabylonParamsRetrieverMockRecorder is the mock recorder for MockBabylonParamsRetriever. -type MockBabylonParamsRetrieverMockRecorder struct { - mock *MockBabylonParamsRetriever +// MockPrivKeyRetrieverMockRecorder is the mock recorder for MockPrivKeyRetriever. +type MockPrivKeyRetrieverMockRecorder struct { + mock *MockPrivKeyRetriever } -// NewMockBabylonParamsRetriever creates a new mock instance. -func NewMockBabylonParamsRetriever(ctrl *gomock.Controller) *MockBabylonParamsRetriever { - mock := &MockBabylonParamsRetriever{ctrl: ctrl} - mock.recorder = &MockBabylonParamsRetrieverMockRecorder{mock} +// NewMockPrivKeyRetriever creates a new mock instance. +func NewMockPrivKeyRetriever(ctrl *gomock.Controller) *MockPrivKeyRetriever { + mock := &MockPrivKeyRetriever{ctrl: ctrl} + mock.recorder = &MockPrivKeyRetrieverMockRecorder{mock} return mock } // EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockBabylonParamsRetriever) EXPECT() *MockBabylonParamsRetrieverMockRecorder { +func (m *MockPrivKeyRetriever) EXPECT() *MockPrivKeyRetrieverMockRecorder { return m.recorder } -// ParamsByHeight mocks base method. -func (m *MockBabylonParamsRetriever) ParamsByHeight(ctx context.Context, height uint64) (*signerapp.BabylonParams, error) { +// PrivKey mocks base method. +func (m *MockPrivKeyRetriever) PrivKey(ctx context.Context) (*btcec.PrivateKey, error) { m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "ParamsByHeight", ctx, height) - ret0, _ := ret[0].(*signerapp.BabylonParams) + ret := m.ctrl.Call(m, "PrivKey", ctx) + ret0, _ := ret[0].(*btcec.PrivateKey) ret1, _ := ret[1].(error) return ret0, ret1 } -// ParamsByHeight indicates an expected call of ParamsByHeight. -func (mr *MockBabylonParamsRetrieverMockRecorder) ParamsByHeight(ctx, height interface{}) *gomock.Call { +// PrivKey indicates an expected call of PrivKey. +func (mr *MockPrivKeyRetrieverMockRecorder) PrivKey(ctx interface{}) *gomock.Call { mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ParamsByHeight", reflect.TypeOf((*MockBabylonParamsRetriever)(nil).ParamsByHeight), ctx, height) -} - -// MockBtcChainInfo is a mock of BtcChainInfo interface. -type MockBtcChainInfo struct { - ctrl *gomock.Controller - recorder *MockBtcChainInfoMockRecorder -} - -// MockBtcChainInfoMockRecorder is the mock recorder for MockBtcChainInfo. -type MockBtcChainInfoMockRecorder struct { - mock *MockBtcChainInfo -} - -// NewMockBtcChainInfo creates a new mock instance. -func NewMockBtcChainInfo(ctrl *gomock.Controller) *MockBtcChainInfo { - mock := &MockBtcChainInfo{ctrl: ctrl} - mock.recorder = &MockBtcChainInfoMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockBtcChainInfo) EXPECT() *MockBtcChainInfoMockRecorder { - return m.recorder -} - -// BestBlockHeight mocks base method. -func (m *MockBtcChainInfo) BestBlockHeight(ctx context.Context) (uint32, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "BestBlockHeight", ctx) - ret0, _ := ret[0].(uint32) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// BestBlockHeight indicates an expected call of BestBlockHeight. -func (mr *MockBtcChainInfoMockRecorder) BestBlockHeight(ctx interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "BestBlockHeight", reflect.TypeOf((*MockBtcChainInfo)(nil).BestBlockHeight), ctx) -} - -// TxByHash mocks base method. -func (m *MockBtcChainInfo) TxByHash(ctx context.Context, txHash *chainhash.Hash, pkScript []byte) (*signerapp.TxInfo, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "TxByHash", ctx, txHash, pkScript) - ret0, _ := ret[0].(*signerapp.TxInfo) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// TxByHash indicates an expected call of TxByHash. -func (mr *MockBtcChainInfoMockRecorder) TxByHash(ctx, txHash, pkScript interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "TxByHash", reflect.TypeOf((*MockBtcChainInfo)(nil).TxByHash), ctx, txHash, pkScript) -} - -// MockExternalBtcSigner is a mock of ExternalBtcSigner interface. -type MockExternalBtcSigner struct { - ctrl *gomock.Controller - recorder *MockExternalBtcSignerMockRecorder -} - -// MockExternalBtcSignerMockRecorder is the mock recorder for MockExternalBtcSigner. -type MockExternalBtcSignerMockRecorder struct { - mock *MockExternalBtcSigner -} - -// NewMockExternalBtcSigner creates a new mock instance. -func NewMockExternalBtcSigner(ctrl *gomock.Controller) *MockExternalBtcSigner { - mock := &MockExternalBtcSigner{ctrl: ctrl} - mock.recorder = &MockExternalBtcSignerMockRecorder{mock} - return mock -} - -// EXPECT returns an object that allows the caller to indicate expected use. -func (m *MockExternalBtcSigner) EXPECT() *MockExternalBtcSignerMockRecorder { - return m.recorder -} - -// RawSignature mocks base method. -func (m *MockExternalBtcSigner) RawSignature(ctx context.Context, request *signerapp.SigningRequest) (*signerapp.SigningResult, error) { - m.ctrl.T.Helper() - ret := m.ctrl.Call(m, "RawSignature", ctx, request) - ret0, _ := ret[0].(*signerapp.SigningResult) - ret1, _ := ret[1].(error) - return ret0, ret1 -} - -// RawSignature indicates an expected call of RawSignature. -func (mr *MockExternalBtcSignerMockRecorder) RawSignature(ctx, request interface{}) *gomock.Call { - mr.mock.ctrl.T.Helper() - return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "RawSignature", reflect.TypeOf((*MockExternalBtcSigner)(nil).RawSignature), ctx, request) + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "PrivKey", reflect.TypeOf((*MockPrivKeyRetriever)(nil).PrivKey), ctx) } diff --git a/covenant-signer/signerapp/babylon_params_retriever.go b/covenant-signer/signerapp/babylon_params_retriever.go deleted file mode 100644 index 9c2ec42..0000000 --- a/covenant-signer/signerapp/babylon_params_retriever.go +++ /dev/null @@ -1,43 +0,0 @@ -package signerapp - -import ( - "context" - "fmt" - - "github.com/babylonlabs-io/networks/parameters/parser" -) - -type VersionedParamsRetriever struct { - *parser.ParsedGlobalParams -} - -var _ BabylonParamsRetriever = &VersionedParamsRetriever{} - -func NewVersionedParamsRetriever(path string) (*VersionedParamsRetriever, error) { - parsedGlobalParams, err := parser.NewParsedGlobalParamsFromFile(path) - if err != nil { - return nil, err - } - return &VersionedParamsRetriever{parsedGlobalParams}, nil -} - -func (v *VersionedParamsRetriever) ParamsByHeight(ctx context.Context, height uint64) (*BabylonParams, error) { - versionedParams := v.ParsedGlobalParams.GetVersionedGlobalParamsByHeight(height) - - if versionedParams == nil { - return nil, fmt.Errorf("no global params for height %d", height) - } - - return &BabylonParams{ - CovenantPublicKeys: versionedParams.CovenantPks, - CovenantQuorum: versionedParams.CovenantQuorum, - MagicBytes: versionedParams.Tag, - UnbondingTime: versionedParams.UnbondingTime, - UnbondingFee: versionedParams.UnbondingFee, - MaxStakingAmount: versionedParams.MaxStakingAmount, - MinStakingAmount: versionedParams.MinStakingAmount, - MaxStakingTime: versionedParams.MaxStakingTime, - MinStakingTime: versionedParams.MinStakingTime, - ConfirmationDepth: versionedParams.ConfirmationDepth, - }, nil -} diff --git a/covenant-signer/signerapp/btc_chain_info.go b/covenant-signer/signerapp/btc_chain_info.go deleted file mode 100644 index c5ec1ad..0000000 --- a/covenant-signer/signerapp/btc_chain_info.go +++ /dev/null @@ -1,40 +0,0 @@ -package signerapp - -import ( - "context" - "fmt" - - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/btcclient" - "github.com/btcsuite/btcd/chaincfg/chainhash" -) - -var _ BtcChainInfo = (*BitcoindChainInfo)(nil) - -type BitcoindChainInfo struct { - c *btcclient.BtcClient -} - -func NewBitcoindChainInfo(c *btcclient.BtcClient) *BitcoindChainInfo { - return &BitcoindChainInfo{c: c} -} - -func (b *BitcoindChainInfo) TxByHash(_ context.Context, txHash *chainhash.Hash, pkScript []byte) (*TxInfo, error) { - conf, status, err := b.c.TxDetails(txHash, pkScript) - - if err != nil { - return nil, fmt.Errorf("failed to get tx by hash: %w", err) - } - - if status != btcclient.TxInChain { - return nil, fmt.Errorf("tx with hash %s is not in chain", txHash.String()) - } - - return &TxInfo{ - Tx: conf.Tx, - TxInclusionHeight: conf.BlockHeight, - }, nil -} - -func (b *BitcoindChainInfo) BestBlockHeight(_ context.Context) (uint32, error) { - return b.c.BestBlockHeight() -} diff --git a/covenant-signer/signerapp/btc_priv_key_signer.go b/covenant-signer/signerapp/btc_priv_key_signer.go deleted file mode 100644 index 69dffad..0000000 --- a/covenant-signer/signerapp/btc_priv_key_signer.go +++ /dev/null @@ -1,54 +0,0 @@ -package signerapp - -import ( - "context" - "fmt" - - "github.com/babylonlabs-io/babylon/btcstaking" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/btcclient" -) - -// PrivKeySigner is a signer that uses a private key from connected bitcoind node -// Due to transfer of key through channer, it require encrypted connection -// to bitcoind node like ssh or tls. -// Key is zeroed after signing, to not sit in memory longer than needed. -type PrivKeySigner struct { - client *btcclient.BtcClient -} - -func NewPrivKeySigner(client *btcclient.BtcClient) *PrivKeySigner { - return &PrivKeySigner{ - client: client, - } -} - -var _ ExternalBtcSigner = (*PrivKeySigner)(nil) - -func (s *PrivKeySigner) RawSignature(ctx context.Context, request *SigningRequest) (*SigningResult, error) { - if err := btcstaking.IsSimpleTransfer(request.UnbondingTransaction); err != nil { - return nil, fmt.Errorf("invalid unbonding transaction received for signing: %w", err) - } - - key, err := s.client.DumpPrivateKey(request.CovenantAddress) - - if err != nil { - return nil, fmt.Errorf("failed to retrieve covenant key for signing: %w", err) - } - // Zero key after signing - defer key.Zero() - - sig, err := btcstaking.SignTxWithOneScriptSpendInputFromTapLeaf( - request.UnbondingTransaction, - request.StakingOutput, - key, - *request.SpendDescription.ScriptLeaf, - ) - - if err != nil { - return nil, fmt.Errorf("failed to sign transaction: %w", err) - } - - return &SigningResult{ - Signature: sig, - }, nil -} diff --git a/covenant-signer/signerapp/btc_psbt_signer.go b/covenant-signer/signerapp/btc_psbt_signer.go deleted file mode 100644 index 869fd66..0000000 --- a/covenant-signer/signerapp/btc_psbt_signer.go +++ /dev/null @@ -1,95 +0,0 @@ -package signerapp - -import ( - "context" - "fmt" - - staking "github.com/babylonlabs-io/babylon/btcstaking" - - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/btcclient" - "github.com/btcsuite/btcd/btcec/v2/schnorr" - "github.com/btcsuite/btcd/btcutil/psbt" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" -) - -var _ ExternalBtcSigner = (*PsbtSigner)(nil) - -type PsbtSigner struct { - client *btcclient.BtcClient -} - -func NewPsbtSigner(client *btcclient.BtcClient) *PsbtSigner { - return &PsbtSigner{ - client: client, - } -} - -// TODO: Figure out how to sign complex taproot scripts using psbt packets sent -// to bitcoind. It may require using descriptors wallets. -func (s *PsbtSigner) RawSignature(ctx context.Context, request *SigningRequest) (*SigningResult, error) { - if err := staking.IsSimpleTransfer(request.UnbondingTransaction); err != nil { - return nil, fmt.Errorf("invalid unbonding transaction: %w", err) - } - - psbtPacket, err := psbt.New( - []*wire.OutPoint{&request.UnbondingTransaction.TxIn[0].PreviousOutPoint}, - request.UnbondingTransaction.TxOut, - request.UnbondingTransaction.Version, - request.UnbondingTransaction.LockTime, - []uint32{wire.MaxTxInSequenceNum}, - ) - - if err != nil { - return nil, fmt.Errorf("failed to create PSBT packet with unbonding transaction: %w", err) - } - - psbtPacket.Inputs[0].SighashType = txscript.SigHashDefault - psbtPacket.Inputs[0].WitnessUtxo = request.StakingOutput - psbtPacket.Inputs[0].Bip32Derivation = []*psbt.Bip32Derivation{ - { - PubKey: request.CovenantPublicKey.SerializeCompressed(), - }, - } - - ctrlBlockBytes, err := request.SpendDescription.ControlBlock.ToBytes() - - if err != nil { - return nil, fmt.Errorf("failed to serialize control block: %w", err) - } - - psbtPacket.Inputs[0].TaprootLeafScript = []*psbt.TaprootTapLeafScript{ - { - ControlBlock: ctrlBlockBytes, - Script: request.SpendDescription.ScriptLeaf.Script, - LeafVersion: request.SpendDescription.ScriptLeaf.LeafVersion, - }, - } - - signedPacket, err := s.client.SignPsbt(psbtPacket) - - if err != nil { - return nil, fmt.Errorf("failed to sign PSBT packet: %w", err) - } - - if len(signedPacket.Inputs[0].TaprootScriptSpendSig) == 0 { - // this can happen if btcwallet does not maintain the private key for the - // for the public in signing request - return nil, fmt.Errorf("no signature found in PSBT packet. Wallet does not maintain covenant public key") - } - - schnorSignature := signedPacket.Inputs[0].TaprootScriptSpendSig[0].Signature - - parsedSignature, err := schnorr.ParseSignature(schnorSignature) - - if err != nil { - return nil, fmt.Errorf("failed to parse schnorr signature in psbt packet: %w", err) - - } - - result := &SigningResult{ - Signature: parsedSignature, - } - - return result, nil -} diff --git a/covenant-signer/signerapp/expected_interfaces.go b/covenant-signer/signerapp/expected_interfaces.go index 16654e7..edee5e1 100644 --- a/covenant-signer/signerapp/expected_interfaces.go +++ b/covenant-signer/signerapp/expected_interfaces.go @@ -4,61 +4,10 @@ import ( "context" "github.com/btcsuite/btcd/btcec/v2" - "github.com/btcsuite/btcd/btcec/v2/schnorr" - "github.com/btcsuite/btcd/btcutil" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" ) -type BabylonParams struct { - CovenantPublicKeys []*btcec.PublicKey - CovenantQuorum uint32 - MagicBytes []byte - UnbondingTime uint16 - UnbondingFee btcutil.Amount - MaxStakingAmount btcutil.Amount - MinStakingAmount btcutil.Amount - MaxStakingTime uint16 - MinStakingTime uint16 - ConfirmationDepth uint16 -} - -type BabylonParamsRetriever interface { - // ParamsByHeight - ParamsByHeight(ctx context.Context, height uint64) (*BabylonParams, error) -} - -type TxInfo struct { - Tx *wire.MsgTx - TxInclusionHeight uint32 -} - -type BtcChainInfo interface { - // Returns only transactions inluded in canonical chain - // passing pkScript as argument make it light client friendly - TxByHash(ctx context.Context, txHash *chainhash.Hash, pkScript []byte) (*TxInfo, error) - - BestBlockHeight(ctx context.Context) (uint32, error) -} - -type SpendPathDescription struct { - ControlBlock *txscript.ControlBlock - ScriptLeaf *txscript.TapLeaf -} - -type SigningRequest struct { - StakingOutput *wire.TxOut - UnbondingTransaction *wire.MsgTx - CovenantPublicKey *btcec.PublicKey - CovenantAddress btcutil.Address - SpendDescription *SpendPathDescription -} - -type SigningResult struct { - Signature *schnorr.Signature -} - -type ExternalBtcSigner interface { - RawSignature(ctx context.Context, request *SigningRequest) (*SigningResult, error) +// PrivKeyRetriever is an interface that retrieves a private key, that must do +// the signing +type PrivKeyRetriever interface { + PrivKey(ctx context.Context) (*btcec.PrivateKey, error) } diff --git a/covenant-signer/signerapp/hardcoded_priv_key_retriever.go b/covenant-signer/signerapp/hardcoded_priv_key_retriever.go new file mode 100644 index 0000000..32f9db4 --- /dev/null +++ b/covenant-signer/signerapp/hardcoded_priv_key_retriever.go @@ -0,0 +1,29 @@ +package signerapp + +import ( + "context" + + "github.com/btcsuite/btcd/btcec/v2" +) + +var _ PrivKeyRetriever = &HardcodedPrivKeyRetriever{} + +// HardcodedPrivKeyRetriever should only be used for test purposes +type HardcodedPrivKeyRetriever struct { + privKey *btcec.PrivateKey +} + +func NewHardcodedPrivKeyRetriever(privKey *btcec.PrivateKey) *HardcodedPrivKeyRetriever { + return &HardcodedPrivKeyRetriever{ + privKey: privKey, + } +} + +func (r *HardcodedPrivKeyRetriever) PrivKey(ctx context.Context) (*btcec.PrivateKey, error) { + // return copy of the private key + bytes := r.privKey.Serialize() + + newPrivKey, _ := btcec.PrivKeyFromBytes(bytes) + + return newPrivKey, nil +} diff --git a/covenant-signer/signerapp/signer.go b/covenant-signer/signerapp/signer.go index 35acc37..bcf3138 100644 --- a/covenant-signer/signerapp/signer.go +++ b/covenant-signer/signerapp/signer.go @@ -1,279 +1,129 @@ package signerapp import ( - "bytes" "context" - "encoding/hex" "fmt" "github.com/babylonlabs-io/babylon/btcstaking" + asig "github.com/babylonlabs-io/babylon/crypto/schnorr-adaptor-signature" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcec/v2/schnorr" - "github.com/btcsuite/btcd/btcutil" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/txscript" "github.com/btcsuite/btcd/wire" ) -var ( - ErrInvalidSigningRequest = fmt.Errorf("invalid signing request") -) +type ParsedSigningRequest struct { + StakingTx *wire.MsgTx + SlashingTx *wire.MsgTx + UnbondingTx *wire.MsgTx + SlashUnbondingTx *wire.MsgTx + StakingOutputIdx uint32 + SlashingScript []byte + UnbondingScript []byte + UnbondingSlashingScript []byte + FpEncKeys []*asig.EncryptionKey +} -func wrapInvalidSigningRequestError(err error) error { - return fmt.Errorf("%s: %w", err, ErrInvalidSigningRequest) +type ParsedSigningResponse struct { + SlashAdaptorSigs [][]byte + UnbondingSig *schnorr.Signature + SlashUnbondingAdaptorSigs [][]byte } type SignerApp struct { - s ExternalBtcSigner - r BtcChainInfo - p BabylonParamsRetriever - net *chaincfg.Params + pkr PrivKeyRetriever } func NewSignerApp( - s ExternalBtcSigner, - r BtcChainInfo, - p BabylonParamsRetriever, - net *chaincfg.Params, + pkr PrivKeyRetriever, ) *SignerApp { return &SignerApp{ - s: s, - r: r, - p: p, - net: net, - } -} - -func (s *SignerApp) pubKeyToAddress(pubKey *btcec.PublicKey) (btcutil.Address, error) { - pubKeyHash := btcutil.Hash160(pubKey.SerializeCompressed()) - witnessAddr, err := btcutil.NewAddressWitnessPubKeyHash( - pubKeyHash, s.net, - ) - - if err != nil { - return nil, err + pkr: pkr, } - return witnessAddr, nil } - -func isCovenantMember(pubKey *btcec.PublicKey, covenantKeys []*btcec.PublicKey) bool { - for _, key := range covenantKeys { - if pubKey.IsEqual(key) { - return true - } - } - - return false -} - -func outputsAreEqual(a *wire.TxOut, b *wire.TxOut) bool { - if a.Value != b.Value { - return false - } - - if !bytes.Equal(a.PkScript, b.PkScript) { - return false - } - - return true -} - -// TODO: add unit tests for validations -func (s *SignerApp) SignUnbondingTransaction( +func (s *SignerApp) SignTransactions( ctx context.Context, - stakingOutputPkScript []byte, - unbondingTx *wire.MsgTx, - stakerUnbondingSig *schnorr.Signature, - covnentSignerPubKey *btcec.PublicKey, -) (*schnorr.Signature, error) { - if err := btcstaking.CheckPreSignedUnbondingTxSanity(unbondingTx); err != nil { - return nil, wrapInvalidSigningRequestError(err) - } - - script, err := txscript.ParsePkScript(stakingOutputPkScript) - - if err != nil { - return nil, wrapInvalidSigningRequestError(err) - } - - if script.Class() != txscript.WitnessV1TaprootTy { - return nil, wrapInvalidSigningRequestError(fmt.Errorf("invalid staking output pk script")) - } + req *ParsedSigningRequest, +) (*ParsedSigningResponse, error) { - stakingTxHash := unbondingTx.TxIn[0].PreviousOutPoint.Hash - - stakingTxInfo, err := s.r.TxByHash(ctx, &stakingTxHash, stakingOutputPkScript) - - if err != nil { - return nil, err - } - bestBlock, err := s.r.BestBlockHeight(ctx) - - if err != nil { - return nil, err - } + privKey, err := s.pkr.PrivKey(ctx) - // TODO: This should probably be done when service is started, otherwise if we implement - // retrieving params from service we will call it for every signing request - params, err := s.p.ParamsByHeight(ctx, uint64(stakingTxInfo.TxInclusionHeight)) + defer func() { + privKey.Zero() + }() if err != nil { return nil, err } - if !isCovenantMember(covnentSignerPubKey, params.CovenantPublicKeys) { - return nil, wrapInvalidSigningRequestError(fmt.Errorf("received covenant public key %s is not committee member at height %d", - hex.EncodeToString(covnentSignerPubKey.SerializeCompressed()), - stakingTxInfo.TxInclusionHeight, - )) - } - - // We are using signed numbers here as calls to: - // - TxByHash - // - BestBlockHeight - // are not atomic. This means if we do them during underlying node re-org - // we may hit the case where stakingTxInfo.TxInclusionHeight is higher than bestBlock. - numberOfStakingTxConfirmations := (int64(bestBlock) - int64(stakingTxInfo.TxInclusionHeight)) + 1 + slashSigs := make([][]byte, 0, len(req.FpEncKeys)) + slashUnbondingSigs := make([][]byte, 0, len(req.FpEncKeys)) + for _, fpEncKey := range req.FpEncKeys { + slashSig, slashUnbondingSig, err := slashUnbondSig(privKey, req, fpEncKey) + if err != nil { + return nil, err + } - if numberOfStakingTxConfirmations < int64(params.ConfirmationDepth) { - return nil, wrapInvalidSigningRequestError(fmt.Errorf( - "staking tx does not have enough confirmations. Current confirmations: %d, required confirmations: %d", - numberOfStakingTxConfirmations, - params.ConfirmationDepth, - )) + slashSigs = append(slashSigs, slashSig.MustMarshal()) + slashUnbondingSigs = append(slashUnbondingSigs, slashUnbondingSig.MustMarshal()) } - parsedStakingTransaction, err := btcstaking.ParseV0StakingTx( - stakingTxInfo.Tx, - params.MagicBytes, - params.CovenantPublicKeys, - params.CovenantQuorum, - s.net) - + unbondingSig, err := unbondSig(privKey, req) if err != nil { - return nil, wrapInvalidSigningRequestError(err) - } - - stakingOutputIndexFromUnbondingTx := unbondingTx.TxIn[0].PreviousOutPoint.Index - - //#nosec G115 -- safe conversion from int to uint32, as this point we know that - // - staking transaction is valid BTC transaction that is part of the BTC ledger - // - BTC transactions won't have more that math.MaxUint32 outputs (in reality the max is closer to ~4k output) - if stakingOutputIndexFromUnbondingTx != uint32(parsedStakingTransaction.StakingOutputIdx) { - return nil, wrapInvalidSigningRequestError(fmt.Errorf("unbonding transaction has invalid input index")) - } - - if parsedStakingTransaction.OpReturnData.StakingTime < params.MinStakingTime || - parsedStakingTransaction.OpReturnData.StakingTime > params.MaxStakingTime { - return nil, wrapInvalidSigningRequestError( - fmt.Errorf( - "staking time of staking tx with hash: %s is out of bounds", - stakingTxHash.String(), - ), - ) - } - - if parsedStakingTransaction.StakingOutput.Value < int64(params.MinStakingAmount) || - parsedStakingTransaction.StakingOutput.Value > int64(params.MaxStakingAmount) { - return nil, wrapInvalidSigningRequestError(fmt.Errorf( - "staking amount of staking tx with hash: %s is out of bounds", - stakingTxHash.String(), - )) + return nil, err } - expectedUnbondingOutputValue := parsedStakingTransaction.StakingOutput.Value - int64(params.UnbondingFee) + return &ParsedSigningResponse{ + SlashAdaptorSigs: slashSigs, + UnbondingSig: unbondingSig, + SlashUnbondingAdaptorSigs: slashUnbondingSigs, + }, nil - if expectedUnbondingOutputValue <= 0 { - // This is actually eror of our parameters configuaration and should not happen - // for honest requests. - return nil, fmt.Errorf("staking output value is too low") - } +} - // build expected output in unbonding transaction - unbondingInfo, err := btcstaking.BuildUnbondingInfo( - parsedStakingTransaction.OpReturnData.StakerPublicKey.PubKey, - []*btcec.PublicKey{parsedStakingTransaction.OpReturnData.FinalityProviderPublicKey.PubKey}, - params.CovenantPublicKeys, - params.CovenantQuorum, - params.UnbondingTime, - btcutil.Amount(expectedUnbondingOutputValue), - s.net, +func slashUnbondSig( + covenantPrivKey *btcec.PrivateKey, + signingTxReq *ParsedSigningRequest, + fpEncKey *asig.EncryptionKey, +) (slashSig, slashUnbondingSig *asig.AdaptorSignature, err error) { + // creates slash sigs + slashSig, err = btcstaking.EncSignTxWithOneScriptSpendInputStrict( + signingTxReq.SlashingTx, + signingTxReq.StakingTx, + signingTxReq.StakingOutputIdx, + signingTxReq.SlashingScript, + covenantPrivKey, + fpEncKey, ) - if err != nil { - return nil, err - } - - if !outputsAreEqual(unbondingInfo.UnbondingOutput, unbondingTx.TxOut[0]) { - return nil, wrapInvalidSigningRequestError( - fmt.Errorf("unbonding output does not match expected output"), - ) + return nil, nil, fmt.Errorf("failed to sign adaptor slash signature with finality provider public key %s: %w", fpEncKey.ToBytes(), err) } - // At this point we know that: - // - unbonding tx has correct shape - 1 input, 1 output, no timelocks, not replaceable - // - staking tx exists on btc chain, is mature and has correct shape according Babylong Params - // - unbonding tx output matches the parameters from the staking transaction and the params - // We can send request to our remote signer - stakingInfo, err := btcstaking.BuildStakingInfo( - parsedStakingTransaction.OpReturnData.StakerPublicKey.PubKey, - []*btcec.PublicKey{parsedStakingTransaction.OpReturnData.FinalityProviderPublicKey.PubKey}, - params.CovenantPublicKeys, - params.CovenantQuorum, - parsedStakingTransaction.OpReturnData.StakingTime, - btcutil.Amount(parsedStakingTransaction.StakingOutput.Value), - s.net, + // creates slash unbonding sig + slashUnbondingSig, err = btcstaking.EncSignTxWithOneScriptSpendInputStrict( + signingTxReq.SlashUnbondingTx, + signingTxReq.UnbondingTx, + 0, // 0th output is always the unbonding script output + signingTxReq.UnbondingSlashingScript, + covenantPrivKey, + fpEncKey, ) - if err != nil { - return nil, err + return nil, nil, fmt.Errorf("failed to sign adaptor slash unbonding signature with finality provider public key %s: %w", fpEncKey.ToBytes(), err) } - unbondingPathInfo, err := stakingInfo.UnbondingPathSpendInfo() - - if err != nil { - return nil, err - } + return slashSig, slashUnbondingSig, nil +} - // Verify that staker signature is correct. This makes sure that this is staker - // who requests unbonding or at least someone who has access to staker's private key - err = btcstaking.VerifyTransactionSigWithOutput( - unbondingTx, - parsedStakingTransaction.StakingOutput, - unbondingPathInfo.RevealedLeaf.Script, - parsedStakingTransaction.OpReturnData.StakerPublicKey.PubKey, - stakerUnbondingSig.Serialize(), +func unbondSig(covenantPrivKey *btcec.PrivateKey, signingTxReq *ParsedSigningRequest) (*schnorr.Signature, error) { + unbondingSig, err := btcstaking.SignTxWithOneScriptSpendInputStrict( + signingTxReq.UnbondingTx, + signingTxReq.StakingTx, + signingTxReq.StakingOutputIdx, + signingTxReq.UnbondingScript, + covenantPrivKey, ) - - if err != nil { - return nil, wrapInvalidSigningRequestError( - fmt.Errorf( - "staker unbonding signature verification failed: %w", - err, - ), - ) - } - - covenantKeyAddress, err := s.pubKeyToAddress(covnentSignerPubKey) - if err != nil { - return nil, err + return nil, fmt.Errorf("failed to sign unbonding tx: %w", err) } - - sig, err := s.s.RawSignature(ctx, &SigningRequest{ - StakingOutput: parsedStakingTransaction.StakingOutput, - UnbondingTransaction: unbondingTx, - CovenantPublicKey: covnentSignerPubKey, - CovenantAddress: covenantKeyAddress, - SpendDescription: &SpendPathDescription{ - ControlBlock: &unbondingPathInfo.ControlBlock, - ScriptLeaf: &unbondingPathInfo.RevealedLeaf, - }, - }) - - if err != nil { - return nil, err - } - - return sig.Signature, nil + return unbondingSig, nil } diff --git a/covenant-signer/signerapp/signer_test.go b/covenant-signer/signerapp/signer_test.go deleted file mode 100644 index 47ed6f5..0000000 --- a/covenant-signer/signerapp/signer_test.go +++ /dev/null @@ -1,287 +0,0 @@ -package signerapp_test - -import ( - "context" - "encoding/hex" - "errors" - "fmt" - "testing" - - "github.com/babylonlabs-io/babylon/btcstaking" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/mocks" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" - "github.com/babylonlabs-io/networks/parameters/parser" - "github.com/btcsuite/btcd/btcec/v2" - "github.com/btcsuite/btcd/btcec/v2/schnorr" - "github.com/btcsuite/btcd/btcutil" - "github.com/btcsuite/btcd/btcutil/hdkeychain" - "github.com/btcsuite/btcd/chaincfg" - "github.com/btcsuite/btcd/chaincfg/chainhash" - "github.com/btcsuite/btcd/wire" - "github.com/golang/mock/gomock" - "github.com/stretchr/testify/require" -) - -var ( - defaultParam = parser.VersionedGlobalParams{ - Version: 0, - ActivationHeight: 100, - StakingCap: 3000000, - CapHeight: 0, - Tag: "01020304", - CovenantPks: []string{ - "03ffeaec52a9b407b355ef6967a7ffc15fd6c3fe07de2844d61550475e7a5233e5", - "03a5c60c2188e833d39d0fa798ab3f69aa12ed3dd2f3bad659effa252782de3c31", - "0359d3532148a597a2d05c0395bf5f7176044b1cd312f37701a9b4d0aad70bc5a4", - "0357349e985e742d5131e1e2b227b5170f6350ac2e2feb72254fcc25b3cee21a18", - "03c8ccb03c379e452f10c81232b41a1ca8b63d0baf8387e57d302c987e5abb8527", - }, - CovenantQuorum: 3, - UnbondingTime: 1000, - UnbondingFee: 1000, - MaxStakingAmount: 300000, - MinStakingAmount: 3000, - MaxStakingTime: 10000, - MinStakingTime: 100, - ConfirmationDepth: 10, - } - - globalParams = parser.GlobalParams{ - Versions: []*parser.VersionedGlobalParams{&defaultParam}, - } - - // always valid - parsed, _ = parser.ParseGlobalParams(&globalParams) - - net = chaincfg.MainNetParams -) - -type MockedDependencies struct { - pr *mocks.MockBabylonParamsRetriever - bi *mocks.MockBtcChainInfo - s *mocks.MockExternalBtcSigner - params *signerapp.BabylonParams -} - -func parserParamsToBabylonParams( - versionedParams *parser.ParsedVersionedGlobalParams) *signerapp.BabylonParams { - return &signerapp.BabylonParams{ - CovenantPublicKeys: versionedParams.CovenantPks, - CovenantQuorum: versionedParams.CovenantQuorum, - MagicBytes: versionedParams.Tag, - UnbondingTime: versionedParams.UnbondingTime, - UnbondingFee: versionedParams.UnbondingFee, - MaxStakingAmount: versionedParams.MaxStakingAmount, - MinStakingAmount: versionedParams.MinStakingAmount, - MaxStakingTime: versionedParams.MaxStakingTime, - MinStakingTime: versionedParams.MinStakingTime, - ConfirmationDepth: versionedParams.ConfirmationDepth, - } -} - -func NewMockedDependencies(t *testing.T) *MockedDependencies { - ctrl := gomock.NewController(t) - return &MockedDependencies{ - pr: mocks.NewMockBabylonParamsRetriever(ctrl), - bi: mocks.NewMockBtcChainInfo(ctrl), - s: mocks.NewMockExternalBtcSigner(ctrl), - params: parserParamsToBabylonParams(parsed.Versions[0]), - } -} - -type TestData struct { - StakerPrivKey *btcec.PrivateKey - StakerPubKey *btcec.PublicKey - FinalityProviderPublicKey *btcec.PublicKey - StakingInfo *btcstaking.IdentifiableStakingInfo - StakingTransaction *wire.MsgTx - UnbondingTx *wire.MsgTx - UnbondingTxStakerSig *schnorr.Signature -} - -func NewValidTestData(t *testing.T, params *signerapp.BabylonParams) *TestData { - stakerKey, err := btcec.NewPrivateKey() - require.NoError(t, err) - stakerPubKey := stakerKey.PubKey() - fpKey, err := btcec.NewPrivateKey() - require.NoError(t, err) - stakingInfo, stakingTx, err := btcstaking.BuildV0IdentifiableStakingOutputsAndTx( - params.MagicBytes, - stakerPubKey, - fpKey.PubKey(), - params.CovenantPublicKeys, - params.CovenantQuorum, - params.MinStakingTime+1, - params.MaxStakingAmount, - &net, - ) - - require.NoError(t, err) - - stakingUnbondingPathInfo, err := stakingInfo.UnbondingPathSpendInfo() - require.NoError(t, err) - - fakeInputHashBytes := [32]byte{} - fakeInputHash, err := chainhash.NewHash(fakeInputHashBytes[:]) - require.NoError(t, err) - fakeInputIndex := uint32(0) - stakingTx.AddTxIn(wire.NewTxIn(wire.NewOutPoint(fakeInputHash, fakeInputIndex), nil, nil)) - - unbondingInfo, err := btcstaking.BuildUnbondingInfo( - stakerPubKey, - []*btcec.PublicKey{fpKey.PubKey()}, - params.CovenantPublicKeys, - params.CovenantQuorum, - params.UnbondingTime, - btcutil.Amount(stakingInfo.StakingOutput.Value-int64(params.UnbondingFee)), - &net, - ) - require.NoError(t, err) - stakingTxHash := stakingTx.TxHash() - unbondingTx := wire.NewMsgTx(wire.TxVersion) - unbondingTx.AddTxIn(wire.NewTxIn(wire.NewOutPoint(&stakingTxHash, 0), nil, nil)) - unbondingTx.AddTxOut(unbondingInfo.UnbondingOutput) - - validSig, err := btcstaking.SignTxWithOneScriptSpendInputFromTapLeaf( - unbondingTx, - stakingInfo.StakingOutput, - stakerKey, - stakingUnbondingPathInfo.RevealedLeaf, - ) - - require.NoError(t, err) - - return &TestData{ - StakerPrivKey: stakerKey, - StakerPubKey: stakerPubKey, - FinalityProviderPublicKey: fpKey.PubKey(), - StakingInfo: stakingInfo, - StakingTransaction: stakingTx, - UnbondingTx: unbondingTx, - UnbondingTxStakerSig: validSig, - } -} - -func TestValidSigningRequest(t *testing.T) { - deps := NewMockedDependencies(t) - signerApp := signerapp.NewSignerApp(deps.s, deps.bi, deps.pr, &net) - validData := NewValidTestData(t, deps.params) - - deps.bi.EXPECT().TxByHash( - gomock.Any(), - &validData.UnbondingTx.TxIn[0].PreviousOutPoint.Hash, - validData.StakingInfo.StakingOutput.PkScript).Return( - &signerapp.TxInfo{ - Tx: validData.StakingTransaction, - TxInclusionHeight: 200, - }, nil, - ) - deps.bi.EXPECT().BestBlockHeight(gomock.Any()).Return(uint32(300), nil) - deps.pr.EXPECT().ParamsByHeight(gomock.Any(), uint64(200)).Return(deps.params, nil) - // return staker signature from mock, as it does not matter for test correctness - deps.s.EXPECT().RawSignature(gomock.Any(), gomock.Any()).Return(&signerapp.SigningResult{ - Signature: validData.UnbondingTxStakerSig, - }, nil) - - receivedSignature, err := signerApp.SignUnbondingTransaction( - context.Background(), - validData.StakingInfo.StakingOutput.PkScript, - validData.UnbondingTx, - validData.UnbondingTxStakerSig, - deps.params.CovenantPublicKeys[0], - ) - - require.NoError(t, err) - require.NotNil(t, receivedSignature) - require.Equal(t, validData.UnbondingTxStakerSig, receivedSignature) -} - -func TestErrRequestNotCovenantMember(t *testing.T) { - deps := NewMockedDependencies(t) - signerApp := signerapp.NewSignerApp(deps.s, deps.bi, deps.pr, &net) - validData := NewValidTestData(t, deps.params) - - deps.bi.EXPECT().TxByHash( - gomock.Any(), - &validData.UnbondingTx.TxIn[0].PreviousOutPoint.Hash, - validData.StakingInfo.StakingOutput.PkScript).Return( - &signerapp.TxInfo{ - Tx: validData.StakingTransaction, - TxInclusionHeight: 200, - }, nil, - ) - deps.bi.EXPECT().BestBlockHeight(gomock.Any()).Return(uint32(300), nil) - deps.pr.EXPECT().ParamsByHeight(gomock.Any(), uint64(200)).Return(deps.params, nil) - - unknownCovenantMember, err := btcec.NewPrivateKey() - require.NoError(t, err) - - receivedSignature, err := signerApp.SignUnbondingTransaction( - context.Background(), - validData.StakingInfo.StakingOutput.PkScript, - validData.UnbondingTx, - validData.UnbondingTxStakerSig, - unknownCovenantMember.PubKey(), - ) - - require.Error(t, err) - require.Nil(t, receivedSignature) - require.True(t, errors.Is(err, signerapp.ErrInvalidSigningRequest)) -} - -func TestErrSignerNotReady(t *testing.T) { - - prvKey := "tprv8ZgxMBicQKsPdkArkw7uECTCfqthm5NAWhLpcHMyHYTAsKv2V3QsxvXhAyLqfjXSsdFAVAhwq54TsZe7rkYB3QCCNNVm4xHM7y8z8hoYzzk" - hdKey, err := hdkeychain.NewKeyFromString(prvKey) - require.NoError(t, err) - fmt.Println(hdKey.String()) - ecPrivKey, err := hdKey.ECPrivKey() - require.NoError(t, err) - fmt.Println("Master key") - fmt.Println(hex.EncodeToString(ecPrivKey.Serialize())) - - fmt.Println("Derive 0") - key, err := DeriveDefaultWitnessKeyPath(hdKey, 0) - require.NoError(t, err) - fmt.Println(key.String()) - ecPrivKey1, err := key.ECPrivKey() - require.NoError(t, err) - fmt.Println("Private key") - fmt.Println(hex.EncodeToString(ecPrivKey1.Serialize())) - pubKey := ecPrivKey1.PubKey() - fmt.Println("Public key") - fmt.Println(hex.EncodeToString(pubKey.SerializeCompressed())) - -} - -// 84h/1h/0h/0 -func DeriveDefaultWitnessKeyPath(masterPrivKey *hdkeychain.ExtendedKey, index uint32) (*hdkeychain.ExtendedKey, error) { - - // 84h - first, err := masterPrivKey.Derive(hdkeychain.HardenedKeyStart + 84) - if err != nil { - return nil, err - } - // 84h/1h - second, err := first.Derive(hdkeychain.HardenedKeyStart + 1) - if err != nil { - return nil, err - } - // 84h/1h/0h - third, err := second.Derive(hdkeychain.HardenedKeyStart + 0) - if err != nil { - return nil, err - } - - fourth, err := third.Derive(0) - if err != nil { - return nil, err - } - - fifth, err := fourth.Derive(index) - if err != nil { - return nil, err - } - - return fifth, nil -} diff --git a/covenant-signer/signerservice/client.go b/covenant-signer/signerservice/client.go index c8a1b3c..51fb2a4 100644 --- a/covenant-signer/signerservice/client.go +++ b/covenant-signer/signerservice/client.go @@ -3,20 +3,15 @@ package signerservice import ( "bytes" "context" - "encoding/hex" "encoding/json" "fmt" "io" "net/http" "time" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/handlers" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/types" - - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/utils" - "github.com/btcsuite/btcd/btcec/v2" - "github.com/btcsuite/btcd/btcec/v2/schnorr" - "github.com/btcsuite/btcd/wire" ) const ( @@ -28,37 +23,22 @@ func RequestCovenantSignaure( ctx context.Context, signerUrl string, timeout time.Duration, - unbondingTx *wire.MsgTx, - stakerUnbondingSig *schnorr.Signature, - covenantMemberPublicKey *btcec.PublicKey, - stakingTransactionPkScript []byte, -) (*schnorr.Signature, error) { - unbondingTxHex, err := utils.SerializeBTCTxToHex(unbondingTx) + preq *signerapp.ParsedSigningRequest, +) (*signerapp.ParsedSigningResponse, error) { + + req, err := types.ToSignTransactionRequest(preq) if err != nil { return nil, err } - keyHex := hex.EncodeToString(covenantMemberPublicKey.SerializeCompressed()) - - pkScriptHex := hex.EncodeToString(stakingTransactionPkScript) - - sigHex := hex.EncodeToString(stakerUnbondingSig.Serialize()) - - req := types.SignUnbondingTxRequest{ - StakingOutputPkScriptHex: pkScriptHex, - UnbondingTxHex: unbondingTxHex, - StakerUnbondingSigHex: sigHex, - CovenantPublicKey: keyHex, - } - marshalled, err := json.Marshal(req) if err != nil { return nil, err } - route := fmt.Sprintf("%s/v1/sign-unbonding-tx", signerUrl) + route := fmt.Sprintf("%s/v1/sign-transactions", signerUrl) httpRequest, err := http.NewRequestWithContext(ctx, "POST", route, bytes.NewReader(marshalled)) @@ -92,10 +72,10 @@ func RequestCovenantSignaure( return nil, fmt.Errorf("signing request failed. status code: %d, message: %s", res.StatusCode, string(resBody)) } - var response handlers.PublicResponse[types.SignUnbondingTxResponse] + var response handlers.PublicResponse[types.SignTransactionsResponse] if err := json.Unmarshal(resBody, &response); err != nil { return nil, err } - return utils.SchnorSignatureFromHex(response.Data.SignatureHex) + return types.ToParsedSigningResponse(&response.Data) } diff --git a/covenant-signer/signerservice/handlers/sign_transactions.go b/covenant-signer/signerservice/handlers/sign_transactions.go new file mode 100644 index 0000000..2237926 --- /dev/null +++ b/covenant-signer/signerservice/handlers/sign_transactions.go @@ -0,0 +1,42 @@ +package handlers + +import ( + "encoding/json" + "net/http" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/types" +) + +func (h *Handler) SignTransactions(request *http.Request) (*Result, *types.Error) { + payload := &types.SignTransactionsRequest{} + err := json.NewDecoder(request.Body).Decode(payload) + if err != nil { + return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid request payload") + } + + parsedRequest, err := types.ParseSigningRequest(payload) + + if err != nil { + return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, err.Error()) + } + + h.m.IncReceivedSigningRequests() + + sig, err := h.s.SignTransactions( + request.Context(), + parsedRequest, + ) + + if err != nil { + h.m.IncFailedSigningRequests() + + // if this is unknown error, return internal server error + return nil, types.NewErrorWithMsg(http.StatusInternalServerError, types.InternalServiceError, err.Error()) + } + + resp := types.ToResponse(sig) + + h.m.IncSuccessfulSigningRequests() + + return NewResult(resp), nil +} diff --git a/covenant-signer/signerservice/handlers/sign_unbonding.go b/covenant-signer/signerservice/handlers/sign_unbonding.go deleted file mode 100644 index 51dc80b..0000000 --- a/covenant-signer/signerservice/handlers/sign_unbonding.go +++ /dev/null @@ -1,91 +0,0 @@ -package handlers - -import ( - "encoding/hex" - "encoding/json" - "errors" - "net/http" - - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/types" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/utils" - "github.com/btcsuite/btcd/btcec/v2" - "github.com/btcsuite/btcd/btcec/v2/schnorr" -) - -func parseSchnorrSigFromHex(hexStr string) (*schnorr.Signature, error) { - sigBytes, err := hex.DecodeString(hexStr) - if err != nil { - return nil, err - } - - return schnorr.ParseSignature(sigBytes) -} - -func (h *Handler) SignUnbonding(request *http.Request) (*Result, *types.Error) { - payload := &types.SignUnbondingTxRequest{} - err := json.NewDecoder(request.Body).Decode(payload) - if err != nil { - return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid request payload") - } - - pkScript, err := hex.DecodeString(payload.StakingOutputPkScriptHex) - - if err != nil { - return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid staking output pk script") - } - - covenantPublicKeyBytes, err := hex.DecodeString(payload.CovenantPublicKey) - - if err != nil { - return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid covenant public key") - } - - covenantPublicKey, err := btcec.ParsePubKey(covenantPublicKeyBytes) - - if err != nil { - return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid covenant public key") - } - - unbondingTx, _, err := utils.NewBTCTxFromHex(payload.UnbondingTxHex) - - if err != nil { - return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid unbonding transaction") - } - - stakerUnbondingSig, err := parseSchnorrSigFromHex(payload.StakerUnbondingSigHex) - - if err != nil { - return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, "invalid staker unbonding signature") - } - - // do not count the requests with invalid arguments - h.m.IncReceivedSigningRequests() - - sig, err := h.s.SignUnbondingTransaction( - request.Context(), - pkScript, - unbondingTx, - stakerUnbondingSig, - covenantPublicKey, - ) - - if err != nil { - h.m.IncFailedSigningRequests() - - if errors.Is(err, signerapp.ErrInvalidSigningRequest) { - return nil, types.NewErrorWithMsg(http.StatusBadRequest, types.BadRequest, err.Error()) - } - - // if this is unknown error, return internal server error - return nil, types.NewErrorWithMsg(http.StatusInternalServerError, types.InternalServiceError, err.Error()) - } - - resp := types.SignUnbondingTxResponse{ - SignatureHex: hex.EncodeToString(sig.Serialize()), - } - - h.m.IncSuccessfulSigningRequests() - - return NewResult(resp), nil -} diff --git a/covenant-signer/signerservice/server.go b/covenant-signer/signerservice/server.go index 4027e83..289123e 100644 --- a/covenant-signer/signerservice/server.go +++ b/covenant-signer/signerservice/server.go @@ -22,7 +22,7 @@ type SigningServer struct { func (a *SigningServer) SetupRoutes(r *chi.Mux) { handler := a.handler - r.Post("/v1/sign-unbonding-tx", registerHandler(handler.SignUnbonding)) + r.Post("/v1/sign-transactions", registerHandler(handler.SignTransactions)) } func New( diff --git a/covenant-signer/signerservice/types/sign_transactions.go b/covenant-signer/signerservice/types/sign_transactions.go new file mode 100644 index 0000000..efe2512 --- /dev/null +++ b/covenant-signer/signerservice/types/sign_transactions.go @@ -0,0 +1,233 @@ +package types + +import ( + "encoding/hex" + "fmt" + + asig "github.com/babylonlabs-io/babylon/crypto/schnorr-adaptor-signature" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/utils" + "github.com/btcsuite/btcd/btcec/v2/schnorr" +) + +type SignTransactionsRequest struct { + StakingTxHex string `json:"staking_tx_hex"` + SlashingTxHex string `json:"slashing_tx_hex"` + UnbondingTxHex string `json:"unbonding_tx_hex"` + SlashUnbondingTxHex string `json:"slash_unbonding_tx_hex"` + StakingOutputIdx uint32 `json:"staking_output_idx"` + SlashingScriptHex string `json:"slashing_script_hex"` + UnbondingScriptHex string `json:"unbonding_script_hex"` + UnbondingSlashingScriptHex string `json:"unbonding_slashing_script_hex"` + FpEncKeys []string `json:"fp_enc_keys"` +} + +func ParseSigningRequest(request *SignTransactionsRequest) (*signerapp.ParsedSigningRequest, error) { + stakingTx, _, err := utils.NewBTCTxFromHex(request.StakingTxHex) + + if err != nil { + return nil, fmt.Errorf("invalid staking transaction in request: %w", err) + } + + slashingTx, _, err := utils.NewBTCTxFromHex(request.SlashingTxHex) + + if err != nil { + return nil, fmt.Errorf("invalid slashing transaction in request: %w", err) + } + + unbondingTx, _, err := utils.NewBTCTxFromHex(request.UnbondingTxHex) + + if err != nil { + return nil, fmt.Errorf("invalid unbonding transaction in request: %w", err) + } + + slashUnbondingTx, _, err := utils.NewBTCTxFromHex(request.SlashUnbondingTxHex) + + if err != nil { + return nil, fmt.Errorf("invalid slash unbonding transaction in request: %w", err) + } + + slashingScript, err := hex.DecodeString(request.SlashingScriptHex) + + if err != nil { + return nil, fmt.Errorf("invalid slashing script in request: %w", err) + } + + if len(slashingScript) == 0 { + return nil, fmt.Errorf("slashing script is empty") + } + + unbondingScript, err := hex.DecodeString(request.UnbondingScriptHex) + + if err != nil { + return nil, fmt.Errorf("invalid unbonding script in request: %w", err) + } + + if len(unbondingScript) == 0 { + return nil, fmt.Errorf("unbonding script is empty") + } + + unbondingSlashingScript, err := hex.DecodeString(request.UnbondingSlashingScriptHex) + + if err != nil { + return nil, fmt.Errorf("invalid unbonding slashing script in request: %w", err) + } + + if len(unbondingSlashingScript) == 0 { + return nil, fmt.Errorf("unbonding slashing script is empty") + } + + fpEncKeys := make([]*asig.EncryptionKey, len(request.FpEncKeys)) + + for i, key := range request.FpEncKeys { + encKeyBytes, err := hex.DecodeString(key) + + if err != nil { + return nil, fmt.Errorf("invalid fp encryption key in request: %w", err) + } + + fpEncKey, err := asig.NewEncryptionKeyFromBytes(encKeyBytes) + + if err != nil { + return nil, fmt.Errorf("invalid fp encryption key in request: %w", err) + } + + fpEncKeys[i] = fpEncKey + } + + return &signerapp.ParsedSigningRequest{ + StakingTx: stakingTx, + SlashingTx: slashingTx, + UnbondingTx: unbondingTx, + SlashUnbondingTx: slashUnbondingTx, + StakingOutputIdx: request.StakingOutputIdx, + SlashingScript: slashingScript, + UnbondingScript: unbondingScript, + UnbondingSlashingScript: unbondingSlashingScript, + FpEncKeys: fpEncKeys, + }, nil +} + +func ToSignTransactionRequest(parsedRequest *signerapp.ParsedSigningRequest) (*SignTransactionsRequest, error) { + stakingTxHex, err := utils.SerializeBTCTxToHex(parsedRequest.StakingTx) + + if err != nil { + return nil, fmt.Errorf("failed to serialize staking transaction: %w", err) + } + + slashingTxHex, err := utils.SerializeBTCTxToHex(parsedRequest.SlashingTx) + + if err != nil { + return nil, fmt.Errorf("failed to serialize slashing transaction: %w", err) + } + + unbondingTxHex, err := utils.SerializeBTCTxToHex(parsedRequest.UnbondingTx) + + if err != nil { + return nil, fmt.Errorf("failed to serialize unbonding transaction: %w", err) + } + + slashUnbondingTxHex, err := utils.SerializeBTCTxToHex(parsedRequest.SlashUnbondingTx) + + if err != nil { + return nil, fmt.Errorf("failed to serialize slash unbonding transaction: %w", err) + } + + fpEncKeys := make([]string, len(parsedRequest.FpEncKeys)) + + for i, key := range parsedRequest.FpEncKeys { + fpEncKeys[i] = hex.EncodeToString(key.ToBytes()) + } + + return &SignTransactionsRequest{ + StakingTxHex: stakingTxHex, + SlashingTxHex: slashingTxHex, + UnbondingTxHex: unbondingTxHex, + SlashUnbondingTxHex: slashUnbondingTxHex, + StakingOutputIdx: parsedRequest.StakingOutputIdx, + SlashingScriptHex: hex.EncodeToString(parsedRequest.SlashingScript), + UnbondingScriptHex: hex.EncodeToString(parsedRequest.UnbondingScript), + UnbondingSlashingScriptHex: hex.EncodeToString(parsedRequest.UnbondingSlashingScript), + FpEncKeys: fpEncKeys, + }, nil +} + +type SignTransactionsResponse struct { + SlashingTransactionsAdaptorSignatures []string `json:"slashing_transactions_signatures"` + UnbondingTransactionSignature string `json:"unbonding_transaction_signature"` + SlashUnbondingTransactionsAdaptorSignatures []string `json:"slash_unbonding_transactions_signatures"` +} + +func ToResponse(response *signerapp.ParsedSigningResponse) *SignTransactionsResponse { + slashAdaptorSigs := make([]string, len(response.SlashAdaptorSigs)) + + for i, sig := range response.SlashAdaptorSigs { + slashAdaptorSigs[i] = hex.EncodeToString(sig) + } + + unbondingSig := hex.EncodeToString(response.UnbondingSig.Serialize()) + + slashUnbondingAdaptorSigs := make([]string, len(response.SlashUnbondingAdaptorSigs)) + + for i, sig := range response.SlashUnbondingAdaptorSigs { + slashUnbondingAdaptorSigs[i] = hex.EncodeToString(sig) + } + + return &SignTransactionsResponse{ + SlashingTransactionsAdaptorSignatures: slashAdaptorSigs, + UnbondingTransactionSignature: unbondingSig, + SlashUnbondingTransactionsAdaptorSignatures: slashUnbondingAdaptorSigs, + } +} + +func ToParsedSigningResponse(response *SignTransactionsResponse) (*signerapp.ParsedSigningResponse, error) { + if len(response.SlashingTransactionsAdaptorSignatures) == 0 { + return nil, fmt.Errorf("no slashing transactions adaptor signatures in response") + } + + if len(response.SlashUnbondingTransactionsAdaptorSignatures) == 0 { + return nil, fmt.Errorf("no slash unbonding transactions adaptor signatures in response") + } + + slashAdaptorSigs := make([][]byte, len(response.SlashingTransactionsAdaptorSignatures)) + + for i, sig := range response.SlashingTransactionsAdaptorSignatures { + adaptorSigBytes, err := hex.DecodeString(sig) + + if err != nil { + return nil, fmt.Errorf("invalid slashing transactions adaptor signature in response: %w", err) + } + + slashAdaptorSigs[i] = adaptorSigBytes + } + + unbondingSigBytes, err := hex.DecodeString(response.UnbondingTransactionSignature) + + if err != nil { + return nil, fmt.Errorf("invalid unbonding transaction signature in response: %w", err) + } + + unbondingSig, err := schnorr.ParseSignature(unbondingSigBytes) + + if err != nil { + return nil, fmt.Errorf("invalid unbonding transaction signature in response: %w", err) + } + + slashUnbondingAdaptorSigs := make([][]byte, len(response.SlashUnbondingTransactionsAdaptorSignatures)) + + for i, sig := range response.SlashUnbondingTransactionsAdaptorSignatures { + adaptorSigBytes, err := hex.DecodeString(sig) + + if err != nil { + return nil, fmt.Errorf("invalid slash unbonding transactions adaptor signature in response: %w", err) + } + + slashUnbondingAdaptorSigs[i] = adaptorSigBytes + } + + return &signerapp.ParsedSigningResponse{ + SlashAdaptorSigs: slashAdaptorSigs, + UnbondingSig: unbondingSig, + SlashUnbondingAdaptorSigs: slashUnbondingAdaptorSigs, + }, nil +} diff --git a/covenant-signer/signerservice/types/sign_unbonding.go b/covenant-signer/signerservice/types/sign_unbonding.go deleted file mode 100644 index 23a8387..0000000 --- a/covenant-signer/signerservice/types/sign_unbonding.go +++ /dev/null @@ -1,15 +0,0 @@ -package types - -// SignUnbondingTxPayload carries all data necessary to sign unbonding transaction -type SignUnbondingTxRequest struct { - StakingOutputPkScriptHex string `json:"staking_output_pk_script_hex"` - UnbondingTxHex string `json:"unbonding_tx_hex"` - StakerUnbondingSigHex string `json:"staker_unbonding_sig_hex"` - // 33 bytes compressed public key - CovenantPublicKey string `json:"covenant_public_key"` -} - -// SignUnbondingTxResponse covenant member schnorr signature -type SignUnbondingTxResponse struct { - SignatureHex string `json:"signature_hex"` -} From a86f8d8ac800ddcab921a7d320594e2d0706dd5f Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Wed, 20 Nov 2024 10:42:16 +0100 Subject: [PATCH 4/8] add cosmos keyring --- covenant-signer/btcclient/client.go | 357 ------------------ covenant-signer/cmd/signerCmd.go | 18 +- covenant-signer/config/btc.go | 61 --- covenant-signer/config/config.go | 39 +- covenant-signer/config/keystore.go | 69 ++++ covenant-signer/config/signer_config.go | 99 ----- covenant-signer/example/config.toml | 56 --- covenant-signer/example/global-params.json | 25 -- covenant-signer/go.mod | 81 +--- covenant-signer/go.sum | 259 ------------- covenant-signer/itest/e2e_test.go | 20 +- covenant-signer/keystore/cosmos/codec.go | 17 + covenant-signer/keystore/cosmos/config.toml | 41 ++ .../keystore/cosmos/cosmoskeyretriever.go | 46 +++ covenant-signer/keystore/cosmos/keyring.go | 73 ++++ .../keystore/cosmos/keyringcontroller.go | 137 +++++++ 16 files changed, 442 insertions(+), 956 deletions(-) delete mode 100644 covenant-signer/btcclient/client.go delete mode 100644 covenant-signer/config/btc.go create mode 100644 covenant-signer/config/keystore.go delete mode 100644 covenant-signer/config/signer_config.go delete mode 100644 covenant-signer/example/config.toml delete mode 100644 covenant-signer/example/global-params.json create mode 100644 covenant-signer/keystore/cosmos/codec.go create mode 100644 covenant-signer/keystore/cosmos/config.toml create mode 100644 covenant-signer/keystore/cosmos/cosmoskeyretriever.go create mode 100644 covenant-signer/keystore/cosmos/keyring.go create mode 100644 covenant-signer/keystore/cosmos/keyringcontroller.go diff --git a/covenant-signer/btcclient/client.go b/covenant-signer/btcclient/client.go deleted file mode 100644 index 2286248..0000000 --- a/covenant-signer/btcclient/client.go +++ /dev/null @@ -1,357 +0,0 @@ -package btcclient - -import ( - "bytes" - "encoding/base64" - "encoding/hex" - "fmt" - "sort" - - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" - "github.com/btcsuite/btcd/btcec/v2" - "github.com/btcsuite/btcd/btcjson" - "github.com/btcsuite/btcd/btcutil" - "github.com/btcsuite/btcd/btcutil/psbt" - "github.com/btcsuite/btcd/chaincfg/chainhash" - - "github.com/btcsuite/btcd/rpcclient" - "github.com/btcsuite/btcd/txscript" - "github.com/btcsuite/btcd/wire" - "github.com/btcsuite/btcwallet/wallet/txauthor" - notifier "github.com/lightningnetwork/lnd/chainntnfs" -) - -type TxStatus int - -const ( - TxNotFound TxStatus = iota - TxInMemPool - TxInChain -) - -const txNotFoundErrMsgBitcoind = "No such mempool or blockchain transaction" - -func nofitierStateToClientState(state notifier.TxConfStatus) TxStatus { - switch state { - case notifier.TxNotFoundIndex: - return TxNotFound - case notifier.TxFoundMempool: - return TxInMemPool - case notifier.TxFoundIndex: - return TxInChain - case notifier.TxNotFoundManually: - return TxNotFound - case notifier.TxFoundManually: - return TxInChain - default: - panic(fmt.Sprintf("unknown notifier state: %s", state)) - } -} - -type BtcClient struct { - RpcClient *rpcclient.Client -} - -func btcConfigToConnConfig(cfg *config.ParsedBtcConfig) *rpcclient.ConnConfig { - return &rpcclient.ConnConfig{ - Host: cfg.Host, - User: cfg.User, - Pass: cfg.Pass, - DisableTLS: true, - DisableConnectOnNew: true, - DisableAutoReconnect: false, - HTTPPostMode: true, - } -} - -// client from config -func NewBtcClient(cfg *config.ParsedBtcConfig) (*BtcClient, error) { - rpcClient, err := rpcclient.New(btcConfigToConnConfig(cfg), nil) - - if err != nil { - return nil, err - } - - return &BtcClient{RpcClient: rpcClient}, nil -} - -func (c *BtcClient) SendTx(tx *wire.MsgTx) (*chainhash.Hash, error) { - return c.RpcClient.SendRawTransaction(tx, true) -} - -// Helpers to easily build transactions -type Utxo struct { - Amount btcutil.Amount - OutPoint wire.OutPoint - PkScript []byte - RedeemScript []byte - Address string -} - -type byAmount []Utxo - -func (s byAmount) Len() int { return len(s) } -func (s byAmount) Less(i, j int) bool { return s[i].Amount < s[j].Amount } -func (s byAmount) Swap(i, j int) { s[i], s[j] = s[j], s[i] } - -func resultsToUtxos(results []btcjson.ListUnspentResult, onlySpendable bool) ([]Utxo, error) { - var utxos []Utxo - for _, result := range results { - if onlySpendable && !result.Spendable { - // skip unspendable outputs - continue - } - - amount, err := btcutil.NewAmount(result.Amount) - - if err != nil { - return nil, err - } - - chainhash, err := chainhash.NewHashFromStr(result.TxID) - - if err != nil { - return nil, err - } - - outpoint := wire.NewOutPoint(chainhash, result.Vout) - - script, err := hex.DecodeString(result.ScriptPubKey) - - if err != nil { - return nil, err - } - - redeemScript, err := hex.DecodeString(result.RedeemScript) - - if err != nil { - return nil, err - } - - utxo := Utxo{ - Amount: amount, - OutPoint: *outpoint, - PkScript: script, - RedeemScript: redeemScript, - Address: result.Address, - } - utxos = append(utxos, utxo) - } - return utxos, nil -} - -func makeInputSource(utxos []Utxo) txauthor.InputSource { - currentTotal := btcutil.Amount(0) - currentInputs := make([]*wire.TxIn, 0, len(utxos)) - currentScripts := make([][]byte, 0, len(utxos)) - currentInputValues := make([]btcutil.Amount, 0, len(utxos)) - - return func(target btcutil.Amount) (btcutil.Amount, []*wire.TxIn, - []btcutil.Amount, [][]byte, error) { - - for currentTotal < target && len(utxos) != 0 { - nextCredit := &utxos[0] - utxos = utxos[1:] - nextInput := wire.NewTxIn(&nextCredit.OutPoint, nil, nil) - currentTotal += nextCredit.Amount - currentInputs = append(currentInputs, nextInput) - currentScripts = append(currentScripts, nextCredit.PkScript) - currentInputValues = append(currentInputValues, nextCredit.Amount) - } - return currentTotal, currentInputs, currentInputValues, currentScripts, nil - } -} - -func buildTxFromOutputs( - utxos []Utxo, - outputs []*wire.TxOut, - feeRatePerKb btcutil.Amount, - changeScript []byte) (*wire.MsgTx, error) { - - if len(utxos) == 0 { - return nil, fmt.Errorf("there must be at least 1 usable UTXO to build transaction") - } - - if len(outputs) == 0 { - return nil, fmt.Errorf("there must be at least 1 output in transaction") - } - - ch := txauthor.ChangeSource{ - NewScript: func() ([]byte, error) { - return changeScript, nil - }, - ScriptSize: len(changeScript), - } - - inputSource := makeInputSource(utxos) - - authoredTx, err := txauthor.NewUnsignedTransaction( - outputs, - feeRatePerKb, - inputSource, - &ch, - ) - - if err != nil { - return nil, err - } - - return authoredTx.Tx, nil -} - -func (w *BtcClient) UnlockWallet(timoutSec int64, passphrase string) error { - return w.RpcClient.WalletPassphrase(passphrase, timoutSec) -} - -func (w *BtcClient) DumpPrivateKey(address btcutil.Address) (*btcec.PrivateKey, error) { - privKey, err := w.RpcClient.DumpPrivKey(address) - - if err != nil { - return nil, err - } - - return privKey.PrivKey, nil -} - -func (w *BtcClient) CreateTransaction( - outputs []*wire.TxOut, - feeRatePerKb btcutil.Amount, - changeAddres btcutil.Address) (*wire.MsgTx, error) { - - utxoResults, err := w.RpcClient.ListUnspent() - - if err != nil { - return nil, err - } - - utxos, err := resultsToUtxos(utxoResults, true) - - if err != nil { - return nil, err - } - - // sort utxos by amount from highest to lowest, this is effectively strategy of using - // largest inputs first - sort.Sort(sort.Reverse(byAmount(utxos))) - - changeScript, err := txscript.PayToAddrScript(changeAddres) - - if err != nil { - return nil, err - } - - tx, err := buildTxFromOutputs(utxos, outputs, feeRatePerKb, changeScript) - - if err != nil { - return nil, err - } - - return tx, err -} - -func (w *BtcClient) CreateAndSignTx( - outputs []*wire.TxOut, - feeRatePerKb btcutil.Amount, - changeAddress btcutil.Address, -) (*wire.MsgTx, error) { - tx, err := w.CreateTransaction(outputs, feeRatePerKb, changeAddress) - - if err != nil { - return nil, err - } - - fundedTx, signed, err := w.SignRawTransaction(tx) - - if err != nil { - return nil, err - } - - if !signed { - // TODO: Investigate this case a bit more thoroughly, to check if we can recover - // somehow - return nil, fmt.Errorf("not all transactions inputs could be signed") - } - - return fundedTx, nil -} - -func (w *BtcClient) SignRawTransaction(tx *wire.MsgTx) (*wire.MsgTx, bool, error) { - return w.RpcClient.SignRawTransactionWithWallet(tx) -} - -func (w *BtcClient) ListOutputs(onlySpendable bool) ([]Utxo, error) { - utxoResults, err := w.RpcClient.ListUnspent() - - if err != nil { - return nil, err - } - - utxos, err := resultsToUtxos(utxoResults, onlySpendable) - - if err != nil { - return nil, err - } - - return utxos, nil -} - -func (w *BtcClient) TxDetails(txHash *chainhash.Hash, pkScript []byte) (*notifier.TxConfirmation, TxStatus, error) { - req, err := notifier.NewConfRequest(txHash, pkScript) - - if err != nil { - return nil, TxNotFound, err - } - - res, state, err := notifier.ConfDetailsFromTxIndex(w.RpcClient, req, txNotFoundErrMsgBitcoind) - - if err != nil { - return nil, TxNotFound, err - } - - return res, nofitierStateToClientState(state), nil -} - -func (w *BtcClient) SignPsbt(packet *psbt.Packet) (*psbt.Packet, error) { - psbtEncoded, err := packet.B64Encode() - - if err != nil { - return nil, err - } - - sign := true - result, err := w.RpcClient.WalletProcessPsbt( - psbtEncoded, - &sign, - // TODO: Hacky way of forcing bitcoind to use sighash DEFAULT - "DEFAULT", - nil, - ) - - if err != nil { - return nil, err - } - - decodedBytes, err := base64.StdEncoding.DecodeString(result.Psbt) - - if err != nil { - return nil, err - } - - decoded, err := psbt.NewFromRawBytes(bytes.NewReader(decodedBytes), false) - - if err != nil { - return nil, err - } - - return decoded, nil -} - -func (w *BtcClient) BestBlockHeight() (uint32, error) { - count, err := w.RpcClient.GetBlockCount() - - if err != nil { - return 0, err - } - //#nosec G115 -- safe conversion, nubmer of blocks is always positive and less than math.MaxUint32 - return uint32(count), nil -} diff --git a/covenant-signer/cmd/signerCmd.go b/covenant-signer/cmd/signerCmd.go index 81483a6..db8922d 100644 --- a/covenant-signer/cmd/signerCmd.go +++ b/covenant-signer/cmd/signerCmd.go @@ -3,10 +3,10 @@ package cmd import ( "fmt" - "github.com/btcsuite/btcd/btcec/v2" "github.com/spf13/cobra" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/keystore/cosmos" m "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/metrics" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice" @@ -35,15 +35,17 @@ var runSignerCmd = &cobra.Command{ return err } - privKey, err := btcec.NewPrivateKey() - - if err != nil { - return err + var prk signerapp.PrivKeyRetriever + if parsedConfig.KeyStoreConfig.KeyStoreType == config.CosmosKeyStore { + kr, err := cosmos.NewCosmosKeyringRetriever(parsedConfig.KeyStoreConfig.CosmosKeyStore) + if err != nil { + return err + } + prk = kr + } else { + return fmt.Errorf("unknown key store type") } - // TODO: Implement other approach to store keys - prk := signerapp.NewHardcodedPrivKeyRetriever(privKey) - app := signerapp.NewSignerApp( prk, ) diff --git a/covenant-signer/config/btc.go b/covenant-signer/config/btc.go deleted file mode 100644 index 3bbb561..0000000 --- a/covenant-signer/config/btc.go +++ /dev/null @@ -1,61 +0,0 @@ -package config - -import ( - "fmt" - - "github.com/btcsuite/btcd/chaincfg" -) - -type BtcConfig struct { - Host string `mapstructure:"host"` - User string `mapstructure:"user"` - Pass string `mapstructure:"pass"` - Network string `mapstructure:"network"` -} - -type ParsedBtcConfig struct { - Host string - User string - Pass string - Network *chaincfg.Params -} - -func DefaultBtcConfig() *BtcConfig { - return &BtcConfig{ - Host: "localhost:18556", - User: "user", - Pass: "pass", - Network: "regtest", - } -} - -func (c *BtcConfig) Parse() (*ParsedBtcConfig, error) { - params, err := c.getBtcNetworkParams() - - if err != nil { - return nil, err - } - return &ParsedBtcConfig{ - Host: c.Host, - User: c.User, - Pass: c.Pass, - Network: params, - }, nil -} - -func (cfg *BtcConfig) getBtcNetworkParams() (*chaincfg.Params, error) { - switch cfg.Network { - case "testnet3": - return &chaincfg.TestNet3Params, nil - case "mainnet": - return &chaincfg.MainNetParams, nil - case "regtest": - return &chaincfg.RegressionNetParams, nil - case "simnet": - return &chaincfg.SimNetParams, nil - case "signet": - return &chaincfg.SigNetParams, nil - default: - return nil, fmt.Errorf("unknown network %s", cfg.Network) - } -} diff --git a/covenant-signer/config/config.go b/covenant-signer/config/config.go index 7d38821..f3fe5f3 100644 --- a/covenant-signer/config/config.go +++ b/covenant-signer/config/config.go @@ -16,23 +16,31 @@ const ( ) type Config struct { - Server ServerConfig `mapstructure:"server-config"` - Metrics MetricsConfig `mapstructure:"metrics"` + KeyStore KeyStoreConfig `mapstructure:"keystore"` + Server ServerConfig `mapstructure:"server-config"` + Metrics MetricsConfig `mapstructure:"metrics"` } func DefaultConfig() *Config { return &Config{ - Server: *DefaultServerConfig(), - Metrics: *DefaultMetricsConfig(), + KeyStore: *DefaultKeyStoreConfig(), + Server: *DefaultServerConfig(), + Metrics: *DefaultMetricsConfig(), } } type ParsedConfig struct { - ServerConfig *ParsedServerConfig - MetricsConfig *ParsedMetricsConfig + KeyStoreConfig *ParsedKeyStoreConfig + ServerConfig *ParsedServerConfig + MetricsConfig *ParsedMetricsConfig } func (cfg *Config) Parse() (*ParsedConfig, error) { + keyStoreConfig, err := cfg.KeyStore.Parse() + if err != nil { + return nil, err + } + serverConfig, err := cfg.Server.Parse() if err != nil { @@ -46,14 +54,29 @@ func (cfg *Config) Parse() (*ParsedConfig, error) { } return &ParsedConfig{ - ServerConfig: serverConfig, - MetricsConfig: metricsConfig, + KeyStoreConfig: keyStoreConfig, + ServerConfig: serverConfig, + MetricsConfig: metricsConfig, }, nil } const defaultConfigTemplate = `# This is a TOML config file. # For more information, see https://github.com/toml-lang/toml +[keystore] +# The type of the key store +keystore-type = "{{ .KeyStore.KeyStoreType }}" + +[keystore.cosmos] +# The directory to store the keys in +key-directory = "{{ .KeyStore.CosmosKeyStore.KeyDirectory }}" +# The keyring backend to use +keyring-backend = "{{ .KeyStore.CosmosKeyStore.KeyringBackend }}" +# The name of the key to use +key-name = "{{ .KeyStore.CosmosKeyStore.KeyName }}" +# Passphrase +passphrase = "{{ .KeyStore.CosmosKeyStore.Passphrase }}" + [server-config] # The address to listen on host = "{{ .Server.Host }}" diff --git a/covenant-signer/config/keystore.go b/covenant-signer/config/keystore.go new file mode 100644 index 0000000..b4c7b6c --- /dev/null +++ b/covenant-signer/config/keystore.go @@ -0,0 +1,69 @@ +package config + +import "fmt" + +type KeyStoreType int + +const ( + CosmosKeyStore KeyStoreType = iota +) + +func KeyStoreToString(c KeyStoreType) (string, error) { + switch c { + case CosmosKeyStore: + return "cosmos", nil + default: + return "", fmt.Errorf("unknown key store type") + } +} + +func KeyStoreFromString(s string) (KeyStoreType, error) { + switch s { + case "cosmos": + return CosmosKeyStore, nil + default: + return -1, fmt.Errorf("unknown key store type") + } +} + +type CosmosKeyStoreConfig struct { + ChainID string `mapstructure:"chain-id"` + KeyDirectory string `mapstructure:"key-directory"` + KeyringBackend string `mapstructure:"keyring-backend"` + KeyName string `mapstructure:"key-name"` + Passphrase string `mapstructure:"passphrase"` +} + +type KeyStoreConfig struct { + KeyStoreType string `mapstructure:"keystore-type"` + CosmosKeyStore *CosmosKeyStoreConfig +} + +func DefaultKeyStoreConfig() *KeyStoreConfig { + defaultKeyStoreType, err := KeyStoreToString(CosmosKeyStore) + if err != nil { + panic(err) + } + + return &KeyStoreConfig{ + KeyStoreType: defaultKeyStoreType, + CosmosKeyStore: &CosmosKeyStoreConfig{}, + } +} + +type ParsedKeyStoreConfig struct { + KeyStoreType KeyStoreType + CosmosKeyStore *CosmosKeyStoreConfig +} + +func (cfg *KeyStoreConfig) Parse() (*ParsedKeyStoreConfig, error) { + keyStoreType, err := KeyStoreFromString(cfg.KeyStoreType) + if err != nil { + return nil, err + } + + return &ParsedKeyStoreConfig{ + KeyStoreType: keyStoreType, + CosmosKeyStore: cfg.CosmosKeyStore, + }, nil +} diff --git a/covenant-signer/config/signer_config.go b/covenant-signer/config/signer_config.go deleted file mode 100644 index 8c4e094..0000000 --- a/covenant-signer/config/signer_config.go +++ /dev/null @@ -1,99 +0,0 @@ -package config - -import ( - "fmt" - - "github.com/btcsuite/btcd/chaincfg" -) - -type SignerType int - -const ( - PsbtSigner SignerType = iota - PrivKeySigner -) - -func SignerFromString(s string) (SignerType, error) { - switch s { - case "psbt": - return PsbtSigner, nil - case "privkey": - return PrivKeySigner, nil - default: - return -1, fmt.Errorf("unknown signer type %s", s) - } -} - -type BtcSignerConfig struct { - Host string `mapstructure:"host"` - User string `mapstructure:"user"` - Pass string `mapstructure:"pass"` - Network string `mapstructure:"network"` - SignerType string `mapstructure:"signer-type"` -} - -type ParsedBtcSignerConfig struct { - Host string - User string - Pass string - Network *chaincfg.Params - SignerType SignerType -} - -func DefaultBtcSignerConfig() *BtcSignerConfig { - return &BtcSignerConfig{ - Host: "localhost:18556", - User: "user", - Pass: "pass", - Network: "regtest", - SignerType: "psbt", - } -} - -func (c *ParsedBtcSignerConfig) ToBtcConfig() *ParsedBtcConfig { - return &ParsedBtcConfig{ - Host: c.Host, - User: c.User, - Pass: c.Pass, - Network: c.Network, - } -} - -func (c *BtcSignerConfig) Parse() (*ParsedBtcSignerConfig, error) { - params, err := c.getBtcNetworkParams() - - if err != nil { - return nil, err - } - - signerType, err := SignerFromString(c.SignerType) - - if err != nil { - return nil, err - } - - return &ParsedBtcSignerConfig{ - Host: c.Host, - User: c.User, - Pass: c.Pass, - Network: params, - SignerType: signerType, - }, nil -} - -func (cfg *BtcSignerConfig) getBtcNetworkParams() (*chaincfg.Params, error) { - switch cfg.Network { - case "testnet3": - return &chaincfg.TestNet3Params, nil - case "mainnet": - return &chaincfg.MainNetParams, nil - case "regtest": - return &chaincfg.RegressionNetParams, nil - case "simnet": - return &chaincfg.SimNetParams, nil - case "signet": - return &chaincfg.SigNetParams, nil - default: - return nil, fmt.Errorf("unknown network %s", cfg.Network) - } -} diff --git a/covenant-signer/example/config.toml b/covenant-signer/example/config.toml deleted file mode 100644 index 4b0c9ff..0000000 --- a/covenant-signer/example/config.toml +++ /dev/null @@ -1,56 +0,0 @@ -# This is a TOML config file. -# For more information, see https://github.com/toml-lang/toml - -# There are two btc related configs -# 1. [btc-config] is config for btc full node which should have transaction indexing -# enabled. This node should be synced and can be open to the public. -# 2. [btc-signer-config] is config for bitcoind daemon which should have only -# wallet functionality, it should run in separate network. This bitcoind instance -# will be used to sign psbt's -[btc-config] -# Btc node host -host = "localhost:18556" -# Btc node user -user = "user" -# Btc node password -pass = "pass" -# Btc network (testnet3|mainnet|regtest|simnet|signet) -network = "regtest" - -[btc-signer-config] -# Btc node host -host = "localhost:18556" -# TODO: consider reading user/pass from command line -# Btc node user -user = "user" -# Btc node password -pass = "pass" -# Btc network (testnet3|mainnet|regtest|simnet|signet) -network = "regtest" -# Signer type (psbt|privkey) -signer-type = "psbt" - -[server-config] -# The address to listen on -host = "127.0.0.1" - -# The port to listen on -port = 9791 - -# Read timeout in seconds -read-timeout = 15 - -# Write timeout in seconds -write-timeout = 15 - -# Idle timeout in seconds -idle-timeout = 120 - -# Max content length in bytes -max-content-length = 8192 - -[metrics] -# The prometheus server host -host = "127.0.0.1" -# The prometheus server port -port = 2112 diff --git a/covenant-signer/example/global-params.json b/covenant-signer/example/global-params.json deleted file mode 100644 index 7e7ed1e..0000000 --- a/covenant-signer/example/global-params.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "versions": [ - { - "version": 0, - "activation_height": 192840, - "staking_cap": 50000000000, - "tag": "01020304", - "covenant_pks": [ - "0205149a0c7a95320adf210e47bca8b363b7bd966be86be6392dd6cf4f96995869", - "02e8d503cb52715249f32f3ee79cee88dfd48c2565cb0c79cf9640d291f46fd518", - "02fe81b2409a32ddfd8ec1556557e8dd949b6e4fd37047523cb7f5fefca283d542", - "02bc4a1ff485d7b44faeec320b81ad31c3cad4d097813c21fcf382b4305e4cfc82", - "02001e50601a4a1c003716d7a1ee7fe25e26e55e24e909b3642edb60d30e3c40c1" - ], - "covenant_quorum": 3, - "unbonding_time": 1000, - "unbonding_fee": 20000, - "max_staking_amount": 1000000000, - "min_staking_amount": 1000000, - "max_staking_time": 64000, - "min_staking_time": 64000, - "confirmation_depth": 6 - } - ] -} diff --git a/covenant-signer/go.mod b/covenant-signer/go.mod index c576f70..176d18e 100644 --- a/covenant-signer/go.mod +++ b/covenant-signer/go.mod @@ -11,7 +11,6 @@ require ( github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb // indirect github.com/inconshreveable/mousetrap v1.1.0 // indirect github.com/klauspost/compress v1.17.7 // indirect - github.com/lightningnetwork/lnd v0.16.4-beta.rc1 github.com/ory/dockertest/v3 v3.10.0 github.com/spf13/viper v1.18.2 github.com/stretchr/testify v1.9.0 @@ -44,9 +43,9 @@ require ( require ( cosmossdk.io/math v1.3.0 github.com/babylonlabs-io/babylon v0.12.1 - github.com/btcsuite/btcd/btcutil/psbt v1.1.8 github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 - github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 + github.com/cosmos/cosmos-sdk v0.50.6 + github.com/cosmos/go-bip39 v1.0.0 github.com/go-chi/chi/v5 v5.0.12 github.com/golang/mock v1.6.0 github.com/google/uuid v1.6.0 @@ -86,7 +85,6 @@ require ( github.com/Microsoft/go-winio v0.6.1 // indirect github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 // indirect github.com/aead/siphash v1.0.1 // indirect - github.com/andybalholm/brotli v1.0.5 // indirect github.com/aws/aws-sdk-go v1.44.312 // indirect github.com/beorn7/perks v1.0.1 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect @@ -94,14 +92,6 @@ require ( github.com/bits-and-blooms/bitset v1.10.0 // indirect github.com/boljen/go-bitmap v0.0.0-20151001105940-23cd2fb0ce7d // indirect github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f // indirect - github.com/btcsuite/btcwallet v0.16.10-0.20230621165747-9c21f464ce13 // indirect - github.com/btcsuite/btcwallet/wallet/txrules v1.2.0 // indirect - github.com/btcsuite/btcwallet/wallet/txsizes v1.2.3 // indirect - github.com/btcsuite/btcwallet/walletdb v1.4.0 // indirect - github.com/btcsuite/btcwallet/wtxmgr v1.5.0 // indirect - github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd // indirect - github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 // indirect - github.com/btcsuite/winsvc v1.0.0 // indirect github.com/cenkalti/backoff/v4 v4.2.0 // indirect github.com/cespare/xxhash v1.1.0 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect @@ -115,13 +105,9 @@ require ( github.com/cometbft/cometbft v0.38.7 // indirect github.com/cometbft/cometbft-db v0.9.1 // indirect github.com/containerd/continuity v0.3.0 // indirect - github.com/coreos/go-semver v0.3.0 // indirect - github.com/coreos/go-systemd/v22 v22.5.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect github.com/cosmos/cosmos-db v1.0.2 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect - github.com/cosmos/cosmos-sdk v0.50.6 // indirect - github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/gogoproto v1.4.12 // indirect github.com/cosmos/iavl v1.1.2 // indirect @@ -134,7 +120,6 @@ require ( github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/decred/dcrd/crypto/blake256 v1.0.1 // indirect github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect - github.com/decred/dcrd/lru v1.0.0 // indirect github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f // indirect github.com/dgraph-io/badger/v2 v2.2007.4 // indirect github.com/dgraph-io/ristretto v0.1.1 // indirect @@ -144,13 +129,11 @@ require ( github.com/docker/docker v25.0.6+incompatible // indirect github.com/docker/go-connections v0.4.0 // indirect github.com/docker/go-units v0.5.0 // indirect - github.com/dsnet/compress v0.0.1 // indirect github.com/dustin/go-humanize v1.0.1 // indirect github.com/dvsekhvalnov/jose2go v1.6.0 // indirect github.com/emicklei/dot v1.6.1 // indirect github.com/fatih/color v1.15.0 // indirect github.com/felixge/httpsnoop v1.0.4 // indirect - github.com/fergusstrange/embedded-postgres v1.10.0 // indirect github.com/getsentry/sentry-go v0.27.0 // indirect github.com/go-kit/kit v0.12.0 // indirect github.com/go-kit/log v0.2.1 // indirect @@ -160,7 +143,6 @@ require ( github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 // indirect github.com/gogo/googleapis v1.4.1 // indirect github.com/gogo/protobuf v1.3.2 // indirect - github.com/golang-jwt/jwt/v4 v4.4.2 // indirect github.com/golang/glog v1.2.0 // indirect github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect github.com/golang/protobuf v1.5.4 // indirect @@ -176,7 +158,6 @@ require ( github.com/gorilla/mux v1.8.1 // indirect github.com/gorilla/websocket v1.5.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 // indirect - github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect github.com/grpc-ecosystem/grpc-gateway v1.16.0 // indirect github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect @@ -193,104 +174,57 @@ require ( github.com/huandu/skiplist v1.2.0 // indirect github.com/iancoleman/strcase v0.3.0 // indirect github.com/improbable-eng/grpc-web v0.15.0 // indirect - github.com/jackc/chunkreader/v2 v2.0.1 // indirect - github.com/jackc/pgconn v1.10.0 // indirect - github.com/jackc/pgio v1.0.0 // indirect - github.com/jackc/pgpassfile v1.0.0 // indirect - github.com/jackc/pgproto3/v2 v2.1.1 // indirect - github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b // indirect - github.com/jackc/pgtype v1.8.1 // indirect - github.com/jackc/pgx/v4 v4.13.0 // indirect - github.com/jessevdk/go-flags v1.4.0 // indirect github.com/jinzhu/copier v0.3.5 // indirect github.com/jmespath/go-jmespath v0.4.0 // indirect github.com/jmhodges/levigo v1.0.0 // indirect - github.com/jonboulle/clockwork v0.2.2 // indirect - github.com/jrick/logrotate v1.0.0 // indirect - github.com/json-iterator/go v1.1.12 // indirect - github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect github.com/kkdai/bstream v1.0.0 // indirect - github.com/klauspost/pgzip v1.2.5 // indirect github.com/kr/pretty v0.3.1 // indirect github.com/kr/text v0.2.0 // indirect github.com/lib/pq v1.10.7 // indirect github.com/libp2p/go-buffer-pool v0.1.0 // indirect - github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf // indirect - github.com/lightninglabs/neutrino v0.15.0 // indirect - github.com/lightninglabs/neutrino/cache v1.1.1 // indirect - github.com/lightningnetwork/lnd/clock v1.1.0 // indirect - github.com/lightningnetwork/lnd/healthcheck v1.2.2 // indirect - github.com/lightningnetwork/lnd/kvdb v1.4.1 // indirect - github.com/lightningnetwork/lnd/queue v1.1.0 // indirect - github.com/lightningnetwork/lnd/ticker v1.1.0 // indirect - github.com/lightningnetwork/lnd/tlv v1.1.0 // indirect - github.com/lightningnetwork/lnd/tor v1.1.0 // indirect github.com/linxGnu/grocksdb v1.8.14 // indirect github.com/manifoldco/promptui v0.9.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect - github.com/mholt/archiver/v3 v3.5.0 // indirect - github.com/miekg/dns v1.1.43 // indirect github.com/minio/highwayhash v1.0.2 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/moby/term v0.0.0-20221205130635-1aeaba878587 // indirect - github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect - github.com/modern-go/reflect2 v1.0.2 // indirect github.com/mtibben/percent v0.2.1 // indirect - github.com/nwaples/rardecode v1.1.2 // indirect github.com/oasisprotocol/curve25519-voi v0.0.0-20230904125328-1f23a7beb09a // indirect github.com/oklog/run v1.1.0 // indirect github.com/opencontainers/go-digest v1.0.0 // indirect github.com/opencontainers/image-spec v1.1.0-rc2 // indirect github.com/opencontainers/runc v1.1.5 // indirect github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 // indirect - github.com/pierrec/lz4/v4 v4.1.8 // indirect github.com/pkg/errors v0.9.1 // indirect github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/prometheus/client_model v0.6.1 // indirect github.com/prometheus/common v0.52.2 // indirect github.com/prometheus/procfs v0.13.0 // indirect github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 // indirect - github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/rs/cors v1.8.3 // indirect github.com/sasha-s/go-deadlock v0.3.1 // indirect github.com/sirupsen/logrus v1.9.0 // indirect - github.com/soheilhy/cmux v0.1.5 // indirect github.com/stretchr/objx v0.5.2 // indirect github.com/supranational/blst v0.3.11 // indirect github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect github.com/tendermint/go-amino v0.16.0 // indirect github.com/tidwall/btree v1.7.0 // indirect - github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect github.com/ulikunitz/xz v0.5.11 // indirect github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect github.com/xeipuuv/gojsonschema v1.2.0 // indirect - github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 // indirect - github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 // indirect github.com/zondax/hid v0.9.2 // indirect github.com/zondax/ledger-go v0.14.3 // indirect go.etcd.io/bbolt v1.3.8 // indirect - go.etcd.io/etcd/api/v3 v3.5.10 // indirect - go.etcd.io/etcd/client/pkg/v3 v3.5.10 // indirect - go.etcd.io/etcd/client/v2 v2.305.10 // indirect - go.etcd.io/etcd/client/v3 v3.5.10 // indirect - go.etcd.io/etcd/pkg/v3 v3.5.7 // indirect - go.etcd.io/etcd/raft/v3 v3.5.7 // indirect - go.etcd.io/etcd/server/v3 v3.5.7 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 // indirect go.opentelemetry.io/otel v1.22.0 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.0.1 // indirect - go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.0.1 // indirect go.opentelemetry.io/otel/metric v1.22.0 // indirect - go.opentelemetry.io/otel/sdk v1.21.0 // indirect go.opentelemetry.io/otel/trace v1.22.0 // indirect - go.opentelemetry.io/proto/otlp v0.9.0 // indirect - go.uber.org/zap v1.26.0 // indirect golang.org/x/mod v0.17.0 // indirect golang.org/x/net v0.24.0 // indirect golang.org/x/oauth2 v0.18.0 // indirect @@ -304,19 +238,8 @@ require ( google.golang.org/genproto/googleapis/rpc v0.0.0-20240401170217-c3f982113cda // indirect google.golang.org/grpc v1.63.2 // indirect google.golang.org/protobuf v1.33.0 // indirect - gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect gotest.tools/v3 v3.5.1 // indirect - lukechampine.com/uint128 v1.2.0 // indirect - modernc.org/cc/v3 v3.40.0 // indirect - modernc.org/ccgo/v3 v3.16.13 // indirect - modernc.org/libc v1.22.2 // indirect - modernc.org/mathutil v1.5.0 // indirect - modernc.org/memory v1.4.0 // indirect - modernc.org/opt v0.1.3 // indirect - modernc.org/sqlite v1.20.3 // indirect - modernc.org/strutil v1.1.3 // indirect - modernc.org/token v1.0.1 // indirect nhooyr.io/websocket v1.8.6 // indirect pgregory.net/rapid v1.1.0 // indirect sigs.k8s.io/yaml v1.4.0 // indirect diff --git a/covenant-signer/go.sum b/covenant-signer/go.sum index 3d8a050..87817c1 100644 --- a/covenant-signer/go.sum +++ b/covenant-signer/go.sum @@ -226,8 +226,6 @@ github.com/99designs/keyring v1.2.1/go.mod h1:fc+wB5KTk9wQ9sDx0kFXB3A0MaeGHM9AwR github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/BurntSushi/toml v1.2.1 h1:9F2/+DoOYIOksmaJFPw1tGFy1eDnIJXg+UHjuD8lTak= -github.com/BurntSushi/toml v1.2.1/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ= github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= github.com/CosmWasm/wasmd v0.51.0 h1:3A2o20RrdF7P1D3Xb+R7A/pHbbHWsYCDXrHLa7S0SC8= github.com/CosmWasm/wasmd v0.51.0/go.mod h1:7TSaj5HoolghujuVWeExqmcUKgpcYWEySGLSODbnnwY= @@ -238,10 +236,6 @@ github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3 github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ= github.com/DataDog/zstd v1.5.5/go.mod h1:g4AWEaM3yOg3HYfnJ3YIawPnVdXJh9QME85blwSAmyw= github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0= -github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= -github.com/Masterminds/semver/v3 v3.1.1/go.mod h1:VPu/7SZ7ePZ3QOrcuXROw5FAcLl4a0cBrbBpGY/8hQs= -github.com/Masterminds/semver/v3 v3.2.0 h1:3MEsd0SM6jqZojhjLWWeBY+Kcjy9i6MQAeY7YgDP83g= -github.com/Masterminds/semver/v3 v3.2.0/go.mod h1:qvl/7zhW3nngYb5+80sSMF+FG2BjYrf8m9wsX0PNOMQ= github.com/Microsoft/go-winio v0.6.1 h1:9/kr64B9VUZrLm5YYwbGtUJnMgqWVOdUAXu6Migciow= github.com/Microsoft/go-winio v0.6.1/go.mod h1:LRdKpFKfdobln8UmuiYcKPot9D2v6svN5+sAH+4kjUM= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= @@ -262,9 +256,6 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuy github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/andybalholm/brotli v1.0.0/go.mod h1:loMXtMfwqflxFJPmdbJO0a3KNoPuLBgiu3qAvBg8x/Y= -github.com/andybalholm/brotli v1.0.5 h1:8uQZIdzKmjc/iuPu7O2ioW48L81FgatrcpfFmiq/cCs= -github.com/andybalholm/brotli v1.0.5/go.mod h1:fO7iG3H7G2nSZ7m0zPUDn85XEX2GTukHGRSepvi9Eig= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= github.com/apache/thrift v0.12.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= github.com/apache/thrift v0.13.0/go.mod h1:cp2SuWMxlEZw2r+iP2GNCdIi4C1qmUzdZFSVb+bacwQ= @@ -297,10 +288,6 @@ github.com/boljen/go-bitmap v0.0.0-20151001105940-23cd2fb0ce7d h1:zsO4lp+bjv5XvP github.com/boljen/go-bitmap v0.0.0-20151001105940-23cd2fb0ce7d/go.mod h1:f1iKL6ZhUWvbk7PdWVmOaak10o86cqMUYEmn1CZNGEI= github.com/btcsuite/btcd v0.20.1-beta/go.mod h1:wVuoA8VJLEcwgqHBwHmzLRazpKxTv13Px/pDuV7OomQ= github.com/btcsuite/btcd v0.22.0-beta.0.20220111032746-97732e52810c/go.mod h1:tjmYdS6MLJ5/s0Fj4DbLgSbDHbEqLJrtnHecBFkdz5M= -github.com/btcsuite/btcd v0.22.0-beta.0.20220204213055-eaf0459ff879/go.mod h1:osu7EoKiL36UThEgzYPqdRaxeo0NU8VoXqgcnwpey0g= -github.com/btcsuite/btcd v0.22.0-beta.0.20220207191057-4dc4ff7963b4/go.mod h1:7alexyj/lHlOtr2PJK7L/+HDJZpcGDn/pAU98r7DY08= -github.com/btcsuite/btcd v0.23.1/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= -github.com/btcsuite/btcd v0.23.3/go.mod h1:0QJIIN1wwIXF/3G/m87gIwGniDMDQqjVn4SZgnFpsYY= github.com/btcsuite/btcd v0.23.5-0.20231215221805-96c9fd8078fd/go.mod h1:nm3Bko6zh6bWP60UxwoT5LzdGJsQJaPo6HjduXq9p6A= github.com/btcsuite/btcd v0.24.2 h1:aLmxPguqxza+4ag8R1I2nnJjSu2iFn/kqtHTIImswcY= github.com/btcsuite/btcd v0.24.2/go.mod h1:5C8ChTkl5ejr3WHj8tkQSCmydiMEPB0ZhQhehpq7Dgg= @@ -312,8 +299,6 @@ github.com/btcsuite/btcd/btcutil v1.0.0/go.mod h1:Uoxwv0pqYWhD//tfTiipkxNfdhG9Ur github.com/btcsuite/btcd/btcutil v1.1.0/go.mod h1:5OapHB7A2hBBWLm48mmw4MOHNJCcUBTwmWH/0Jn8VHE= github.com/btcsuite/btcd/btcutil v1.1.5 h1:+wER79R5670vs/ZusMTF1yTcRYE5GUsFbdjdisflzM8= github.com/btcsuite/btcd/btcutil v1.1.5/go.mod h1:PSZZ4UitpLBWzxGd5VGOrLnmOjtPP/a6HaFo12zMs00= -github.com/btcsuite/btcd/btcutil/psbt v1.1.8 h1:4voqtT8UppT7nmKQkXV+T9K8UyQjKOn2z/ycpmJK8wg= -github.com/btcsuite/btcd/btcutil/psbt v1.1.8/go.mod h1:kA6FLH/JfUx++j9pYU0pyu+Z8XGBQuuTmuKYUf6q7/U= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.0/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1/go.mod h1:7SFka0XMvUgj3hfZtydOrQY2mwhPclbT2snogU7SQQc= github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0 h1:59Kx4K6lzOW5w6nFlA0v5+lk/6sjybR934QNHSJZPTQ= @@ -321,28 +306,12 @@ github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0/go.mod h1:7SFka0XMvUgj3hfZtyd github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f h1:bAs4lUbRJpnnkd9VhRV3jjAVU7DJVjMaK+IsvSeZvFo= github.com/btcsuite/btclog v0.0.0-20170628155309-84c8d2346e9f/go.mod h1:TdznJufoqS23FtqVCzL0ZqgP5MqXbb4fg/WgDys70nA= github.com/btcsuite/btcutil v0.0.0-20190425235716-9e5f4b9a998d/go.mod h1:+5NJ2+qvTyV9exUAL/rxXi3DcLg2Ts+ymUAY5y4NvMg= -github.com/btcsuite/btcwallet v0.16.10-0.20230621165747-9c21f464ce13 h1:7i0CzK+PP4+Dth9ia/eIBFRw8+K6MT8MfoFqBH43Xts= -github.com/btcsuite/btcwallet v0.16.10-0.20230621165747-9c21f464ce13/go.mod h1:Hl4PP/tSNcgN6himfx/020mYSa19a1qkqTuqQBUU97w= -github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4 h1:poyHFf7+5+RdxNp5r2T6IBRD7RyraUsYARYbp/7t4D8= -github.com/btcsuite/btcwallet/wallet/txauthor v1.3.4/go.mod h1:GETGDQuyq+VFfH1S/+/7slLM/9aNa4l7P4ejX6dJfb0= -github.com/btcsuite/btcwallet/wallet/txrules v1.2.0 h1:BtEN5Empw62/RVnZ0VcJaVtVlBijnLlJY+dwjAye2Bg= -github.com/btcsuite/btcwallet/wallet/txrules v1.2.0/go.mod h1:AtkqiL7ccKWxuLYtZm8Bu8G6q82w4yIZdgq6riy60z0= -github.com/btcsuite/btcwallet/wallet/txsizes v1.2.3 h1:PszOub7iXVYbtGybym5TGCp9Dv1h1iX4rIC3HICZGLg= -github.com/btcsuite/btcwallet/wallet/txsizes v1.2.3/go.mod h1:q08Rms52VyWyXcp5zDc4tdFRKkFgNsMQrv3/LvE1448= -github.com/btcsuite/btcwallet/walletdb v1.3.5/go.mod h1:oJDxAEUHVtnmIIBaa22wSBPTVcs6hUp5NKWmI8xDwwU= -github.com/btcsuite/btcwallet/walletdb v1.4.0 h1:/C5JRF+dTuE2CNMCO/or5N8epsrhmSM4710uBQoYPTQ= -github.com/btcsuite/btcwallet/walletdb v1.4.0/go.mod h1:oJDxAEUHVtnmIIBaa22wSBPTVcs6hUp5NKWmI8xDwwU= -github.com/btcsuite/btcwallet/wtxmgr v1.5.0 h1:WO0KyN4l6H3JWnlFxfGR7r3gDnlGT7W2cL8vl6av4SU= -github.com/btcsuite/btcwallet/wtxmgr v1.5.0/go.mod h1:TQVDhFxseiGtZwEPvLgtfyxuNUDsIdaJdshvWzR0HJ4= -github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd h1:R/opQEbFEy9JGkIguV40SvRY1uliPX8ifOvi6ICsFCw= github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd/go.mod h1:HHNXQzUsZCxOoE+CPiyCTO6x34Zs86zZUiwtpXoGdtg= github.com/btcsuite/goleveldb v0.0.0-20160330041536-7834afc9e8cd/go.mod h1:F+uVaaLLH7j4eDXPRvw78tMflu7Ie2bzYOH4Y8rRKBY= github.com/btcsuite/goleveldb v1.0.0/go.mod h1:QiK9vBlgftBg6rWQIj6wFzbPfRjiykIEhBH4obrXJ/I= github.com/btcsuite/snappy-go v0.0.0-20151229074030-0bdef8d06723/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= github.com/btcsuite/snappy-go v1.0.0/go.mod h1:8woku9dyThutzjeg+3xrA5iCpBRH8XEEg3lh6TiUghc= -github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792 h1:R8vQdOQdZ9Y3SkEwmHoWBmX1DNXhXZqlTpq6s4tyJGc= github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792/go.mod h1:ghJtEyQwv5/p4Mg4C0fgbePVuGr935/5ddU9Z3TmDRY= -github.com/btcsuite/winsvc v1.0.0 h1:J9B4L7e3oqhXOcm+2IuNApwzQec85lE+QaikUcCs+dk= github.com/btcsuite/winsvc v1.0.0/go.mod h1:jsenWakMcC0zFBFurPLEAyrnc/teJEM1O46fmI40EZs= github.com/bufbuild/protocompile v0.6.0 h1:Uu7WiSQ6Yj9DbkdnOe7U4mNKp58y9WDMKDn28/ZlunY= github.com/bufbuild/protocompile v0.6.0/go.mod h1:YNP35qEYoYGme7QMtz5SBCoN4kL4g12jTtjuzRNdjpE= @@ -385,8 +354,6 @@ github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa h1:jQCWAUqqlij9Pgj2i/PB79y4KOPYVyFYdROxgaCwdTQ= github.com/cncf/xds/go v0.0.0-20231128003011-0fa0005c9caa/go.mod h1:x/1Gn8zydmfq8dk6e9PdstVsDgu9RuyIIJqAaF//0IM= -github.com/cockroachdb/apd v1.1.0 h1:3LFP3629v+1aKXU5Q37mxmRxX/pIu1nijXydLShEq5I= -github.com/cockroachdb/apd v1.1.0/go.mod h1:8Sl8LxpKi29FqWXR16WEFZRNSz3SoPzUzeMeY4+DwBQ= github.com/cockroachdb/apd/v2 v2.0.2 h1:weh8u7Cneje73dDh+2tEVLUvyBc89iwepWCD8b8034E= github.com/cockroachdb/apd/v2 v2.0.2/go.mod h1:DDxRlzC2lo3/vSlmSoS7JkqbbrARPuFOGr0B9pvN3Gw= github.com/cockroachdb/datadriven v0.0.0-20190809214429-80d97fb3cbaa/go.mod h1:zn76sxSg3SzpJ0PPJaLDCu+Bu0Lg3sKTORVIj19EIF8= @@ -413,13 +380,8 @@ github.com/containerd/continuity v0.3.0/go.mod h1:wJEAIwKOm/pBZuBd0JmeTvnLquTB1A github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE= github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk= github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/coreos/go-semver v0.3.0 h1:wkHLiw0WNATZnSG7epLsujiMCgPAc9xhjJ4tgnAxmfM= -github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= github.com/coreos/go-systemd v0.0.0-20180511133405-39ca1b05acc7/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= -github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4= github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= -github.com/coreos/go-systemd/v22 v22.5.0 h1:RrqgGjYQKalulkV8NGVIfkXQf6YYmOyiJKk8iXXhfZs= github.com/coreos/go-systemd/v22 v22.5.0/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= github.com/coreos/pkg v0.0.0-20160727233714-3ac0863d7acf/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA= github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk= @@ -470,7 +432,6 @@ github.com/decred/dcrd/crypto/blake256 v1.0.1/go.mod h1:2OfgNZ5wDpcsFmHmCK5gZTPc github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeCxkaw7y45JueMRL4DIyJDKs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 h1:8UrgZ3GkP4i/CLijOJx79Yu+etlyjdBU4sfcs2WYQMs= github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0/go.mod h1:v57UDF4pDQJcEfFUCRop3lJL149eHGSe9Jvczhzjo/0= -github.com/decred/dcrd/lru v1.0.0 h1:Kbsb1SFDsIlaupWPwsPp+dkxiBY1frcS07PCPgotKz8= github.com/decred/dcrd/lru v1.0.0/go.mod h1:mxKOwFd7lFjN2GZYsiz/ecgqR6kkYAl+0pz0tEMk218= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f h1:U5y3Y5UE0w7amNe7Z5G/twsBW0KEalRQXZzf8ufSh9I= github.com/desertbit/timer v0.0.0-20180107155436-c41aec40b27f/go.mod h1:xH/i4TFMt8koVQZ6WFms69WAsDWr2XsYL3Hkl7jkoLE= @@ -494,9 +455,6 @@ github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5Xh github.com/docker/go-units v0.4.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= github.com/docker/go-units v0.5.0 h1:69rxXcBk27SvSaaxTtLh/8llcHD8vYHT7WSdRZ/jvr4= github.com/docker/go-units v0.5.0/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk= -github.com/dsnet/compress v0.0.1 h1:PlZu0n3Tuv04TzpfPbrnI0HW/YwodEXDS+oPKahKF0Q= -github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= -github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= github.com/dustin/go-humanize v0.0.0-20171111073723-bb3d318650d4/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.0/go.mod h1:HtrtbFcZ19U5GC7JDqmcUSB87Iq5E25KnS6fMYU6eOk= github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY= @@ -528,8 +486,6 @@ github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= github.com/felixge/httpsnoop v1.0.4 h1:NFTV2Zj1bL4mc9sqWACXbQFVBBg2W3GPvqp8/ESS2Wg= github.com/felixge/httpsnoop v1.0.4/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= -github.com/fergusstrange/embedded-postgres v1.10.0 h1:YnwF6xAQYmKLAXXrrRx4rHDLih47YJwVPvg8jeKfdNg= -github.com/fergusstrange/embedded-postgres v1.10.0/go.mod h1:a008U8/Rws5FtIOTGYDYa7beVWsT3qVKyqExqYYjL+c= github.com/fortytw2/leaktest v1.3.0 h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw= github.com/fortytw2/leaktest v1.3.0/go.mod h1:jDsjWgpAGjm2CA7WthBh/CdZYEPF31XHquHwclZch5g= github.com/franela/goblin v0.0.0-20200105215937-c9ffbefa60db/go.mod h1:7dvUGVsVBjqR7JHJk0brhHOZYGmfBYOrK0ZhYMEtBr4= @@ -604,9 +560,6 @@ github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+ github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= github.com/godbus/dbus/v5 v5.0.6/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= -github.com/gofrs/uuid v4.4.0+incompatible h1:3qXRTX8/NbyulANqlc0lchS1gqAVxRgsuW1YrTJupqA= -github.com/gofrs/uuid v4.4.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM= github.com/gogo/googleapis v1.1.0/go.mod h1:gf4bu3Q80BeJ6H1S1vYPm8/ELATdvryBaNFGgqEef3s= github.com/gogo/googleapis v1.4.1-0.20201022092350-68b0159b7869/go.mod h1:5YRNX2z1oM5gXdAkurHa942MDgEJyk02w4OecKY87+c= github.com/gogo/googleapis v1.4.1 h1:1Yx4Myt7BxzvUr5ldGSbwYiZG6t9wGBZ+8/fX3Wvtq0= @@ -617,8 +570,6 @@ github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zV github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o= github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q= github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= -github.com/golang-jwt/jwt/v4 v4.4.2 h1:rcc4lwaZgFMCZ5jxF9ABolDcIHdBytAFgqFPbSJQAYs= -github.com/golang-jwt/jwt/v4 v4.4.2/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68= github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w= @@ -659,7 +610,6 @@ github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiu github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= -github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.3/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= github.com/golang/snappy v0.0.5-0.20220116011046-fa5810519dcb h1:PBC98N2aIaM3XXiurYmW7fx4GZkL8feAMVq7nEjURHk= @@ -713,8 +663,6 @@ github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLe github.com/google/pprof v0.0.0-20210601050228-01bbb1931b22/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210609004039-a478d1d731e9/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= -github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10 h1:CqYfpuYIjnlNxM3msdyPRKabhXZWbKjf3Q8BWROFBso= -github.com/google/pprof v0.0.0-20230228050547-1710fef4ab10/go.mod h1:79YE0hCXdHag9sBkw2o+N/YnZtTkXi0UT9Nnixa5eYk= github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= github.com/google/s2a-go v0.1.7 h1:60BLSyTrOV4/haCDW4zb1guZItoSq8foHCXrAnjBo/o= github.com/google/s2a-go v0.1.7/go.mod h1:50CgR4k1jNlWBu4UfS4AcfhVe1r6pdZPygJ3R8F0Qdw= @@ -759,7 +707,6 @@ github.com/grpc-ecosystem/go-grpc-middleware v1.0.1-0.20190118093823-f849b5445de github.com/grpc-ecosystem/go-grpc-middleware v1.2.2/go.mod h1:EaizFBKfUKtMIF5iaDEhniwNedqGo9FuLFzppDr3uwI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0 h1:UH//fgunKIs4JdUbpDl1VZCDaL56wXCB/5+wF6uHfaI= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= -github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.9.5/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= @@ -830,53 +777,7 @@ github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANyt github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8= github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/influxdata/influxdb1-client v0.0.0-20191209144304-8bf82d3c094d/go.mod h1:qj24IKcXYK6Iy9ceXlo3Tc+vtHo9lIhSX5JddghvEPo= -github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo= -github.com/jackc/chunkreader/v2 v2.0.0/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk= -github.com/jackc/chunkreader/v2 v2.0.1 h1:i+RDz65UE+mmpjTfyz0MoVTnzeYxroil2G82ki7MGG8= -github.com/jackc/chunkreader/v2 v2.0.1/go.mod h1:odVSm741yZoC3dpHEUXIqA9tQRhFrgOHwnPIn9lDKlk= -github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3/go.mod h1:jkELnwuX+w9qN5YIfX0fl88Ehu4XC3keFuOJJk9pcnA= -github.com/jackc/pgconn v0.0.0-20190824142844-760dd75542eb/go.mod h1:lLjNuW/+OfW9/pnVKPazfWOgNfH2aPem8YQ7ilXGvJE= -github.com/jackc/pgconn v0.0.0-20190831204454-2fabfa3c18b7/go.mod h1:ZJKsE/KZfsUgOEh9hBm+xYTstcNHg7UPMVJqRfQxq4s= -github.com/jackc/pgconn v1.8.0/go.mod h1:1C2Pb36bGIP9QHGBYCjnyhqu7Rv3sGshaQUvmfGIB/o= -github.com/jackc/pgconn v1.9.0/go.mod h1:YctiPyvzfU11JFxoXokUOOKQXQmDMoJL9vJzHH8/2JY= -github.com/jackc/pgconn v1.9.1-0.20210724152538-d89c8390a530/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI= -github.com/jackc/pgconn v1.10.0 h1:4EYhlDVEMsJ30nNj0mmgwIUXoq7e9sMJrVC2ED6QlCU= -github.com/jackc/pgconn v1.10.0/go.mod h1:4z2w8XhRbP1hYxkpTuBjTS3ne3J48K83+u0zoyvg2pI= -github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE= -github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8= -github.com/jackc/pgmock v0.0.0-20190831213851-13a1b77aafa2/go.mod h1:fGZlG77KXmcq05nJLRkk0+p82V8B8Dw8KN2/V9c/OAE= -github.com/jackc/pgmock v0.0.0-20201204152224-4fe30f7445fd/go.mod h1:hrBW0Enj2AZTNpt/7Y5rr2xe/9Mn757Wtb2xeBzPv2c= -github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65 h1:DadwsjnMwFjfWc9y5Wi/+Zz7xoE5ALHsRQlOctkOiHc= -github.com/jackc/pgmock v0.0.0-20210724152146-4ad1a8207f65/go.mod h1:5R2h2EEX+qri8jOWMbJCtaPWkrrNc7OHwsp2TCqp7ak= -github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM= -github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg= -github.com/jackc/pgproto3 v1.1.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78= -github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA= -github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190609003834-432c2951c711/go.mod h1:uH0AWtUmuShn0bcesswc4aBTWGvw0cAxIJp+6OB//Wg= -github.com/jackc/pgproto3/v2 v2.0.0-rc3/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM= -github.com/jackc/pgproto3/v2 v2.0.0-rc3.0.20190831210041-4c03ce451f29/go.mod h1:ryONWYqW6dqSg1Lw6vXNMXoBJhpzvWKnT95C46ckYeM= -github.com/jackc/pgproto3/v2 v2.0.6/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= -github.com/jackc/pgproto3/v2 v2.1.1 h1:7PQ/4gLoqnl87ZxL7xjO0DR5gYuviDCZxQJsUlFW1eI= -github.com/jackc/pgproto3/v2 v2.1.1/go.mod h1:WfJCnwN3HIg9Ish/j3sgWXnAfK8A9Y0bwXYU5xKaEdA= -github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b h1:C8S2+VttkHFdOOCXJe+YGfa4vHYwlt4Zx+IVXQ97jYg= -github.com/jackc/pgservicefile v0.0.0-20200714003250-2b9c44734f2b/go.mod h1:vsD4gTJCa9TptPL8sPkXrLZ+hDuNrZCnj29CQpr4X1E= -github.com/jackc/pgtype v0.0.0-20190421001408-4ed0de4755e0/go.mod h1:hdSHsc1V01CGwFsrv11mJRHWJ6aifDLfdV3aVjFF0zg= -github.com/jackc/pgtype v0.0.0-20190824184912-ab885b375b90/go.mod h1:KcahbBH1nCMSo2DXpzsoWOAfFkdEtEJpPbVLq8eE+mc= -github.com/jackc/pgtype v0.0.0-20190828014616-a8802b16cc59/go.mod h1:MWlu30kVJrUS8lot6TQqcg7mtthZ9T0EoIBFiJcmcyw= -github.com/jackc/pgtype v1.8.1-0.20210724151600-32e20a603178/go.mod h1:C516IlIV9NKqfsMCXTdChteoXmwgUceqaLfjg2e3NlM= -github.com/jackc/pgtype v1.8.1 h1:9k0IXtdJXHJbyAWQgbWr1lU+MEhPXZz6RIXxfR5oxXs= -github.com/jackc/pgtype v1.8.1/go.mod h1:LUMuVrfsFfdKGLw+AFFVv6KtHOFMwRgDDzBt76IqCA4= -github.com/jackc/pgx/v4 v4.0.0-20190420224344-cc3461e65d96/go.mod h1:mdxmSJJuR08CZQyj1PVQBHy9XOp5p8/SHH6a0psbY9Y= -github.com/jackc/pgx/v4 v4.0.0-20190421002000-1b8f0016e912/go.mod h1:no/Y67Jkk/9WuGR0JG/JseM9irFbnEPbuWV2EELPNuM= -github.com/jackc/pgx/v4 v4.0.0-pre1.0.20190824185557-6972a5742186/go.mod h1:X+GQnOEnf1dqHGpw7JmHqHc1NxDoalibchSk9/RWuDc= -github.com/jackc/pgx/v4 v4.12.1-0.20210724153913-640aa07df17c/go.mod h1:1QD0+tgSXP7iUjYm9C1NxKhny7lq6ee99u/z+IHFcgs= -github.com/jackc/pgx/v4 v4.13.0 h1:JCjhT5vmhMAf/YwBHLvrBn4OGdIQBiFG6ym8Zmdx570= -github.com/jackc/pgx/v4 v4.13.0/go.mod h1:9P4X524sErlaxj0XSGZk7s+LD0eOyu1ZDUrrpznYDF0= -github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= -github.com/jackc/puddle v0.0.0-20190608224051-11cab39313c9/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= -github.com/jackc/puddle v1.1.3/go.mod h1:m4B5Dj62Y0fbyuIc15OsIqK0+JU8nkqQjsgx7dvjSWk= github.com/jessevdk/go-flags v0.0.0-20141203071132-1679536dcc89/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= -github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA= github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI= github.com/jhump/protoreflect v1.15.3 h1:6SFRuqU45u9hIZPJAoZ8c28T3nK64BNdp9w6jFonzls= github.com/jhump/protoreflect v1.15.3/go.mod h1:4ORHmSBmlCW8fh3xHmJMGyul1zNqZK4Elxc8qKP+p1k= @@ -890,10 +791,7 @@ github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfC github.com/jmhodges/levigo v1.0.0 h1:q5EC36kV79HWeTBWsod3mG11EgStG3qArTKcvlksN1U= github.com/jmhodges/levigo v1.0.0/go.mod h1:Q6Qx+uH3RAqyK4rFQroq9RL7mdkABMcfhEI+nNuzMJQ= github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo= -github.com/jonboulle/clockwork v0.2.2 h1:UOGuzwb1PwsrDAObMuhUnj0p5ULPj8V/xJ7Kx9qUBdQ= -github.com/jonboulle/clockwork v0.2.2/go.mod h1:Pkfl5aHPm1nk2H9h0bjmnJD/BcgbGXUBGnn1kMkgxc8= github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4= -github.com/jrick/logrotate v1.0.0 h1:lQ1bL/n9mBNeIXoTUoYRlK4dHuNJVofX9oWqBtPnSzI= github.com/jrick/logrotate v1.0.0/go.mod h1:LNinyqDIJnpAur+b8yyulnQw/wDuN1+BYKlTRt3OuAQ= github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU= github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= @@ -907,8 +805,6 @@ github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/X github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w= github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs= -github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8= github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q= github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00= github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= @@ -916,20 +812,13 @@ github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+o github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23/go.mod h1:J+Gs4SYgM6CZQHDETBtE9HaSEkGmuNXF86RwHhHUvq4= github.com/kkdai/bstream v1.0.0 h1:Se5gHwgp2VT2uHfDrkbbgbgEvV9cimLELwrPJctSjg8= github.com/kkdai/bstream v1.0.0/go.mod h1:FDnDOHt5Yx4p3FaHcioFT0QjDOtgUpvjeZqAs+NVZZA= -github.com/klauspost/compress v1.4.1/go.mod h1:RyIbtBH6LamlWaDj8nUwkbUhJ87Yi3uG0guNDohfE1A= github.com/klauspost/compress v1.10.3/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= -github.com/klauspost/compress v1.10.10/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.11.7/go.mod h1:aoV0uJVorq1K+umq18yTdKaF57EivdYsUV+/s2qKfXs= github.com/klauspost/compress v1.12.3/go.mod h1:8dP1Hq4DHOhN9w426knH3Rhby4rFm6D8eO+e+Dq5Gzg= github.com/klauspost/compress v1.15.11/go.mod h1:QPwzmACJjUTFsnSHH934V6woptycfrDDJnH7hvFVbGM= github.com/klauspost/compress v1.17.7 h1:ehO88t2UGzQK66LMdE8tibEd1ErmzZjNEqWkjLAKQQg= github.com/klauspost/compress v1.17.7/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ibi7bDH9ttBbw= -github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= -github.com/klauspost/pgzip v1.2.4/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= -github.com/klauspost/pgzip v1.2.5 h1:qnWYvvKqedOF2ulHpMG72XQol4ILEJ8k2wwRl/Km8oE= -github.com/klauspost/pgzip v1.2.5/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= -github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ= github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= @@ -937,47 +826,16 @@ github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfn github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII= github.com/leodido/go-urn v1.2.1 h1:BqpAaACuzVSgi/VLzGZIobT2z4v53pjosyNd9Yv6n/w= github.com/leodido/go-urn v1.2.1/go.mod h1:zt4jvISO2HfUBqxjfIshjdMTYS56ZS/qv49ictyFfxY= -github.com/lib/pq v1.0.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.1.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.2.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo= -github.com/lib/pq v1.8.0/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= -github.com/lib/pq v1.10.2/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/lib/pq v1.10.7 h1:p7ZhMD+KsSRozJr34udlUrhboJwWAgCg34+/ZZNvZZw= github.com/lib/pq v1.10.7/go.mod h1:AlVN5x4E4T544tWzH6hKfbfQvm3HdbOxrmggDNAPY9o= github.com/libp2p/go-buffer-pool v0.1.0 h1:oK4mSFcQz7cTQIfqbe4MIj9gLW+mnanjyFtc6cdF0Y8= github.com/libp2p/go-buffer-pool v0.1.0/go.mod h1:N+vh8gMqimBzdKkSMVuydVDq+UV5QTWy5HSiZacSbPg= -github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf h1:HZKvJUHlcXI/f/O0Avg7t8sqkPo78HFzjmeYFl6DPnc= -github.com/lightninglabs/gozmq v0.0.0-20191113021534-d20a764486bf/go.mod h1:vxmQPeIQxPf6Jf9rM8R+B4rKBqLA2AjttNxkFBL2Plk= -github.com/lightninglabs/neutrino v0.15.0 h1:yr3uz36fLAq8hyM0TRUVlef1TRNoWAqpmmNlVtKUDtI= -github.com/lightninglabs/neutrino v0.15.0/go.mod h1:pmjwElN/091TErtSE9Vd5W4hpxoG2/+xlb+HoPm9Gug= -github.com/lightninglabs/neutrino/cache v1.1.1 h1:TllWOSlkABhpgbWJfzsrdUaDH2fBy/54VSIB4vVqV8M= -github.com/lightninglabs/neutrino/cache v1.1.1/go.mod h1:XJNcgdOw1LQnanGjw8Vj44CvguYA25IMKjWFZczwZuo= -github.com/lightningnetwork/lnd v0.16.4-beta.rc1 h1:L8ktsv1lM5esVtiOlEtOBqU1dCoDckbm0FkcketBskQ= -github.com/lightningnetwork/lnd v0.16.4-beta.rc1/go.mod h1:sK9F98TpFuO/fjLCX4jEjc65qr2GZGs8IquVde1N46I= -github.com/lightningnetwork/lnd/clock v1.0.1/go.mod h1:KnQudQ6w0IAMZi1SgvecLZQZ43ra2vpDNj7H/aasemg= -github.com/lightningnetwork/lnd/clock v1.1.0 h1:/yfVAwtPmdx45aQBoXQImeY7sOIEr7IXlImRMBOZ7GQ= -github.com/lightningnetwork/lnd/clock v1.1.0/go.mod h1:KnQudQ6w0IAMZi1SgvecLZQZ43ra2vpDNj7H/aasemg= -github.com/lightningnetwork/lnd/healthcheck v1.2.2 h1:im+qcpgSuteqRCGeorT9yqVXuLrS6A7/acYzGgarMS4= -github.com/lightningnetwork/lnd/healthcheck v1.2.2/go.mod h1:IWY0GChlarRbXFkFDdE4WY5POYJabe/7/H1iCZt4ZKs= -github.com/lightningnetwork/lnd/kvdb v1.4.1 h1:l/nLBPLbdvP/lajMtrFMLzAi5OoLTH3+zUU6SwoEEv8= -github.com/lightningnetwork/lnd/kvdb v1.4.1/go.mod h1:f+F7Da8HTa8MePFsdWvusGRdcmWTgSWykGsVyC02Z5M= -github.com/lightningnetwork/lnd/queue v1.1.0 h1:YpCJjlIvVxN/R7ww2aNiY8ex7U2fucZDLJ67tI3HFx8= -github.com/lightningnetwork/lnd/queue v1.1.0/go.mod h1:YTkTVZCxz8tAYreH27EO3s8572ODumWrNdYW2E/YKxg= -github.com/lightningnetwork/lnd/ticker v1.0.0/go.mod h1:iaLXJiVgI1sPANIF2qYYUJXjoksPNvGNYowB8aRbpX0= -github.com/lightningnetwork/lnd/ticker v1.1.0 h1:ShoBiRP3pIxZHaETndfQ5kEe+S4NdAY1hiX7YbZ4QE4= -github.com/lightningnetwork/lnd/ticker v1.1.0/go.mod h1:ubqbSVCn6RlE0LazXuBr7/Zi6QT0uQo++OgIRBxQUrk= -github.com/lightningnetwork/lnd/tlv v1.1.0 h1:gsyte75HVuA/X59O+BhaISHM6OobZ0YesPbdu+xG1h0= -github.com/lightningnetwork/lnd/tlv v1.1.0/go.mod h1:0+JKp4un47MG1lnj6jKa8woNeB1X7w3yF4MZB1NHiiE= -github.com/lightningnetwork/lnd/tor v1.0.0/go.mod h1:RDtaAdwfAm+ONuPYwUhNIH1RAvKPv+75lHPOegUcz64= -github.com/lightningnetwork/lnd/tor v1.1.0 h1:iXO7fSzjxTI+p88KmtpbuyuRJeNfgtpl9QeaAliILXE= -github.com/lightningnetwork/lnd/tor v1.1.0/go.mod h1:RDtaAdwfAm+ONuPYwUhNIH1RAvKPv+75lHPOegUcz64= github.com/lightstep/lightstep-tracer-common/golang/gogo v0.0.0-20190605223551-bc2310a04743/go.mod h1:qklhhLq1aX+mtWk9cPHPzaBjWImj5ULL6C7HFJtXQMM= github.com/lightstep/lightstep-tracer-go v0.18.1/go.mod h1:jlF1pusYV4pidLvZ+XD0UBX0ZE6WURAspgAczcDHrL4= github.com/linxGnu/grocksdb v1.8.14 h1:HTgyYalNwBSG/1qCQUIott44wU5b2Y9Kr3z7SK5OfGQ= @@ -989,16 +847,12 @@ github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3v github.com/manifoldco/promptui v0.9.0 h1:3V4HzJk1TtXW1MTZMP7mdlwbBpIinw3HztaIlYthEiA= github.com/manifoldco/promptui v0.9.0/go.mod h1:ka04sppxSGFAtxX0qhlYQjISsg9mR4GWtQEhdbn6Pgg= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= -github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ= -github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= -github.com/mattn/go-isatty v0.0.5/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= -github.com/mattn/go-isatty v0.0.7/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s= github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= @@ -1007,14 +861,8 @@ github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWE github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= github.com/mattn/go-runewidth v0.0.2/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU= -github.com/mattn/go-sqlite3 v1.14.15 h1:vfoHhTN1af61xCRSWzFIWzx2YskyMTwHLrExkBOjvxI= -github.com/mattn/go-sqlite3 v1.14.15/go.mod h1:2eHXhiwb8IkHr+BDWZGa96P6+rkvnG63S2DGjv9HUNg= github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0= -github.com/mholt/archiver/v3 v3.5.0 h1:nE8gZIrw66cu4osS/U7UW7YDuGMHssxKutU8IfWxwWE= -github.com/mholt/archiver/v3 v3.5.0/go.mod h1:qqTTPUK/HZPFgFQ/TJ3BzvTpF/dPtFVJXdQbCmeMxwc= github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= -github.com/miekg/dns v1.1.43 h1:JKfpVSCB84vrAmHzyrsxB5NAr5kLoMXZArPSw7Qlgyg= -github.com/miekg/dns v1.1.43/go.mod h1:+evo5L0630/F6ca/Z9+GAqzhjGyn8/c+TBaOyfEl0V4= github.com/minio/highwayhash v1.0.2 h1:Aak5U0nElisjDCfPSG79Tgzkn2gl66NxOMspRrKnA/g= github.com/minio/highwayhash v1.0.2/go.mod h1:BQskDq+xkJ12lmlUUi7U0M5Swg3EWR+dLTk+kldvVxY= github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= @@ -1055,9 +903,6 @@ github.com/nats-io/nkeys v0.1.0/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxzi github.com/nats-io/nkeys v0.1.3/go.mod h1:xpnFELMwJABBLVhffcfd1MZx6VsNRFpEugbxziKVo7w= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/nwaples/rardecode v1.1.0/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= -github.com/nwaples/rardecode v1.1.2 h1:Cj0yZY6T1Zx1R7AhTbyGSALm44/Mmq+BAPc4B/p/d3M= -github.com/nwaples/rardecode v1.1.2/go.mod h1:5DzqNKiOdpKKBH87u8VlvAnPZMXcGRhxWkRpHbbfGS0= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= @@ -1119,9 +964,6 @@ github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67 h1:jik8PHtAIsPlCR github.com/petermattis/goid v0.0.0-20231207134359-e60b3f734c67/go.mod h1:pxMtw7cyUw6B2bRH0ZBANSPg+AoSud1I1iyJHI69jH4= github.com/pierrec/lz4 v1.0.2-0.20190131084431-473cd7ce01a1/go.mod h1:3/3N9NVKO0jef7pBehbT1qWhCMrIgbYNnFAZCqQ5LRc= github.com/pierrec/lz4 v2.0.5+incompatible/go.mod h1:pdkljMzZIN41W+lC3N2tnIh5sFi+IEE17M5jbnwPHcY= -github.com/pierrec/lz4/v4 v4.0.3/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= -github.com/pierrec/lz4/v4 v4.1.8 h1:ieHkV+i2BRzngO4Wd/3HGowuZStgq6QkPsD1eolNAO4= -github.com/pierrec/lz4/v4 v4.1.8/go.mod h1:gZWDp/Ze/IJXGXf23ltt2EXimqmTUXEy0GFuRQyBid4= github.com/pingcap/errors v0.11.4 h1:lFuQV/oaUMGcD2tqt+01ROSmJs75VG1ToEOkZIZ4nE4= github.com/pingcap/errors v0.11.4/go.mod h1:Oi8TUi2kEtXXLMJk9l1cGmz20kV3TaQ0usTwv5KuLY8= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= @@ -1169,8 +1011,6 @@ github.com/prometheus/procfs v0.13.0/go.mod h1:cd4PFCR54QLnGKPaKGA6l+cfuNXtht43Z github.com/rcrowley/go-metrics v0.0.0-20181016184325-3113b8401b8a/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475 h1:N/ElC8H3+5XpJzTSTfLsJV/mx9Q9g7kxmchpfZyxgzM= github.com/rcrowley/go-metrics v0.0.0-20201227073835-cf1acfcdf475/go.mod h1:bCqnVzQkZxMG4s8nGwiZ5l3QUCyqpo9Y+/ZMZ9VjZe4= -github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0 h1:OdAsTTz6OkFY5QxjkYwrChwuRruF69c169dPK26NUlk= -github.com/remyoudompheng/bigfft v0.0.0-20200410134404-eec4a21b6bb0/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo= github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg= github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= @@ -1180,10 +1020,7 @@ github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99 github.com/rs/cors v1.7.0/go.mod h1:gFx+x8UowdsKA9AchylcLynDq+nNFfI8FkUZdN/jGCU= github.com/rs/cors v1.8.3 h1:O+qNyWn7Z+F9M0ILBHgMVPuB1xTOucVd5gtaYyXBpRo= github.com/rs/cors v1.8.3/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= -github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= github.com/rs/xid v1.5.0/go.mod h1:trrq9SKmegXys3aeAKXMUTdJsYXVwGY3RLcfgqegfbg= -github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU= -github.com/rs/zerolog v1.15.0/go.mod h1:xYTKnLHcpfU2225ny5qZjxnj9NvkumZYjJHlAThCjNc= github.com/rs/zerolog v1.32.0 h1:keLypqrlIjaFsbmJOBdB/qvyF8KEtCWHwobLp5l/mQ0= github.com/rs/zerolog v1.32.0/go.mod h1:/7mN4D5sKwJLZQ2b/znpjC3/GQWY/xaDXUM0kKWRHss= github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g= @@ -1197,15 +1034,10 @@ github.com/sagikazarmark/slog-shim v0.1.0/go.mod h1:SrcSrq8aKtyuqEI1uvTDTK1arOWR github.com/samuel/go-zookeeper v0.0.0-20190923202752-2cc03de413da/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E= github.com/sasha-s/go-deadlock v0.3.1 h1:sqv7fDNShgjcaxkO0JNcOAlr8B9+cV5Ey/OB71efZx0= github.com/sasha-s/go-deadlock v0.3.1/go.mod h1:F73l+cr82YSh10GxyRI6qZiCgK64VaZjwesgfQ1/iLM= -github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= github.com/seccomp/libseccomp-golang v0.9.2-0.20220502022130-f33da4d89646/go.mod h1:JA8cRccbGaA1s33RQf7Y1+q9gHmZX1yB/z9WDN1C6fg= -github.com/shopspring/decimal v0.0.0-20180709203117-cd690d0c9e24/go.mod h1:M+9NzErvs504Cn4c5DxATwIqPbtswREoFCre64PpcG4= -github.com/shopspring/decimal v1.2.0 h1:abSATXmQEYyShuxI4/vyW3tV1MrKAJzCZ/0zLUXYbsQ= -github.com/shopspring/decimal v1.2.0/go.mod h1:DKyhrW/HYNuLGql+MJL6WCR6knT2jwCFRcu2hWCYk4o= github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo= -github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q= github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE= github.com/sirupsen/logrus v1.6.0/go.mod h1:7uNnSEd1DgxDLC74fIahvMZmmYsHGZGEOFrfsX/uA88= github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= @@ -1215,8 +1047,6 @@ github.com/sirupsen/logrus v1.9.0/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVs github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM= -github.com/soheilhy/cmux v0.1.5 h1:jjzc5WVemNEDTLwv9tlmemhC73tI08BNOIGwBOo10Js= -github.com/soheilhy/cmux v0.1.5/go.mod h1:T7TcVDs9LWfQgPlPsdngu6I6QIoyIFZDDC6sNE1GqG0= github.com/sony/gobreaker v0.4.1/go.mod h1:ZKptC7FHNvhBz7dN2LGjPVBz2sZJmc0/PkyDJOjmxWY= github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= github.com/sourcegraph/conc v0.3.0/go.mod h1:Sdozi7LEKbFPqYX2/J+iBAM6HpqSLTASQIKqDmF7Mt0= @@ -1246,7 +1076,6 @@ github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271/go.mod h1:AZpEONHx3 github.com/streadway/handy v0.0.0-20190108123426-d5acb3125c2a/go.mod h1:qNTQ5P5JnDBl6z3cMAg/SywNDC5ABu5ApDIw6lUbRmI= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= @@ -1277,8 +1106,6 @@ github.com/tendermint/go-amino v0.16.0/go.mod h1:TQU0M1i/ImAo+tYpZi73AU3V/dKeCoM github.com/tidwall/btree v1.7.0 h1:L1fkJH/AuEh5zBnnBbmTwQ5Lt+bRJ5A8EWecslvo9iI= github.com/tidwall/btree v1.7.0/go.mod h1:twD9XRA5jj9VUQGELzDO4HPQTNJsoWWfYEL+EUQ2cKY= github.com/tmc/grpc-websocket-proxy v0.0.0-20170815181823-89b8d40f7ca8/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= -github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 h1:uruHq4dN7GR16kFc5fp3d1RIYzJW5onx8Ybykw2YQFA= -github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo= github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw= @@ -1286,8 +1113,6 @@ github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljT github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY= github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU= github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= -github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= -github.com/ulikunitz/xz v0.5.7/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8= github.com/ulikunitz/xz v0.5.11/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= @@ -1304,9 +1129,6 @@ github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 h1:EzJWgHo github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415/go.mod h1:GwrjFmJcFw6At/Gs6z4yjiIwzuJ1/+UwLxMQDVQXShQ= github.com/xeipuuv/gojsonschema v1.2.0 h1:LhYJRs+L4fBtjZUfuSZIKGeVu0QRy8e5Xi7D17UxZ74= github.com/xeipuuv/gojsonschema v1.2.0/go.mod h1:anYRn/JVcOK2ZgGU+IjEV4nwlhoK5sQluxsYJ78Id3Y= -github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8 h1:nIPpBwaJSVYIxUFsDv3M8ofmx9yWTog9BfvIu0q41lo= -github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8/go.mod h1:HUYIGzjTL3rfEspMxjDjgmT5uz5wzYJKVo23qUhYTos= -github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8= github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU= github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= @@ -1315,30 +1137,14 @@ github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q= github.com/zondax/hid v0.9.2 h1:WCJFnEDMiqGF64nlZz28E9qLVZ0KSJ7xpc5DLEyma2U= github.com/zondax/hid v0.9.2/go.mod h1:l5wttcP0jwtdLjqjMMWFVEE7d1zO0jvSPA9OPZxWpEM= github.com/zondax/ledger-go v0.14.3 h1:wEpJt2CEcBJ428md/5MgSLsXLBos98sBOyxNmCjfUCw= github.com/zondax/ledger-go v0.14.3/go.mod h1:IKKaoxupuB43g4NxeQmbLXv7T9AlQyie1UpHb342ycI= go.etcd.io/bbolt v1.3.3/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU= -go.etcd.io/bbolt v1.3.5-0.20200615073812-232d8fc87f50/go.mod h1:G5EMThwa9y8QZGBClrRx5EY+Yw9kAhnjy3bSjsnlVTQ= go.etcd.io/bbolt v1.3.8 h1:xs88BrvEv273UsB79e0hcVrlUWmS0a8upikMFhSyAtA= go.etcd.io/bbolt v1.3.8/go.mod h1:N9Mkw9X8x5fupy0IKsmuqVtoGDyxsaDlbk4Rd05IAQw= go.etcd.io/etcd v0.0.0-20191023171146-3cf2f69b5738/go.mod h1:dnLIgRNXwCJa5e+c6mIZCrds/GIG4ncV9HhK5PX7jPg= -go.etcd.io/etcd/api/v3 v3.5.10 h1:szRajuUUbLyppkhs9K6BRtjY37l66XQQmw7oZRANE4k= -go.etcd.io/etcd/api/v3 v3.5.10/go.mod h1:TidfmT4Uycad3NM/o25fG3J07odo4GBB9hoxaodFCtI= -go.etcd.io/etcd/client/pkg/v3 v3.5.10 h1:kfYIdQftBnbAq8pUWFXfpuuxFSKzlmM5cSn76JByiT0= -go.etcd.io/etcd/client/pkg/v3 v3.5.10/go.mod h1:DYivfIviIuQ8+/lCq4vcxuseg2P2XbHygkKwFo9fc8U= -go.etcd.io/etcd/client/v2 v2.305.10 h1:MrmRktzv/XF8CvtQt+P6wLUlURaNpSDJHFZhe//2QE4= -go.etcd.io/etcd/client/v2 v2.305.10/go.mod h1:m3CKZi69HzilhVqtPDcjhSGp+kA1OmbNn0qamH80xjA= -go.etcd.io/etcd/client/v3 v3.5.10 h1:W9TXNZ+oB3MCd/8UjxHTWK5J9Nquw9fQBLJd5ne5/Ao= -go.etcd.io/etcd/client/v3 v3.5.10/go.mod h1:RVeBnDz2PUEZqTpgqwAtUd8nAPf5kjyFyND7P1VkOKc= -go.etcd.io/etcd/pkg/v3 v3.5.7 h1:obOzeVwerFwZ9trMWapU/VjDcYUJb5OfgC1zqEGWO/0= -go.etcd.io/etcd/pkg/v3 v3.5.7/go.mod h1:kcOfWt3Ov9zgYdOiJ/o1Y9zFfLhQjylTgL4Lru8opRo= -go.etcd.io/etcd/raft/v3 v3.5.7 h1:aN79qxLmV3SvIq84aNTliYGmjwsW6NqJSnqmI1HLJKc= -go.etcd.io/etcd/raft/v3 v3.5.7/go.mod h1:TflkAb/8Uy6JFBxcRaH2Fr6Slm9mCPVdI2efzxY96yU= -go.etcd.io/etcd/server/v3 v3.5.7 h1:BTBD8IJUV7YFgsczZMHhMTS67XuA4KpRquL0MFOJGRk= -go.etcd.io/etcd/server/v3 v3.5.7/go.mod h1:gxBgT84issUVBRpZ3XkW1T55NjOb4vZZRI4wVvNhf4A= go.opencensus.io v0.20.1/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.20.2/go.mod h1:6WKK9ahsWS3RSO+PY9ZHZUfv2irvY6gN279GOPZjmmk= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -1354,61 +1160,40 @@ go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.4 go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0/go.mod h1:r9vWsPS/3AQItv3OSlEJ/E4mbrhUbbw18meOjArPtKQ= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0 h1:sv9kVfal0MK0wBMCOGr+HeJm9v803BkJxGrk2au7j08= go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.47.0/go.mod h1:SK2UL73Zy1quvRPonmOmRDiWk1KBV3LyIeeIxcEApWw= -go.opentelemetry.io/otel v1.0.1/go.mod h1:OPEOD4jIT2SlZPMmwT6FqZz2C0ZNdQqiWcoK6M0SNFU= go.opentelemetry.io/otel v1.22.0 h1:xS7Ku+7yTFvDfDraDIJVpw7XPyuHlB9MCiqqX5mcJ6Y= go.opentelemetry.io/otel v1.22.0/go.mod h1:eoV4iAi3Ea8LkAEI9+GFT44O6T/D0GWAVFyZVCC6pMI= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.0.1 h1:ofMbch7i29qIUf7VtF+r0HRF6ac0SBaPSziSsKp7wkk= -go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.0.1/go.mod h1:Kv8liBeVNFkkkbilbgWRpV+wWuu+H5xdOT6HAgd30iw= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.0.1 h1:CFMFNoz+CGprjFAFy+RJFrfEe4GBia3RRm2a4fREvCA= -go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.0.1/go.mod h1:xOvWoTOrQjxjW61xtOmD/WKGRYb/P4NzRo3bs65U6Rk= go.opentelemetry.io/otel/metric v1.22.0 h1:lypMQnGyJYeuYPhOM/bgjbFM6WE44W1/T45er4d8Hhg= go.opentelemetry.io/otel/metric v1.22.0/go.mod h1:evJGjVpZv0mQ5QBRJoBF64yMuOf4xCWdXjK8pzFvliY= -go.opentelemetry.io/otel/sdk v1.0.1/go.mod h1:HrdXne+BiwsOHYYkBE5ysIcv2bvdZstxzmCQhxTcZkI= go.opentelemetry.io/otel/sdk v1.21.0 h1:FTt8qirL1EysG6sTQRZ5TokkU8d0ugCj8htOgThZXQ8= go.opentelemetry.io/otel/sdk v1.21.0/go.mod h1:Nna6Yv7PWTdgJHVRD9hIYywQBRx7pbox6nwBnZIxl/E= -go.opentelemetry.io/otel/trace v1.0.1/go.mod h1:5g4i4fKLaX2BQpSBsxw8YYcgKpMMSW3x7ZTuYBr3sUk= go.opentelemetry.io/otel/trace v1.22.0 h1:Hg6pPujv0XG9QaVbGOBVHunyuLcCC3jN7WEhPx83XD0= go.opentelemetry.io/otel/trace v1.22.0/go.mod h1:RbbHXVqKES9QhzZq/fE5UnOSILqRt40a21sPw2He1xo= go.opentelemetry.io/proto/otlp v0.7.0/go.mod h1:PqfVotwruBrMGOCsRd/89rSnXhoiJIqeYNgFYFoEGnI= -go.opentelemetry.io/proto/otlp v0.9.0 h1:C0g6TWmQYvjKRnljRULLWUVJGy8Uvu0NEL/5frY2/t4= -go.opentelemetry.io/proto/otlp v0.9.0/go.mod h1:1vKfU9rv61e9EVGthD1zNvUbiwPcimSsOPU9brfSHJg= go.uber.org/atomic v1.3.2/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE= go.uber.org/atomic v1.5.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= -go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= go.uber.org/goleak v1.1.10/go.mod h1:8a7PlsEVH3e/a/GLqe5IIrQx6GzcnRmZEufDUTk4A7A= -go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk= -go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo= go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= -go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0= go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= -go.uber.org/zap v1.9.1/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.18.1/go.mod h1:xg/QME4nWcxGxrpdeYfq7UvYrLh66cuVKdrbD1XF/NI= -go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo= -go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so= golang.org/x/crypto v0.0.0-20170930174604-9419663f5a44/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE= golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200728195943-123391ffb6de/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/crypto v0.0.0-20201203163018-be400aefbc4c/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= -golang.org/x/crypto v0.0.0-20210616213533-5ff15b29337e/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= @@ -1494,7 +1279,6 @@ golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81R golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= -golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20201224014010-6772e930b67b/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= @@ -1504,7 +1288,6 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.0.0-20211015210444-4f30a5c0130f/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220325170049-de3da57026de/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= @@ -1573,9 +1356,7 @@ golang.org/x/sys v0.0.0-20181122145206-62eef0e2fa9b/go.mod h1:STP8DvDyc/dI5b8T5h golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190130150945-aca44879d564/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1585,7 +1366,6 @@ golang.org/x/sys v0.0.0-20190606203320-7fc4e5ec1444/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190626221950-04f50cda93cb/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190826190057-c7b8b68b1456/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= @@ -1625,13 +1405,11 @@ golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7w golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210303074136-134d130e1a04/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423185535-09eb48e85fd7/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210514084401-e8d321eab015/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20210603125802-9665404d3644/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -1673,7 +1451,6 @@ golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.12.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -1709,14 +1486,12 @@ golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3 golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= -golang.org/x/tools v0.0.0-20190425163242-31fd60d6bfdc/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20190823170909-c4a336ef6a2f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= @@ -1765,8 +1540,6 @@ golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.20.0 h1:hz/CVckiOxybQvFw6h7b/q80NTr9IUQb4s1IIzW7KNY= golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg= -golang.org/x/xerrors v0.0.0-20190410155217-1f06c39b4373/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= @@ -1981,7 +1754,6 @@ google.golang.org/grpc v1.39.0/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnD google.golang.org/grpc v1.39.1/go.mod h1:PImNr+rS9TWYb2O4/emRugxiyHZ5JyHW5F+RPnDzfrE= google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= google.golang.org/grpc v1.40.1/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9KAK34= -google.golang.org/grpc v1.41.0/go.mod h1:U3l9uK9J0sini8mHphKoXyaqDA/8VyGnDee1zzIUK6k= google.golang.org/grpc v1.44.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.45.0/go.mod h1:lN7owxKUQEqMfSyQikvvk5tf/6zMPsrK+ONuO11+0rQ= google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= @@ -2023,11 +1795,8 @@ gopkg.in/cheggaaa/pb.v1 v1.0.27/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qS gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/gcfg.v1 v1.2.3/go.mod h1:yesOnuUOFQAhST5vPY4nbZsb/huCgGGXlipJsBn0b3o= -gopkg.in/inconshreveable/log15.v2 v2.0.0-20180818164646-67afb5ed74ec/go.mod h1:aPpfJ7XW+gOuirDoZ8gHhLh3kZ1B08FtV2bbmy7Jv3s= gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA= gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= -gopkg.in/natefinch/lumberjack.v2 v2.0.0 h1:1Lc07Kr7qY4U2YPouBjpCLxpiyxIVoxqXgkXLknAOE8= -gopkg.in/natefinch/lumberjack.v2 v2.0.0/go.mod h1:l0ndWWf7gzL7RNwBG7wST/UCcT4T24xpD6X8LsfU/+k= gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= @@ -2056,34 +1825,6 @@ honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWh honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= -lukechampine.com/uint128 v1.2.0 h1:mBi/5l91vocEN8otkC5bDLhi2KdCticRiwbdB0O+rjI= -lukechampine.com/uint128 v1.2.0/go.mod h1:c4eWIwlEGaxC/+H1VguhU4PHXNWDCDMUlWdIWl2j1gk= -modernc.org/cc/v3 v3.40.0 h1:P3g79IUS/93SYhtoeaHW+kRCIrYaxJ27MFPv+7kaTOw= -modernc.org/cc/v3 v3.40.0/go.mod h1:/bTg4dnWkSXowUO6ssQKnOV0yMVxDYNIsIrzqTFDGH0= -modernc.org/ccgo/v3 v3.16.13 h1:Mkgdzl46i5F/CNR/Kj80Ri59hC8TKAhZrYSaqvkwzUw= -modernc.org/ccgo/v3 v3.16.13/go.mod h1:2Quk+5YgpImhPjv2Qsob1DnZ/4som1lJTodubIcoUkY= -modernc.org/ccorpus v1.11.6 h1:J16RXiiqiCgua6+ZvQot4yUuUy8zxgqbqEEUuGPlISk= -modernc.org/ccorpus v1.11.6/go.mod h1:2gEUTrWqdpH2pXsmTM1ZkjeSrUWDpjMu2T6m29L/ErQ= -modernc.org/httpfs v1.0.6 h1:AAgIpFZRXuYnkjftxTAZwMIiwEqAfk8aVB2/oA6nAeM= -modernc.org/httpfs v1.0.6/go.mod h1:7dosgurJGp0sPaRanU53W4xZYKh14wfzX420oZADeHM= -modernc.org/libc v1.22.2 h1:4U7v51GyhlWqQmwCHj28Rdq2Yzwk55ovjFrdPjs8Hb0= -modernc.org/libc v1.22.2/go.mod h1:uvQavJ1pZ0hIoC/jfqNoMLURIMhKzINIWypNM17puug= -modernc.org/mathutil v1.5.0 h1:rV0Ko/6SfM+8G+yKiyI830l3Wuz1zRutdslNoQ0kfiQ= -modernc.org/mathutil v1.5.0/go.mod h1:mZW8CKdRPY1v87qxC/wUdX5O1qDzXMP5TH3wjfpga6E= -modernc.org/memory v1.4.0 h1:crykUfNSnMAXaOJnnxcSzbUGMqkLWjklJKkBK2nwZwk= -modernc.org/memory v1.4.0/go.mod h1:PkUhL0Mugw21sHPeskwZW4D6VscE/GQJOnIpCnW6pSU= -modernc.org/opt v0.1.3 h1:3XOZf2yznlhC+ibLltsDGzABUGVx8J6pnFMS3E4dcq4= -modernc.org/opt v0.1.3/go.mod h1:WdSiB5evDcignE70guQKxYUl14mgWtbClRi5wmkkTX0= -modernc.org/sqlite v1.20.3 h1:SqGJMMxjj1PHusLxdYxeQSodg7Jxn9WWkaAQjKrntZs= -modernc.org/sqlite v1.20.3/go.mod h1:zKcGyrICaxNTMEHSr1HQ2GUraP0j+845GYw37+EyT6A= -modernc.org/strutil v1.1.3 h1:fNMm+oJklMGYfU9Ylcywl0CO5O6nTfaowNsh2wpPjzY= -modernc.org/strutil v1.1.3/go.mod h1:MEHNA7PdEnEwLvspRMtWTNnp2nnyvMfkimT1NKNAGbw= -modernc.org/tcl v1.15.0 h1:oY+JeD11qVVSgVvodMJsu7Edf8tr5E/7tuhF5cNYz34= -modernc.org/tcl v1.15.0/go.mod h1:xRoGotBZ6dU+Zo2tca+2EqVEeMmOUBzHnhIwq4YrVnE= -modernc.org/token v1.0.1 h1:A3qvTqOwexpfZZeyI0FeGPDlSWX5pjZu9hF4lU+EKWg= -modernc.org/token v1.0.1/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM= -modernc.org/z v1.7.0 h1:xkDw/KepgEjeizO2sNco+hqYkU12taxQFqPEmgm1GWE= -modernc.org/z v1.7.0/go.mod h1:hVdgNMh8ggTuRG1rGU8x+xGRFfiQUIAw0ZqlPy8+HyQ= nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k= nhooyr.io/websocket v1.8.6/go.mod h1:B70DZP8IakI65RVQ51MsWP/8jndNma26DVA/nFSCgW0= pgregory.net/rapid v1.1.0 h1:CMa0sjHSru3puNx+J0MIAuiiEV4N0qj8/cMWGBBCsjw= diff --git a/covenant-signer/itest/e2e_test.go b/covenant-signer/itest/e2e_test.go index 6cef2ee..cb7b722 100644 --- a/covenant-signer/itest/e2e_test.go +++ b/covenant-signer/itest/e2e_test.go @@ -29,6 +29,7 @@ import ( "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/itest/containers" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/keystore/cosmos" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/metrics" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice" @@ -87,13 +88,24 @@ func StartManager( appConfig := config.DefaultConfig() - covenantPrivateKey, err := btcec.NewPrivateKey() + appConfig.KeyStore.KeyStoreType = "cosmos" + appConfig.KeyStore.CosmosKeyStore.ChainID = "test-chain" + appConfig.KeyStore.CosmosKeyStore.Passphrase = passphrase + appConfig.KeyStore.CosmosKeyStore.KeyName = "test-key" + appConfig.KeyStore.CosmosKeyStore.KeyDirectory = "" + appConfig.KeyStore.CosmosKeyStore.KeyringBackend = "memory" + + retriever, err := cosmos.NewCosmosKeyringRetriever(appConfig.KeyStore.CosmosKeyStore) require.NoError(t, err) - privKeyRetriever := signerapp.NewHardcodedPrivKeyRetriever(covenantPrivateKey) + keyInfo, err := retriever.Kr.CreateChainKey( + appConfig.KeyStore.CosmosKeyStore.Passphrase, + "", + ) + require.NoError(t, err) app := signerapp.NewSignerApp( - privKeyRetriever, + retriever, ) met := metrics.NewCovenantSignerMetrics() @@ -124,7 +136,7 @@ func StartManager( t: t, bitcoindHandler: h, walletPass: passphrase, - covenantPrivKey: covenantPrivateKey, + covenantPrivKey: keyInfo.PrivateKey, signerConfig: appConfig, app: app, server: server, diff --git a/covenant-signer/keystore/cosmos/codec.go b/covenant-signer/keystore/cosmos/codec.go new file mode 100644 index 0000000..6d2a5e2 --- /dev/null +++ b/covenant-signer/keystore/cosmos/codec.go @@ -0,0 +1,17 @@ +package cosmos + + +import ( + "github.com/cosmos/cosmos-sdk/codec" + codectypes "github.com/cosmos/cosmos-sdk/codec/types" + cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec" +) + +func MakeCodec() *codec.ProtoCodec { + ir := codectypes.NewInterfaceRegistry() + cdc := codec.NewProtoCodec(ir) + + cryptocodec.RegisterInterfaces(ir) + + return cdc +} diff --git a/covenant-signer/keystore/cosmos/config.toml b/covenant-signer/keystore/cosmos/config.toml new file mode 100644 index 0000000..660b67d --- /dev/null +++ b/covenant-signer/keystore/cosmos/config.toml @@ -0,0 +1,41 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +[keystore] +# The type of the key store +keystore-type = "cosmos" + +[keystore.cosmos] +# The directory to store the keys in +key-directory = "" +# The keyring backend to use +keyring-backend = "" +# The name of the key to use +key-name = "" +# Passphrase +passphrase = "" + +[server-config] +# The address to listen on +host = "127.0.0.1" + +# The port to listen on +port = 9791 + +# Read timeout in seconds +read-timeout = 15 + +# Write timeout in seconds +write-timeout = 15 + +# Idle timeout in seconds +idle-timeout = 120 + +# Max content length in bytes +max-content-length = 8192 + +[metrics] +# The prometheus server host +host = "127.0.0.1" +# The prometheus server port +port = 2112 diff --git a/covenant-signer/keystore/cosmos/cosmoskeyretriever.go b/covenant-signer/keystore/cosmos/cosmoskeyretriever.go new file mode 100644 index 0000000..93e4da1 --- /dev/null +++ b/covenant-signer/keystore/cosmos/cosmoskeyretriever.go @@ -0,0 +1,46 @@ +package cosmos + +import ( + "context" + "fmt" + "strings" + + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" + "github.com/btcsuite/btcd/btcec/v2" +) + +var _ signerapp.PrivKeyRetriever = &CosmosKeyringRetriever{} + +type CosmosKeyringRetriever struct { + Kr *ChainKeyringController + passphrase string +} + +func NewCosmosKeyringRetriever(cfg *config.CosmosKeyStoreConfig) (*CosmosKeyringRetriever, error) { + input := strings.NewReader("") + kr, err := CreateKeyring(cfg.KeyDirectory, cfg.ChainID, cfg.KeyringBackend, input) + if err != nil { + return nil, fmt.Errorf("failed to create keyring: %w", err) + } + + kc, err := NewChainKeyringControllerWithKeyring(kr, cfg.KeyName, input) + if err != nil { + return nil, err + } + return &CosmosKeyringRetriever{ + Kr: kc, + passphrase: cfg.Passphrase, + }, nil +} + +func (k *CosmosKeyringRetriever) PrivKey(ctx context.Context) (*btcec.PrivateKey, error) { + privKey, err := k.Kr.GetChainPrivKey(k.passphrase) + if err != nil { + return nil, err + } + + btcecPrivKey, _ := btcec.PrivKeyFromBytes(privKey.Key) + + return btcecPrivKey, nil +} diff --git a/covenant-signer/keystore/cosmos/keyring.go b/covenant-signer/keystore/cosmos/keyring.go new file mode 100644 index 0000000..cbb5324 --- /dev/null +++ b/covenant-signer/keystore/cosmos/keyring.go @@ -0,0 +1,73 @@ +package cosmos + +import ( + "fmt" + "os" + "path" + "strings" + + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/crypto/keyring" +) + +func CreateKeyring(keyringDir string, chainId string, backend string, input *strings.Reader) (keyring.Keyring, error) { + ctx, err := CreateClientCtx(keyringDir, chainId) + if err != nil { + return nil, err + } + + if backend == "" { + return nil, fmt.Errorf("the keyring backend should not be empty") + } + + kr, err := keyring.New( + ctx.ChainID, + backend, + ctx.KeyringDir, + input, + ctx.Codec, + ctx.KeyringOptions...) + if err != nil { + return nil, fmt.Errorf("failed to create keyring: %w", err) + } + + return kr, nil +} + +func CreateClientCtx(keyringDir string, chainId string) (client.Context, error) { + var err error + var homeDir string + + if keyringDir == "" { + homeDir, err = os.UserHomeDir() + if err != nil { + return client.Context{}, err + } + keyringDir = path.Join(homeDir, ".covenant-emulator") + } + return client.Context{}. + WithChainID(chainId). + WithCodec(MakeCodec()). + WithKeyringDir(keyringDir), nil +} + +// CreateCovenantKey creates a new key inside the keyring +func CreateCovenantKey(keyringDir, chainID, keyName, backend, passphrase, hdPath string) (*ChainKeyInfo, error) { + sdkCtx, err := CreateClientCtx( + keyringDir, chainID, + ) + if err != nil { + return nil, err + } + + krController, err := NewChainKeyringController( + sdkCtx, + keyName, + backend, + ) + if err != nil { + return nil, err + } + + return krController.CreateChainKey(passphrase, hdPath) +} diff --git a/covenant-signer/keystore/cosmos/keyringcontroller.go b/covenant-signer/keystore/cosmos/keyringcontroller.go new file mode 100644 index 0000000..0e594a2 --- /dev/null +++ b/covenant-signer/keystore/cosmos/keyringcontroller.go @@ -0,0 +1,137 @@ +package cosmos + +import ( + "fmt" + "strings" + + "github.com/btcsuite/btcd/btcec/v2" + "github.com/cosmos/cosmos-sdk/client" + "github.com/cosmos/cosmos-sdk/crypto/keyring" + sdksecp256k1 "github.com/cosmos/cosmos-sdk/crypto/keys/secp256k1" + "github.com/cosmos/go-bip39" +) + +const ( + secp256k1Type = "secp256k1" + mnemonicEntropySize = 256 +) + +type ChainKeyInfo struct { + Name string + Mnemonic string + PublicKey *btcec.PublicKey + PrivateKey *btcec.PrivateKey +} + +type ChainKeyringController struct { + kr keyring.Keyring + keyName string + // input is to send passphrase to kr + input *strings.Reader +} + +func NewChainKeyringController(ctx client.Context, name, keyringBackend string) (*ChainKeyringController, error) { + if name == "" { + return nil, fmt.Errorf("the key name should not be empty") + } + + if keyringBackend == "" { + return nil, fmt.Errorf("the keyring backend should not be empty") + } + + inputReader := strings.NewReader("") + kr, err := keyring.New( + ctx.ChainID, + keyringBackend, + ctx.KeyringDir, + inputReader, + ctx.Codec, + ctx.KeyringOptions...) + if err != nil { + return nil, fmt.Errorf("failed to create keyring: %w", err) + } + + return &ChainKeyringController{ + keyName: name, + kr: kr, + input: inputReader, + }, nil +} + +func NewChainKeyringControllerWithKeyring(kr keyring.Keyring, name string, input *strings.Reader) (*ChainKeyringController, error) { + if name == "" { + return nil, fmt.Errorf("the key name should not be empty") + } + + return &ChainKeyringController{ + kr: kr, + keyName: name, + input: input, + }, nil +} + +func (kc *ChainKeyringController) GetKeyring() keyring.Keyring { + return kc.kr +} + +func (kc *ChainKeyringController) CreateChainKey(passphrase, hdPath string) (*ChainKeyInfo, error) { + keyringAlgos, _ := kc.kr.SupportedAlgorithms() + algo, err := keyring.NewSigningAlgoFromString(secp256k1Type, keyringAlgos) + if err != nil { + return nil, err + } + + // read entropy seed straight from tmcrypto.Rand and convert to mnemonic + entropySeed, err := bip39.NewEntropy(mnemonicEntropySize) + if err != nil { + return nil, err + } + + mnemonic, err := bip39.NewMnemonic(entropySeed) + if err != nil { + return nil, err + } + + // we need to repeat the passphrase to mock the reentry + kc.input.Reset(passphrase + "\n" + passphrase) + record, err := kc.kr.NewAccount(kc.keyName, mnemonic, passphrase, hdPath, algo) + if err != nil { + return nil, err + } + + privKey := record.GetLocal().PrivKey.GetCachedValue() + + switch v := privKey.(type) { + case *sdksecp256k1.PrivKey: + sk, pk := btcec.PrivKeyFromBytes(v.Key) + return &ChainKeyInfo{ + Name: kc.keyName, + PublicKey: pk, + PrivateKey: sk, + Mnemonic: mnemonic, + }, nil + default: + return nil, fmt.Errorf("unsupported key type in keyring") + } +} + +func (kc *ChainKeyringController) GetChainPrivKey(passphrase string) (*sdksecp256k1.PrivKey, error) { + kc.input.Reset(passphrase) + k, err := kc.kr.Key(kc.keyName) + if err != nil { + return nil, fmt.Errorf("failed to get private key: %w", err) + } + + privKeyCached := k.GetLocal().PrivKey.GetCachedValue() + + switch v := privKeyCached.(type) { + case *sdksecp256k1.PrivKey: + return v, nil + default: + return nil, fmt.Errorf("unsupported key type in keyring") + } +} + +func (kc *ChainKeyringController) KeyRecord() (*keyring.Record, error) { + return kc.GetKeyring().Key(kc.keyName) +} From 3d4c63cb5b6d3d70b7a509b4540c80ba340f1058 Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Wed, 20 Nov 2024 10:47:13 +0100 Subject: [PATCH 5/8] add change log --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e1b335..522342e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## Unreleased +* [#33](https://github.com/babylonlabs-io/covenant-emulator/pull/33) Add remote +signer sub module + ## v0.8.0 ### Bug fixes From ba5b366909760d9194569f542f8b978434340415 Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Wed, 20 Nov 2024 12:22:49 +0100 Subject: [PATCH 6/8] pr comments --- covenant-signer/Dockerfile | 2 +- covenant-signer/config/config.go | 2 - covenant-signer/go.mod | 4 +- ...ind_node_setup.go => bitcoindnodesetup.go} | 0 covenant-signer/itest/containers/config.go | 2 +- .../itest/containers/containers.go | 12 +- .../itest/{e2e_test.go => e2etest.go} | 171 ------------------ covenant-signer/itest/testmanager.go | 170 +++++++++++++++++ ...riever.go => hardcodedprivkeyretriever.go} | 0 ...gn_transactions.go => signtransactions.go} | 0 10 files changed, 179 insertions(+), 184 deletions(-) rename covenant-signer/itest/{bitcoind_node_setup.go => bitcoindnodesetup.go} (100%) rename covenant-signer/itest/{e2e_test.go => e2etest.go} (54%) create mode 100644 covenant-signer/itest/testmanager.go rename covenant-signer/signerapp/{hardcoded_priv_key_retriever.go => hardcodedprivkeyretriever.go} (100%) rename covenant-signer/signerservice/handlers/{sign_transactions.go => signtransactions.go} (100%) diff --git a/covenant-signer/Dockerfile b/covenant-signer/Dockerfile index f5c4c6a..54c9f28 100644 --- a/covenant-signer/Dockerfile +++ b/covenant-signer/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22.3-alpine as builder +FROM golang:1.23.1-alpine as builder # Version to build. Default is the Git HEAD. ARG VERSION="HEAD" diff --git a/covenant-signer/config/config.go b/covenant-signer/config/config.go index f3fe5f3..07d3104 100644 --- a/covenant-signer/config/config.go +++ b/covenant-signer/config/config.go @@ -42,13 +42,11 @@ func (cfg *Config) Parse() (*ParsedConfig, error) { } serverConfig, err := cfg.Server.Parse() - if err != nil { return nil, err } metricsConfig, err := cfg.Metrics.Parse() - if err != nil { return nil, err } diff --git a/covenant-signer/go.mod b/covenant-signer/go.mod index 176d18e..d92a81b 100644 --- a/covenant-signer/go.mod +++ b/covenant-signer/go.mod @@ -1,8 +1,6 @@ module github.com/babylonlabs-io/covenant-emulator/covenant-signer -go 1.22.3 - -toolchain go1.22.4 +go 1.23.1 require ( github.com/btcsuite/btcd v0.24.2 diff --git a/covenant-signer/itest/bitcoind_node_setup.go b/covenant-signer/itest/bitcoindnodesetup.go similarity index 100% rename from covenant-signer/itest/bitcoind_node_setup.go rename to covenant-signer/itest/bitcoindnodesetup.go diff --git a/covenant-signer/itest/containers/config.go b/covenant-signer/itest/containers/config.go index c93dbd0..0713d45 100644 --- a/covenant-signer/itest/containers/config.go +++ b/covenant-signer/itest/containers/config.go @@ -10,7 +10,7 @@ type ImageConfig struct { //nolint:deadcode const ( dockerBitcoindRepository = "lncm/bitcoind" - dockerBitcoindVersionTag = "v26.0" + dockerBitcoindVersionTag = "v27.0" ) // NewImageConfig returns ImageConfig needed for running e2e test. diff --git a/covenant-signer/itest/containers/containers.go b/covenant-signer/itest/containers/containers.go index 5c09c6c..1281124 100644 --- a/covenant-signer/itest/containers/containers.go +++ b/covenant-signer/itest/containers/containers.go @@ -134,12 +134,12 @@ func (m *Manager) RunBitcoindResource( fmt.Sprintf("%s/:/data/.bitcoin", bitcoindCfgPath), }, ExposedPorts: []string{ - "8332", - "8333", - "28332", - "28333", - "18443", - "18444", + "8332/tcp", + "8333/tcp", + "28332/tcp", + "28333/tcp", + "18443/tcp", + "18444/tcp", }, PortBindings: map[docker.Port][]docker.PortBinding{ "8332/tcp": {{HostIP: "", HostPort: "8332"}}, diff --git a/covenant-signer/itest/e2e_test.go b/covenant-signer/itest/e2etest.go similarity index 54% rename from covenant-signer/itest/e2e_test.go rename to covenant-signer/itest/e2etest.go index cb7b722..39fb952 100644 --- a/covenant-signer/itest/e2e_test.go +++ b/covenant-signer/itest/e2etest.go @@ -22,131 +22,15 @@ import ( "github.com/babylonlabs-io/babylon/testutil/datagen" "github.com/btcsuite/btcd/btcec/v2" "github.com/btcsuite/btcd/btcutil" - "github.com/btcsuite/btcd/chaincfg" "github.com/btcsuite/btcd/chaincfg/chainhash" "github.com/btcsuite/btcd/wire" "github.com/stretchr/testify/require" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/itest/containers" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/keystore/cosmos" - "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/metrics" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice" "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice/types" ) -var ( - netParams = &chaincfg.RegressionNetParams - eventuallyPollInterval = 100 * time.Millisecond - eventuallyTimeout = 10 * time.Second -) - -type TestManager struct { - t *testing.T - bitcoindHandler *BitcoindTestHandler - walletPass string - covenantPrivKey *btcec.PrivateKey - signerConfig *config.Config - app *signerapp.SignerApp - server *signerservice.SigningServer -} - -type stakingData struct { - stakingAmount btcutil.Amount - stakingTime uint16 - stakingFeeRate btcutil.Amount -} - -func defaultStakingData() *stakingData { - return &stakingData{ - stakingAmount: btcutil.Amount(100000), - stakingTime: 10000, - stakingFeeRate: btcutil.Amount(5000), // feeRatePerKb - } -} - -func StartManager( - t *testing.T, - numMatureOutputsInWallet uint32) *TestManager { - m, err := containers.NewManager() - require.NoError(t, err) - t.Cleanup(func() { - _ = m.ClearResources() - }) - - h := NewBitcoindHandler(t, m) - h.Start() - - // Give some time to launch and bitcoind - time.Sleep(2 * time.Second) - - passphrase := "pass" - _ = h.CreateWallet("test-wallet", passphrase) - // only outputs which are 100 deep are mature - _ = h.GenerateBlocks(int(numMatureOutputsInWallet) + 100) - - appConfig := config.DefaultConfig() - - appConfig.KeyStore.KeyStoreType = "cosmos" - appConfig.KeyStore.CosmosKeyStore.ChainID = "test-chain" - appConfig.KeyStore.CosmosKeyStore.Passphrase = passphrase - appConfig.KeyStore.CosmosKeyStore.KeyName = "test-key" - appConfig.KeyStore.CosmosKeyStore.KeyDirectory = "" - appConfig.KeyStore.CosmosKeyStore.KeyringBackend = "memory" - - retriever, err := cosmos.NewCosmosKeyringRetriever(appConfig.KeyStore.CosmosKeyStore) - require.NoError(t, err) - - keyInfo, err := retriever.Kr.CreateChainKey( - appConfig.KeyStore.CosmosKeyStore.Passphrase, - "", - ) - require.NoError(t, err) - - app := signerapp.NewSignerApp( - retriever, - ) - - met := metrics.NewCovenantSignerMetrics() - parsedConfig, err := appConfig.Parse() - require.NoError(t, err) - - server, err := signerservice.New( - context.Background(), - parsedConfig, - app, - met, - ) - - require.NoError(t, err) - - go func() { - _ = server.Start() - }() - - // Give some time to launch server - time.Sleep(3 * time.Second) - - t.Cleanup(func() { - _ = server.Stop(context.TODO()) - }) - - return &TestManager{ - t: t, - bitcoindHandler: h, - walletPass: passphrase, - covenantPrivKey: keyInfo.PrivateKey, - signerConfig: appConfig, - app: app, - server: server, - } -} - -func (tm *TestManager) SigningServerUrl() string { - return fmt.Sprintf("http://%s:%d", tm.signerConfig.Server.Host, tm.signerConfig.Server.Port) -} - func buildDataToSign(t *testing.T, covnenantPublicKey *btcec.PublicKey) signerapp.ParsedSigningRequest { stakerPrivKey, err := btcec.NewPrivateKey() require.NoError(t, err) @@ -264,61 +148,6 @@ func TestSigningTransactions(t *testing.T) { require.NoError(t, err) } -func (tm *TestManager) verifyResponse(resp *signerapp.ParsedSigningResponse, req *signerapp.ParsedSigningRequest) error { - - slashAdaptorSig, err := asig.NewAdaptorSignatureFromBytes(resp.SlashAdaptorSigs[0]) - - if err != nil { - return err - } - - err = btcstaking.EncVerifyTransactionSigWithOutput( - req.SlashingTx, - req.StakingTx.TxOut[req.StakingOutputIdx], - req.SlashingScript, - tm.covenantPrivKey.PubKey(), - req.FpEncKeys[0], - slashAdaptorSig, - ) - - if err != nil { - return fmt.Errorf("failed to verify slash adaptor signature for slashing tx: %w", err) - } - - slashUnbondingAdaptorSig, err := asig.NewAdaptorSignatureFromBytes(resp.SlashUnbondingAdaptorSigs[0]) - - if err != nil { - return err - } - - err = btcstaking.EncVerifyTransactionSigWithOutput( - req.SlashUnbondingTx, - req.UnbondingTx.TxOut[0], - req.UnbondingSlashingScript, - tm.covenantPrivKey.PubKey(), - req.FpEncKeys[0], - slashUnbondingAdaptorSig, - ) - - if err != nil { - return fmt.Errorf("failed to verify slash unbonding adaptor signature for slash unbonding tx: %w", err) - } - - err = btcstaking.VerifyTransactionSigWithOutput( - req.UnbondingTx, - req.StakingTx.TxOut[req.StakingOutputIdx], - req.UnbondingScript, - tm.covenantPrivKey.PubKey(), - resp.UnbondingSig.Serialize(), - ) - - if err != nil { - return fmt.Errorf("failed to verify unbonding signature for unbonding tx: %w", err) - } - - return nil -} - func TestRejectToLargeRequest(t *testing.T) { tm := StartManager(t, 100) r := rand.New(rand.NewSource(time.Now().UnixNano())) diff --git a/covenant-signer/itest/testmanager.go b/covenant-signer/itest/testmanager.go new file mode 100644 index 0000000..97a60c8 --- /dev/null +++ b/covenant-signer/itest/testmanager.go @@ -0,0 +1,170 @@ +package e2etest + +import ( + "context" + "fmt" + "testing" + "time" + + asig "github.com/babylonlabs-io/babylon/crypto/schnorr-adaptor-signature" + + "github.com/babylonlabs-io/babylon/btcstaking" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/config" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/itest/containers" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/keystore/cosmos" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/observability/metrics" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerapp" + "github.com/babylonlabs-io/covenant-emulator/covenant-signer/signerservice" + "github.com/btcsuite/btcd/btcec/v2" + "github.com/btcsuite/btcd/chaincfg" + "github.com/stretchr/testify/require" +) + +var ( + netParams = &chaincfg.RegressionNetParams + eventuallyPollInterval = 100 * time.Millisecond + eventuallyTimeout = 10 * time.Second +) + +type TestManager struct { + t *testing.T + bitcoindHandler *BitcoindTestHandler + walletPass string + covenantPrivKey *btcec.PrivateKey + signerConfig *config.Config + app *signerapp.SignerApp + server *signerservice.SigningServer +} + +func StartManager( + t *testing.T, + numMatureOutputsInWallet uint32) *TestManager { + m, err := containers.NewManager() + require.NoError(t, err) + t.Cleanup(func() { + _ = m.ClearResources() + }) + + h := NewBitcoindHandler(t, m) + h.Start() + + passphrase := "pass" + _ = h.CreateWallet("test-wallet", passphrase) + // only outputs which are 100 deep are mature + _ = h.GenerateBlocks(int(numMatureOutputsInWallet) + 100) + + appConfig := config.DefaultConfig() + + appConfig.KeyStore.KeyStoreType = "cosmos" + appConfig.KeyStore.CosmosKeyStore.ChainID = "test-chain" + appConfig.KeyStore.CosmosKeyStore.Passphrase = passphrase + appConfig.KeyStore.CosmosKeyStore.KeyName = "test-key" + appConfig.KeyStore.CosmosKeyStore.KeyDirectory = "" + appConfig.KeyStore.CosmosKeyStore.KeyringBackend = "memory" + + retriever, err := cosmos.NewCosmosKeyringRetriever(appConfig.KeyStore.CosmosKeyStore) + require.NoError(t, err) + + keyInfo, err := retriever.Kr.CreateChainKey( + appConfig.KeyStore.CosmosKeyStore.Passphrase, + "", + ) + require.NoError(t, err) + + app := signerapp.NewSignerApp( + retriever, + ) + + met := metrics.NewCovenantSignerMetrics() + parsedConfig, err := appConfig.Parse() + require.NoError(t, err) + + server, err := signerservice.New( + context.Background(), + parsedConfig, + app, + met, + ) + + require.NoError(t, err) + + go func() { + _ = server.Start() + }() + + // Give some time to launch server + time.Sleep(3 * time.Second) + + t.Cleanup(func() { + _ = server.Stop(context.TODO()) + }) + + return &TestManager{ + t: t, + bitcoindHandler: h, + walletPass: passphrase, + covenantPrivKey: keyInfo.PrivateKey, + signerConfig: appConfig, + app: app, + server: server, + } +} + +func (tm *TestManager) SigningServerUrl() string { + return fmt.Sprintf("http://%s:%d", tm.signerConfig.Server.Host, tm.signerConfig.Server.Port) +} + +func (tm *TestManager) verifyResponse(resp *signerapp.ParsedSigningResponse, req *signerapp.ParsedSigningRequest) error { + + slashAdaptorSig, err := asig.NewAdaptorSignatureFromBytes(resp.SlashAdaptorSigs[0]) + + if err != nil { + return err + } + + err = btcstaking.EncVerifyTransactionSigWithOutput( + req.SlashingTx, + req.StakingTx.TxOut[req.StakingOutputIdx], + req.SlashingScript, + tm.covenantPrivKey.PubKey(), + req.FpEncKeys[0], + slashAdaptorSig, + ) + + if err != nil { + return fmt.Errorf("failed to verify slash adaptor signature for slashing tx: %w", err) + } + + slashUnbondingAdaptorSig, err := asig.NewAdaptorSignatureFromBytes(resp.SlashUnbondingAdaptorSigs[0]) + + if err != nil { + return err + } + + err = btcstaking.EncVerifyTransactionSigWithOutput( + req.SlashUnbondingTx, + req.UnbondingTx.TxOut[0], + req.UnbondingSlashingScript, + tm.covenantPrivKey.PubKey(), + req.FpEncKeys[0], + slashUnbondingAdaptorSig, + ) + + if err != nil { + return fmt.Errorf("failed to verify slash unbonding adaptor signature for slash unbonding tx: %w", err) + } + + err = btcstaking.VerifyTransactionSigWithOutput( + req.UnbondingTx, + req.StakingTx.TxOut[req.StakingOutputIdx], + req.UnbondingScript, + tm.covenantPrivKey.PubKey(), + resp.UnbondingSig.Serialize(), + ) + + if err != nil { + return fmt.Errorf("failed to verify unbonding signature for unbonding tx: %w", err) + } + + return nil +} diff --git a/covenant-signer/signerapp/hardcoded_priv_key_retriever.go b/covenant-signer/signerapp/hardcodedprivkeyretriever.go similarity index 100% rename from covenant-signer/signerapp/hardcoded_priv_key_retriever.go rename to covenant-signer/signerapp/hardcodedprivkeyretriever.go diff --git a/covenant-signer/signerservice/handlers/sign_transactions.go b/covenant-signer/signerservice/handlers/signtransactions.go similarity index 100% rename from covenant-signer/signerservice/handlers/sign_transactions.go rename to covenant-signer/signerservice/handlers/signtransactions.go From 6cafc588debe161f2803b4fca45dda577695c332 Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Wed, 20 Nov 2024 14:08:37 +0100 Subject: [PATCH 7/8] Make gosec work --- .github/workflows/ci.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cda03eb..59cc85a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: run-lint: true run-build: true run-gosec: true - gosec-args: "-exclude-generated -exclude-dir=itest -exclude-dir=testutil ./..." + gosec-args: "-exclude-generated -exclude-dir=itest -exclude-dir=testutil -exclude-dir=covenant-signer ./..." docker_pipeline: uses: babylonlabs-io/.github/.github/workflows/reusable_docker_pipeline.yml@v0.7.0 @@ -25,3 +25,23 @@ jobs: publish: false dockerfile: ./Dockerfile repoName: covenant-emulator + + go_sec_covenant_signer: + runs-on: ubuntu-24.04 + env: + GO111MODULE: on + steps: + - name: Fetch Repository + uses: actions/checkout@v4 + - name: Install Go + uses: actions/setup-go@v4 + with: + go-version: '^1.23.x' + check-latest: true + cache: false + - name: Install Gosec + run: go install github.com/securego/gosec/v2/cmd/gosec@latest + - name: Run Gosec (covenant-signer) + working-directory: ./covenant-signer + run: gosec ./... + From e8624d578a355f5f4a13fdbc2c448c78bf745baa Mon Sep 17 00:00:00 2001 From: KonradStaniec Date: Thu, 21 Nov 2024 08:24:53 +0100 Subject: [PATCH 8/8] minor fixes --- covenant-signer/Dockerfile | 3 -- covenant-signer/cmd/dumpDefaultCfgCmd.go | 2 +- covenant-signer/cmd/root.go | 21 +++--------- covenant-signer/example/config.toml | 41 ++++++++++++++++++++++++ 4 files changed, 47 insertions(+), 20 deletions(-) create mode 100644 covenant-signer/example/config.toml diff --git a/covenant-signer/Dockerfile b/covenant-signer/Dockerfile index 54c9f28..8fc3e2f 100644 --- a/covenant-signer/Dockerfile +++ b/covenant-signer/Dockerfile @@ -1,8 +1,5 @@ FROM golang:1.23.1-alpine as builder -# Version to build. Default is the Git HEAD. -ARG VERSION="HEAD" - # Use muslc for static libs ARG BUILD_TAGS="muslc" diff --git a/covenant-signer/cmd/dumpDefaultCfgCmd.go b/covenant-signer/cmd/dumpDefaultCfgCmd.go index d29d442..1134d80 100644 --- a/covenant-signer/cmd/dumpDefaultCfgCmd.go +++ b/covenant-signer/cmd/dumpDefaultCfgCmd.go @@ -13,7 +13,7 @@ func init() { var dumpCfgCmd = &cobra.Command{ Use: "dump-cfg", - Short: "dumps default confiiguration file", + Short: "dumps default configuration file", RunE: func(cmd *cobra.Command, args []string) error { path, err := cmd.Flags().GetString(configPathKey) if err != nil { diff --git a/covenant-signer/cmd/root.go b/covenant-signer/cmd/root.go index 11c3d2d..3762f64 100644 --- a/covenant-signer/cmd/root.go +++ b/covenant-signer/cmd/root.go @@ -12,20 +12,16 @@ var ( configPath string configPathKey = "config" - globalParamPath string - globalParamKey = "params" - rootCmd = &cobra.Command{ Use: "covenant-signer", Short: "remote signing serivce to perform covenant duties", } - // C:\Users\\AppData\Local\tools on Windows - // ~/.tools on Linux - // ~/Library/Application Support/tools on MacOS - dafaultConfigDir = btcutil.AppDataDir("signer", false) - dafaultConfigPath = filepath.Join(dafaultConfigDir, "config.toml") - defaultGlobalParamsPath = filepath.Join(dafaultConfigDir, "global-params.json") + // C:\Users\\AppData\Local\signer on Windows + // ~/.signer on Linux + // ~/Library/Application Support/signer on MacOS + dafaultConfigDir = btcutil.AppDataDir("signer", false) + dafaultConfigPath = filepath.Join(dafaultConfigDir, "config.toml") ) // Execute executes the root command. @@ -40,11 +36,4 @@ func init() { dafaultConfigPath, "path to the configuration file", ) - - rootCmd.PersistentFlags().StringVar( - &globalParamPath, - globalParamKey, - defaultGlobalParamsPath, - "path to the global params file", - ) } diff --git a/covenant-signer/example/config.toml b/covenant-signer/example/config.toml new file mode 100644 index 0000000..660b67d --- /dev/null +++ b/covenant-signer/example/config.toml @@ -0,0 +1,41 @@ +# This is a TOML config file. +# For more information, see https://github.com/toml-lang/toml + +[keystore] +# The type of the key store +keystore-type = "cosmos" + +[keystore.cosmos] +# The directory to store the keys in +key-directory = "" +# The keyring backend to use +keyring-backend = "" +# The name of the key to use +key-name = "" +# Passphrase +passphrase = "" + +[server-config] +# The address to listen on +host = "127.0.0.1" + +# The port to listen on +port = 9791 + +# Read timeout in seconds +read-timeout = 15 + +# Write timeout in seconds +write-timeout = 15 + +# Idle timeout in seconds +idle-timeout = 120 + +# Max content length in bytes +max-content-length = 8192 + +[metrics] +# The prometheus server host +host = "127.0.0.1" +# The prometheus server port +port = 2112