Files: da7ddd7cb4233317a9843ba3cbb9866cc8b10b64 / app.js
559 bytesRaw
1 | const ssbClient = require('ssb-client') |
2 | const depject = require('depject') |
3 | const pull = require('pull-stream') |
4 | const _eval = require('eval') |
5 | |
6 | |
7 | const seed_blob = "&+URFENx0A+QQSd6xM/aJKqamPAVZGytZ5O5bI017vZk=.sha256" |
8 | |
9 | function load_blobmodule(blob, sbot) |
10 | { |
11 | pull( |
12 | sbot.blobs.get(seed_blob), |
13 | pull.collect(function (err, values) { |
14 | var blob_string = values.join('') |
15 | return eval( blob_string ) |
16 | }) |
17 | ) |
18 | } |
19 | |
20 | // Get *and execute* the seed blobmodule |
21 | ssbClient(function (err, sbot) { |
22 | // ready |
23 | |
24 | // blob_hash, |
25 | load_blobmodule(blob, sbot) |
26 | }) |
27 |
Built with git-ssb-web