Commit 488515c2 authored by Brian Tiger Chow's avatar Brian Tiger Chow

refactor(namesys) move proto to internal pb package

parent a8175316
......@@ -9,6 +9,7 @@ import (
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
ci "github.com/jbenet/go-ipfs/crypto"
pb "github.com/jbenet/go-ipfs/namesys/internal/pb"
routing "github.com/jbenet/go-ipfs/routing"
u "github.com/jbenet/go-ipfs/util"
)
......@@ -67,7 +68,7 @@ func (p *ipnsPublisher) Publish(k ci.PrivKey, value string) error {
}
func createRoutingEntryData(pk ci.PrivKey, val string) ([]byte, error) {
entry := new(IpnsEntry)
entry := new(pb.IpnsEntry)
sig, err := pk.Sign([]byte(val))
if err != nil {
return nil, err
......
......@@ -8,6 +8,7 @@ import (
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
ci "github.com/jbenet/go-ipfs/crypto"
pb "github.com/jbenet/go-ipfs/namesys/internal/pb"
routing "github.com/jbenet/go-ipfs/routing"
u "github.com/jbenet/go-ipfs/util"
)
......@@ -54,7 +55,7 @@ func (r *routingResolver) Resolve(name string) (string, error) {
return "", err
}
entry := new(IpnsEntry)
entry := new(pb.IpnsEntry)
err = proto.Unmarshal(val, entry)
if err != nil {
return "", err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment