From b74f2693b0c23fdf4e71344edf4399fccf5229c3 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 24 Jan 2019 20:39:24 +0000 Subject: [PATCH] feat: update scripts License: MIT Signed-off-by: Henrique Dias --- src/base-table.js | 15 +++++++++------ src/constants.js | 17 ++++++++++------- src/print.js | 17 ++++++++++------- 3 files changed, 29 insertions(+), 20 deletions(-) diff --git a/src/base-table.js b/src/base-table.js index aaff564..f163eae 100644 --- a/src/base-table.js +++ b/src/base-table.js @@ -386,16 +386,11 @@ exports['dns4'] = Buffer.from('36', 'hex') exports['dns6'] = Buffer.from('37', 'hex') exports['dnsaddr'] = Buffer.from('38', 'hex') exports['p2p-websocket-star'] = Buffer.from('01df', 'hex') +exports['p2p-stardust'] = Buffer.from('0115', 'hex') exports['p2p-webrtc-star'] = Buffer.from('0113', 'hex') exports['p2p-webrtc-direct'] = Buffer.from('0114', 'hex') exports['unix'] = Buffer.from('0190', 'hex') -// archiving formats - -// image formats - -// video formats - // IPLD formats exports['dag-pb'] = Buffer.from('70', 'hex') exports['dag-cbor'] = Buffer.from('71', 'hex') @@ -420,6 +415,14 @@ exports['decred-block'] = Buffer.from('e0', 'hex') exports['decred-tx'] = Buffer.from('e1', 'hex') exports['dash-block'] = Buffer.from('f0', 'hex') exports['dash-tx'] = Buffer.from('f1', 'hex') +exports['leofcoin-block'] = Buffer.from('81', 'hex') +exports['leofcoin-tx'] = Buffer.from('82', 'hex') +exports['leofcoin-pr'] = Buffer.from('83', 'hex') exports['torrent-info'] = Buffer.from('7b', 'hex') exports['torrent-file'] = Buffer.from('7c', 'hex') exports['ed25519-pub'] = Buffer.from('ed', 'hex') + +// Content Namespaces +exports['ipld-ns'] = Buffer.from('e2', 'hex') +exports['ipfs-ns'] = Buffer.from('e3', 'hex') +exports['swarm-ns'] = Buffer.from('e4', 'hex') diff --git a/src/constants.js b/src/constants.js index 8fdd3cf..598495c 100644 --- a/src/constants.js +++ b/src/constants.js @@ -387,16 +387,11 @@ module.exports = Object.freeze({ DNS6: 0x37, DNSADDR: 0x38, P2P_WEBSOCKET_STAR: 0x01df, + P2P_STARDUST: 0x0115, P2P_WEBRTC_STAR: 0x0113, P2P_WEBRTC_DIRECT: 0x0114, UNIX: 0x0190, - // archiving formats, - - // image formats, - - // video formats, - // IPLD formats, DAG_PB: 0x70, DAG_CBOR: 0x71, @@ -421,7 +416,15 @@ module.exports = Object.freeze({ DECRED_TX: 0xe1, DASH_BLOCK: 0xf0, DASH_TX: 0xf1, + LEOFCOIN_BLOCK: 0x81, + LEOFCOIN_TX: 0x82, + LEOFCOIN_PR: 0x83, TORRENT_INFO: 0x7b, TORRENT_FILE: 0x7c, - ED25519_PUB: 0xed + ED25519_PUB: 0xed, + + // Content Namespaces, + IPLD_NS: 0xe2, + IPFS_NS: 0xe3, + SWARM_NS: 0xe4 }) diff --git a/src/print.js b/src/print.js index 0e5a35a..985657d 100644 --- a/src/print.js +++ b/src/print.js @@ -386,16 +386,11 @@ module.exports = Object.freeze({ 0x37: 'dns6', 0x38: 'dnsaddr', 0x01df: 'p2p-websocket-star', + 0x0115: 'p2p-stardust', 0x0113: 'p2p-webrtc-star', 0x0114: 'p2p-webrtc-direct', 0x0190: 'unix', - // archiving formats, - - // image formats, - - // video formats, - // IPLD formats, 0x70: 'dag-pb', 0x71: 'dag-cbor', @@ -420,7 +415,15 @@ module.exports = Object.freeze({ 0xe1: 'decred-tx', 0xf0: 'dash-block', 0xf1: 'dash-tx', + 0x81: 'leofcoin-block', + 0x82: 'leofcoin-tx', + 0x83: 'leofcoin-pr', 0x7b: 'torrent-info', 0x7c: 'torrent-file', - 0xed: 'ed25519-pub' + 0xed: 'ed25519-pub', + + // Content Namespaces, + 0xe2: 'ipld-ns', + 0xe3: 'ipfs-ns', + 0xe4: 'swarm-ns' })