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-cid
Commits
6f951560
Commit
6f951560
authored
Jun 28, 2018
by
Kevin Atkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update deprecated note to reflect code review.
parent
5d8ad3eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
cid.go
cid.go
+2
-1
No files found.
cid.go
View file @
6f951560
...
...
@@ -444,6 +444,8 @@ func (c *Cid) Prefix() Prefix {
// that is, the Version, the Codec, the Multihash type
// and the Multihash length. It does not contains
// any actual content information.
// NOTE: The use -1 in MhLength to mean default length is deprecated,
// use the PrefixV0 or PrefixV1 structures instead
type
Prefix
struct
{
Version
uint64
Codec
uint64
...
...
@@ -453,7 +455,6 @@ type Prefix struct {
// Sum uses the information in a prefix to perform a multihash.Sum()
// and return a newly constructed Cid with the resulting multihash.
// DEPRECATED: Use PrefixToFormat(p).Sum(data)
func
(
p
Prefix
)
Sum
(
data
[]
byte
)
(
*
Cid
,
error
)
{
hash
,
err
:=
mh
.
Sum
(
data
,
p
.
MhType
,
p
.
MhLength
)
if
err
!=
nil
{
...
...
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