Commit 249d6c3b authored by Kevin Atkinson's avatar Kevin Atkinson

Move NewSafeKey functionally into the dshelp package in go-ipfs.

parent 1e283963
......@@ -7,7 +7,6 @@ import (
dsq "github.com/ipfs/go-datastore/query"
"github.com/satori/go.uuid"
base32 "github.com/whyrusleeping/base32"
)
/*
......@@ -59,10 +58,6 @@ func RawKey(s string) Key {
return Key{s}
}
func NewSafeKey(s string) Key {
return Key{base32.RawStdEncoding.EncodeToString([]byte(s))}
}
// KeyWithNamespaces constructs a key out of a namespace slice.
func KeyWithNamespaces(ns []string) Key {
return NewKey(strings.Join(ns, "/"))
......
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