Fierro-Labs / Fierro

IPNS API and pinning service
https://www.fierro.io
MIT License
34 stars 4 forks source link

Rework code to fix error messages in certain scenarios #29

Open mrodriguez3313 opened 2 years ago

mrodriguez3313 commented 2 years ago

These functions in keys.go: diskDelete, exportKey, & importKey need to be reworked because they don't provide useful error messages. The only error they produce is if there is a malformed request (which is only possibly If I manually and purposefully/accidentally mispelled a command) & if the IPFS daemon is not running.

The functions need to be reworked to be more similar to how IPFS does importing and exporting from go-ipfs/keystore. OR find a way to use the shell library to call http-ipfs-api.