This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
UnhandledPromiseRejectionWarning: Error: Key management requires '--pass ...' option #1891
Labels
exp/novice
Someone with a little familiarity can pick up
kind/bug
A bug in existing code (including security flaws)
kind/resolved-in-helia
P3
Low: Not priority right now
status/ready
Ready to be worked
Version: v34.4.4
Platform: Linux 4.9.0-7-amd64 #1 SMP Debian 4.9.110-3+deb9u2 (2018-08-13) x86_64 GNU/Linux
Subsystem:
libp2p-keychain
Type: Bug
Severity: ?
Description:
Empty/default passphrase on
init
leads to no keychain being found.Steps to reproduce the error:
The following code
results in
I checked out the
node
object and it's_keychain
property wasNoKeyChain{}
.Then, I tried to create a keychain object myself with
libp2p-keychain
and the node's properties by following the code here:js-ipfs/src/core/components/init.js
Lines 75 to 76 in d945fce
And voilà! I get an error:
After setting my
pass
value in thenode
's config to a string with more than twenty characters and reinitializing, I was able to successfully list my keys.Also, I think this issue could add to #1138
The text was updated successfully, but these errors were encountered: