We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e4344 commit 6111bf9Copy full SHA for 6111bf9
multihash.go
@@ -170,7 +170,8 @@ type DecodedMultihash struct {
170
Digest []byte // Digest holds the raw multihash bytes
171
}
172
173
-// Multihash is byte slice with the following form:
+// Multihash is the cannoical representation of a Multihash
174
+// It is repressed internally as a binary with the following form:
175
// <hash function code><digest size><hash function output>.
176
// See the spec for more information.
177
type Multihash struct {
@@ -192,7 +193,7 @@ func (m Multihash) Bytes() []byte {
192
193
return []byte(m.s)
194
195
-// String is an alias to HexString().
196
+// IsNil returns true if the multihash is empty.
197
func (m Multihash) IsNil() bool {
198
return m.s == ""
199
0 commit comments