Skip to content

Commit

Permalink
feat: add libp2p-key
Browse files Browse the repository at this point in the history
This adds multicoded added in
multiformats/multicodec#130

License: MIT
Signed-off-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
lidel committed May 27, 2019
1 parent 82eff23 commit 921799f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/base-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ exports['https'] = Buffer.from('01bb', 'hex')
exports['onion'] = Buffer.from('01bc', 'hex')
exports['onion3'] = Buffer.from('01bd', 'hex')
exports['garlic64'] = Buffer.from('01be', 'hex')
exports['garlic32'] = Buffer.from('01bf', 'hex')
exports['quic'] = Buffer.from('01cc', 'hex')
exports['ws'] = Buffer.from('01dd', 'hex')
exports['wss'] = Buffer.from('01de', 'hex')
Expand All @@ -393,6 +394,7 @@ exports['http'] = Buffer.from('01e0', 'hex')
exports['raw'] = Buffer.from('55', 'hex')
exports['dag-pb'] = Buffer.from('70', 'hex')
exports['dag-cbor'] = Buffer.from('71', 'hex')
exports['libp2p-key'] = Buffer.from('72', 'hex')
exports['git-raw'] = Buffer.from('78', 'hex')
exports['torrent-info'] = Buffer.from('7b', 'hex')
exports['torrent-file'] = Buffer.from('7c', 'hex')
Expand Down
2 changes: 2 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ module.exports = Object.freeze({
ONION: 0x01bc,
ONION3: 0x01bd,
GARLIC64: 0x01be,
GARLIC32: 0x01bf,
QUIC: 0x01cc,
WS: 0x01dd,
WSS: 0x01de,
Expand All @@ -394,6 +395,7 @@ module.exports = Object.freeze({
RAW: 0x55,
DAG_PB: 0x70,
DAG_CBOR: 0x71,
LIBP2P_KEY: 0x72,
GIT_RAW: 0x78,
TORRENT_INFO: 0x7b,
TORRENT_FILE: 0x7c,
Expand Down
2 changes: 2 additions & 0 deletions src/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ module.exports = Object.freeze({
0x01bc: 'onion',
0x01bd: 'onion3',
0x01be: 'garlic64',
0x01bf: 'garlic32',
0x01cc: 'quic',
0x01dd: 'ws',
0x01de: 'wss',
Expand All @@ -393,6 +394,7 @@ module.exports = Object.freeze({
0x55: 'raw',
0x70: 'dag-pb',
0x71: 'dag-cbor',
0x72: 'libp2p-key',
0x78: 'git-raw',
0x7b: 'torrent-info',
0x7c: 'torrent-file',
Expand Down

0 comments on commit 921799f

Please sign in to comment.