Cosmos-sdk: crypto/keys/mintkey not compatible with bcrypt master

Created on 27 Jun 2019  路  3Comments  路  Source: cosmos/cosmos-sdk

git commit hash: https://github.com/cosmos/cosmos-sdk/commit/b2f8c58ec4d477fd496b24ff632d1f13ad279bc2

go version: go1.12.6

the encryptPrivkey method in mintkey.go at https://github.com/cosmos/cosmos-sdk/blob/master/crypto/keys/mintkey/mintkey.go#L107 is not compatible with bcrypt's GenerateFromPassword function at https://godoc.org/golang.org/x/crypto/bcrypt#GenerateFromPassword. As a result, go getting mintkey or the larger cosmos crypto package doesn't work

Most helpful comment

You need the following in your go.mod file:

replace golang.org/x/crypto => github.com/tendermint/crypto v0.0.0-20180820045704-3764759f34a5

All 3 comments

You need the following in your go.mod file:

replace golang.org/x/crypto => github.com/tendermint/crypto v0.0.0-20180820045704-3764759f34a5

thanks!

My pleasure! You can always use the SDK's go.mod file as a reference point 馃憤

Was this page helpful?
0 / 5 - 0 ratings