Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-block-format
Commits
30244e2e
Commit
30244e2e
authored
Jun 01, 2015
by
Jeromy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move util.Key into its own package under blocks
parent
f3800ad4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
blocks.go
blocks.go
+3
-2
No files found.
blocks.go
View file @
30244e2e
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment