We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38c0f48 commit a013f1aCopy full SHA for a013f1a
README.md
@@ -22,13 +22,18 @@ This module:
22
var SecretStack = require('secret-stack')
23
var databasePlugin = require('./some-database')
24
var bluetoothPlugin = require('./bluetooth')
25
-var config = require('./some-config')
+const ssbKeys = require('ssb-keys')
26
+var keys = ssbKeys.loadOrCreateSync(path.join(__dirname, 'secret'))
27
+
28
+// keys are necessary for multiserver address
29
+var config = { keys }
30
31
var App = SecretStack({ appKey: '1KHLiKZvAvjbY1ziZEHMXawbCEIM6qwjCDm3VYRan/s=' })
32
.use(databasePlugin)
33
.use(bluetoothPlugin)
34
35
var app = App(config)
36
+console.log('address', app.getAddress())
37
```
38
39
For documentation on plugins, see [PLUGINS.md](./PLUGINS.md).
0 commit comments