Commit abc34938 authored by tavit ohanian's avatar tavit ohanian

refactor after forking multiformats

parent ca581011
Pipeline #889 passed with stages
in 22 seconds
// Package cid implements the Content-IDentifiers specification
// (https://gitlab.dms3.io/dms3/public/dms3ld/cid) in Go. CIDs are
// (https://gitlab.dms3.io/dms3/ld/cid) in Go. CIDs are
// self-describing content-addressed identifiers useful for
// distributed information systems. CIDs are used in the DMS3
// (https://dms3.io) project ecosystem.
......@@ -497,8 +497,8 @@ func (c *Cid) UnmarshalJSON(b []byte) error {
//
// { "/": "<cid-string>" }
//
// Note that this formatting comes from the DMS3LD specification
// (https://github.com/dms3ld/specs/tree/master/dms3ld)
// Note that this formatting comes from the LD specification
// (https://gitlab.dms3.io/ld/specs/tree/master/ld)
func (c Cid) MarshalJSON() ([]byte, error) {
if !c.Defined() {
return []byte("null"), nil
......@@ -512,7 +512,7 @@ func (c Cid) KeyString() string {
}
// Loggable returns a Loggable (as defined by
// https://godoc.org/gitlab.dms3.io/dms3/public/go-log).
// https://godoc.org/gitlab.dms3.io/dms3/go-log).
func (c Cid) Loggable() map[string]interface{} {
return map[string]interface{}{
"cid": c,
......
......@@ -80,7 +80,7 @@ func TestTableForV0(t *testing.T) {
func TestPrefixSum(t *testing.T) {
// Test creating CIDs both manually and with Prefix.
// Tests: https://gitlab.dms3.io/dms3/public/go-cid/issues/83
// Tests: https://gitlab.dms3.io/dms3/go-cid/issues/83
for _, hashfun := range []uint64{
mh.ID, mh.SHA3, mh.SHA2_256,
} {
......
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