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
9bb7ea69
Unverified
Commit
9bb7ea69
authored
May 27, 2019
by
Steven Allen
Committed by
GitHub
May 27, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #86 from lidel/feat/libp2p-key
Add support for libp2p-key multicodec to go-cid
parents
b1cc3e40
3f177773
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
_rsrch/cidiface/enums.go
_rsrch/cidiface/enums.go
+3
-0
cid.go
cid.go
+2
-0
cid_test.go
cid_test.go
+1
-0
No files found.
_rsrch/cidiface/enums.go
View file @
9bb7ea69
...
...
@@ -8,6 +8,7 @@ const (
DagProtobuf
=
0x70
DagCBOR
=
0x71
Libp2pKey
=
0x72
GitRaw
=
0x78
...
...
@@ -34,6 +35,7 @@ var Codecs = map[string]uint64{
"raw"
:
Raw
,
"protobuf"
:
DagProtobuf
,
"cbor"
:
DagCBOR
,
"libp2p-key"
:
Libp2pKey
,
"git-raw"
:
GitRaw
,
"eth-block"
:
EthBlock
,
"eth-block-list"
:
EthBlockList
,
...
...
@@ -57,6 +59,7 @@ var CodecToStr = map[uint64]string{
Raw
:
"raw"
,
DagProtobuf
:
"protobuf"
,
DagCBOR
:
"cbor"
,
Libp2pKey
:
"libp2p-key"
,
GitRaw
:
"git-raw"
,
EthBlock
:
"eth-block"
,
EthBlockList
:
"eth-block-list"
,
...
...
cid.go
View file @
9bb7ea69
...
...
@@ -62,6 +62,7 @@ const (
DagProtobuf
=
0x70
DagCBOR
=
0x71
Libp2pKey
=
0x72
GitRaw
=
0x78
...
...
@@ -90,6 +91,7 @@ var Codecs = map[string]uint64{
"raw"
:
Raw
,
"protobuf"
:
DagProtobuf
,
"cbor"
:
DagCBOR
,
"libp2p-key"
:
Libp2pKey
,
"git-raw"
:
GitRaw
,
"eth-block"
:
EthBlock
,
"eth-block-list"
:
EthBlockList
,
...
...
cid_test.go
View file @
9bb7ea69
...
...
@@ -19,6 +19,7 @@ var tCodecs = map[uint64]string{
Raw
:
"raw"
,
DagProtobuf
:
"protobuf"
,
DagCBOR
:
"cbor"
,
Libp2pKey
:
"libp2p-key"
,
GitRaw
:
"git-raw"
,
EthBlock
:
"eth-block"
,
EthBlockList
:
"eth-block-list"
,
...
...
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