Skip to content

Commit

Permalink
replace it in rosetta
Browse files Browse the repository at this point in the history
  • Loading branch information
tkxkd0159 committed Oct 27, 2023
1 parent a2fa2ce commit 5881098
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ require (
github.com/VictoriaMetrics/fastcache v1.12.1
github.com/armon/go-metrics v0.4.1
github.com/bgentry/speakeasy v0.1.0
github.com/btcsuite/btcd v0.22.1
github.com/coinbase/rosetta-sdk-go v0.8.3
github.com/coinbase/rosetta-sdk-go/types v1.0.0
github.com/confio/ics23/go v0.9.0
Expand Down Expand Up @@ -62,6 +61,7 @@ require (
github.com/Finschia/r2ishiguro_vrf v0.1.2 // indirect
github.com/Workiva/go-datastructures v1.1.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/btcsuite/btcd v0.22.1 // indirect
github.com/cenkalti/backoff/v4 v4.1.3 // indirect
github.com/cespare/xxhash v1.1.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions server/rosetta/converter.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"reflect"

"github.com/btcsuite/btcd/btcec"
rosettatypes "github.com/coinbase/rosetta-sdk-go/types"
secp "github.com/decred/dcrd/dcrec/secp256k1/v4"

abci "github.com/tendermint/tendermint/abci/types"

Expand Down Expand Up @@ -650,7 +650,7 @@ func (c converter) PubKey(pubKey *rosettatypes.PublicKey) (cryptotypes.PubKey, e
return nil, crgerrs.WrapError(crgerrs.ErrUnsupportedCurve, "only secp256k1 supported")
}

cmp, err := btcec.ParsePubKey(pubKey.Bytes, btcec.S256())
cmp, err := secp.ParsePubKey(pubKey.Bytes)
if err != nil {
return nil, crgerrs.WrapError(crgerrs.ErrBadArgument, err.Error())
}
Expand Down

0 comments on commit 5881098

Please sign in to comment.