git ssb

0+

dangerousbeans / blobjectbay



Tree: da7ddd7cb4233317a9843ba3cbb9866cc8b10b64

Files: da7ddd7cb4233317a9843ba3cbb9866cc8b10b64 / app.js

559 bytesRaw
1const ssbClient = require('ssb-client')
2const depject = require('depject')
3const pull = require('pull-stream')
4const _eval = require('eval')
5
6
7const seed_blob = "&+URFENx0A+QQSd6xM/aJKqamPAVZGytZ5O5bI017vZk=.sha256"
8
9function 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
21ssbClient(function (err, sbot) {
22 // ready
23
24 // blob_hash,
25 load_blobmodule(blob, sbot)
26})
27

Built with git-ssb-web