Creating todo for seed

This commit is contained in:
Chris Troutner
2024-01-28 08:22:55 -08:00
parent b697f37199
commit 050141d31e
+5 -4
View File
@@ -41,10 +41,6 @@ const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
const ROOT_DIR = `${__dirname}../../../`
const IPFS_DIR = `${__dirname}../../../.ipfsdata/ipfs`
const keychainInit = {
pass: 'very long, very secure password'
}
class IpfsAdapter {
constructor (localConfig) {
// Encapsulate dependencies
@@ -115,6 +111,11 @@ class IpfsAdapter {
const blockstore = new FsBlockstore(`${IPFS_DIR}/blockstore`)
const datastore = new FsDatastore(`${IPFS_DIR}/datastore`)
// TODO: Replace this with a random string generator.
const keychainInit = {
pass: 'very long, very secure password'
}
// Create an identity
let peerId
const chain = keychain(keychainInit)({