From 0e6d8959a20ea95532b9f90c88c9e6fc86df9e7c Mon Sep 17 00:00:00 2001 From: grepsuzette Date: Sat, 1 Apr 2023 10:08:57 +0800 Subject: [PATCH] fix: revert #670 (bcrypt cost) to fix #680 This reverts e0c50ece928e (#670) It breaks decoding of existing accounts. For instance if you addpkg, it gives: Enter password. ciphertext decryption failed Changing bcryptSecurityParameter = 12 (from 11) makes it work again. Better change until we find a better solution. --- pkgs/crypto/keys/armor/armor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/crypto/keys/armor/armor.go b/pkgs/crypto/keys/armor/armor.go index 0157b17c236..80e469e4f2d 100644 --- a/pkgs/crypto/keys/armor/armor.go +++ b/pkgs/crypto/keys/armor/armor.go @@ -16,7 +16,7 @@ const ( blockTypePrivKey = "TENDERMINT PRIVATE KEY" blockTypeKeyInfo = "TENDERMINT KEY INFO" blockTypePubKey = "TENDERMINT PUBLIC KEY" - bcryptSecurityParameter = 11 + bcryptSecurityParameter = 12 ) // -----------------------------------------------------------------