How to use the ipns.validator function in ipns

To help you get started, we’ve selected a few ipns examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ipfs / js-ipfs / src / core / ipns / routing / pubsub-datastore.js View on Github external
constructor (pubsub, localDatastore, peerId) {
    this._pubsub = pubsub
    this._subscriptions = {}

    // Bind _handleSubscriptionKey function, which is called by PubsubDatastore.
    this._handleSubscriptionKey = this._handleSubscriptionKey.bind(this)
    this._pubsubDs = new PubsubDatastore(pubsub, localDatastore, peerId, ipns.validator, this._handleSubscriptionKey)
  }
github ipfs / js-ipfs / src / core / ipns / routing / utils.js View on Github external
  selector: (k, records) => ipns.validator.select(records[0], records[1])
}
github ipfs / js-ipfs / src / core / ipns / routing / utils.js View on Github external
    func: (key, record, cb) => ipns.validator.validate(record, key, cb)
  },