|
@@ -9,10 +9,8 @@ const constants = require('cobox-constants')
|
9
|
9
|
const { loadParentKey, saveParentKey } = require('./lib/keys')
|
10
|
10
|
|
11
|
11
|
const CONFIG_FILE = 'config.yml'
|
12
|
|
-const IDENTITY_SUBKEY_ID = 0
|
13
|
12
|
|
14
|
13
|
module.exports = (storage, opts) => new CoBoxConfig(storage, opts)
|
15
|
|
-module.exports.IDENTITY_SUBKEY_ID = IDENTITY_SUBKEY_ID
|
16
|
14
|
|
17
|
15
|
const KeyHandler = require('./lib/handlers/keys')
|
18
|
16
|
const MapHandler = require('./lib/handlers/map')
|
|
@@ -51,7 +49,6 @@ class CoBoxConfig {
|
51
|
49
|
saveParentKey(this.root, parentKey)
|
52
|
50
|
|
53
|
51
|
this.deriveKeyPair = crypto.keyPair.bind(null, parentKey)
|
54
|
|
- this.identity = crypto.keyPair(parentKey, IDENTITY_SUBKEY_ID)
|
55
|
52
|
this.logger = logger(path.join(this.root, 'logs', logfile))
|
56
|
53
|
this.log = this.logger('cobox-config')
|
57
|
54
|
|