mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-consumer.git
synced 2026-09-21 16:52:03 -07:00
Creating todo for seed
This commit is contained in:
@@ -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)({
|
||||
|
||||
Reference in New Issue
Block a user