Merge pull request #215 from harmony-one/bls-pubkeys-dir

[keys] Remove whitespace when reading passphrase from file for bls keys
pull/216/head v1.1.0
Daniel Van Der Maden 5 years ago committed by GitHub
commit 1fa1722986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      pkg/keys/bls.go

@ -211,7 +211,8 @@ func VerifyBLS(blsPubKey string, blsPubKeyDir string) (shard.BLSSignature, error
pass, _ = terminal.ReadPassword(int(os.Stdin.Fd()))
}
decryptedPrivateKeyBytes, err := decrypt(encryptedPrivateKeyBytes, string(pass))
cleanPass := strings.TrimSpace(string(pass))
decryptedPrivateKeyBytes, err := decrypt(encryptedPrivateKeyBytes, cleanPass)
if err != nil {
return sig, err
}

Loading…
Cancel
Save