mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-25 10:32:14 +00:00
chore: fix multicodec updates (#835)
* chore: fix specific multicodec version * chore: fix multicodec issues * chore: remove prepare script
This commit is contained in:
parent
37d66fd88c
commit
01d43a7b60
@ -3,9 +3,14 @@
|
||||
const multicodec = require('multicodec')
|
||||
|
||||
// The domain string used for peer records contained in a Envelope.
|
||||
module.exports.ENVELOPE_DOMAIN_PEER_RECORD = multicodec.getName(multicodec.LIBP2P_PEER_RECORD)
|
||||
const domain = multicodec.getName(multicodec.LIBP2P_PEER_RECORD) || 'libp2p-peer-record'
|
||||
|
||||
// The type hint used to identify peer records in a Envelope.
|
||||
// Defined in https://github.com/multiformats/multicodec/blob/master/table.csv
|
||||
// with name "libp2p-peer-record"
|
||||
module.exports.ENVELOPE_PAYLOAD_TYPE_PEER_RECORD = Uint8Array.from([3, 1])
|
||||
const payloadType = Uint8Array.from([3, 1])
|
||||
|
||||
module.exports = {
|
||||
ENVELOPE_DOMAIN_PEER_RECORD: domain,
|
||||
ENVELOPE_PAYLOAD_TYPE_PEER_RECORD: payloadType
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user