ipfs/kubo

ipfs name resolve '-k' option unecessary

Open

#3900 aperta il 5 mag 2017

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)Go (2725 fork)batch import
help wanted

Metriche repository

Star
 (13.906 star)
Metriche merge PR
 (Merge medio 4g 2h) (28 PR mergiate in 30 g)

Descrizione

We should just be able to resolve named keys by doing ipfs name resolve keyname. Since named keys cannot contain slashes, we can disambiguate them from hashes by an optional /ipns/ prefix on hash keys.

ipfs key gen foobar
ipfs name resolve foobar # should work
ipfs name resolve QmBeepBoop # should check if we have a key named QmBeepBoop, then try to resolve a hash key
ipfs name resolve /ipns/QmBeepBoop # definitely a hash key, don't check for named keys

Guida contributor