I think what happened here is that I called mount() with an invalid key (it had 'dat://' in it) and now this error throws during load of the parent, crashing the daemon.
Uncaught exception: Error: key must be a buffer of size crypto_generichash_KEYBYTES_MIN
at Object.exports.discoveryKey (/Users/paulfrazee/work/beaker-core/node_modules/hypercore-crypto/index.js:86:10)
at Corestore._optsToIndex (/Users/paulfrazee/work/beaker-core/node_modules/corestore/index.js:34:24)
at Corestore.get (/Users/paulfrazee/work/beaker-core/node_modules/corestore/index.js:85:42)
at MountableHypertrie._createHypertrie (/Users/paulfrazee/work/beaker-core/node_modules/mountable-hypertrie/index.js:96:36)
at MountableHypertrie._trieForMountNode (/Users/paulfrazee/work/beaker-core/node_modules/mountable-hypertrie/index.js:142:10)
at MountableHypertrie._trieForMountNode (/Users/paulfrazee/work/beaker-core/node_modules/mountable-hypertrie/index.js:132:49)
at Get._callback (/Users/paulfrazee/work/beaker-core/node_modules/mountable-hypertrie/index.js:160:19)
at Get._update (/Users/paulfrazee/work/beaker-core/node_modules/hypertrie/lib/get.js:52:8)
at onnode (/Users/paulfrazee/work/beaker-core/node_modules/hypertrie/lib/get.js:86:10)
at Request.onnode [as _callback] (/Users/paulfrazee/work/beaker-core/node_modules/hypertrie/index.js:232:5)
at Request.callback (/Users/paulfrazee/work/beaker-core/node_modules/random-access-storage/index.js:162:8)
at onread (/Users/paulfrazee/work/beaker-core/node_modules/random-access-file/index.js:81:31)
at FSReqCallback.wrapper [as oncomplete] (fs.js:477:5)
I think what happened here is that I called mount() with an invalid key (it had 'dat://' in it) and now this error throws during load of the parent, crashing the daemon.