IPNS is a PKI namespace, where names are the hashes of public keys, and
the private key enables publishing new (signed) values. In both publish
and resolve, the default name used is the node's own PeerID,
which is the hash of its public key.
example
// The address of your files. constaddr = '/ipfs/QmbezGequPwcsWo8UL4wDF6a8hYwM1hmbzYv2mnKkEWaUp' constres = awaitipfs.name.publish(addr) // You now have a res which contains two fields: // - name: the name under which the content was published. // - value: the "real" address to which Name points. console.log(`https://gateway.ipfs.io/ipns/${res.name}`)
IPNS is a PKI namespace, where names are the hashes of public keys, and the private key enables publishing new (signed) values. In both publish and resolve, the default name used is the node's own PeerID, which is the hash of its public key.