Undocumented key.info
AlbertoElias opened this issue · 2 comments
AlbertoElias commented
There's a useful function implemented in js-ipfs ipfs.key.info
which isn't documented: https://github.com/ipfs/js-ipfs/blob/master/src/core/components/key.js#L14
tapaswenipathak commented
Hi @AlbertoElias: Can I work on the ticket?
alanshaw commented
There's no consensus on this function existing. It does not exist in the go-ipfs implementation and whilst it is implemented in core for JS IPFS, there's no CLI method of calling it and it is not available from the HTTP API either - nor does https://github.com/ipfs/js-ipfs-http-client implement it.
So unfortunately this isn't simply a case of documenting an existing function.
I suggest using key.list
and find the key by name from the array that is returned.