1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-09 19:32:24 +08:00

address comments from the PR #45

This commit is contained in:
Jeromy
2014-09-15 20:32:37 +00:00
committed by Juan Batiz-Benet
parent 2aa2b8c6c7
commit d1f011244f
9 changed files with 66 additions and 23 deletions

View File

@ -32,7 +32,7 @@ func (p *IpnsPublisher) Publish(k ci.PrivKey, value u.Key) error {
}
namekey := u.Key(nameb).Pretty()
ipnskey, err := u.Hash([]byte("ipns:" + namekey))
ipnskey, err := u.Hash([]byte("/ipns/" + namekey))
if err != nil {
return err
}
@ -43,7 +43,7 @@ func (p *IpnsPublisher) Publish(k ci.PrivKey, value u.Key) error {
return err
}
// Store ipns entry at h("ipns:"+b58(h(pubkey)))
// Store ipns entry at h("/ipns/"+b58(h(pubkey)))
err = p.routing.PutValue(u.Key(ipnskey), data)
if err != nil {
return err