mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-29 18:21:23 +00:00
12 lines
465 B
JavaScript
12 lines
465 B
JavaScript
'use strict'
|
|
|
|
const multicodec = require('multicodec')
|
|
|
|
// The domain string used for peer records contained in a Envelope.
|
|
module.exports.ENVELOPE_DOMAIN_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 = multicodec.print[multicodec.LIBP2P_PEER_RECORD]
|