Device Manager for MicroMinion platform
var MicroMinionPlatform = require('mm-platform')
var DeviceManager = require('mm-services-devices')
var MemStore = require('kad-memstore')
var platform = new MicroMinionPlatform()
var devices = new DeviceManager({
platform: platform,
storage: new MemStore(),
logger: platform._log
})
Adds a third-party key that is trusted to database. dontSave is boolean to determine whether or not to save devices list to storage.
Calls the tenant service on publicKey and provides secret in order to create a new tenant
Returns an array with all trusted publicKeys
The data structure maintained is an array of trusted public keys
Published locally. Contains list of trusted devices.