Commit 30244e2e authored by Jeromy's avatar Jeromy

move util.Key into its own package under blocks

parent f3800ad4
......@@ -7,6 +7,7 @@ import (
"fmt"
mh "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
key "github.com/ipfs/go-ipfs/blocks/key"
u "github.com/ipfs/go-ipfs/util"
)
......@@ -35,8 +36,8 @@ func NewBlockWithHash(data []byte, h mh.Multihash) (*Block, error) {
}
// Key returns the block's Multihash as a Key value.
func (b *Block) Key() u.Key {
return u.Key(b.Multihash)
func (b *Block) Key() key.Key {
return key.Key(b.Multihash)
}
func (b *Block) String() string {
......
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