Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep using keyring storage from older versions #108

Merged
merged 11 commits into from
Nov 17, 2023
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ module.exports = {
function init (ssb, config) {
if (!(config.box2 && config.box2.legacyMode)) throw Error('ssb-tribes error: config.box2.legacyMode needs to be `true`')

// TODO: check if the old keyring path exists, in that case require config.box2.path to be set to point to it
Powersource marked this conversation as resolved.
Show resolved Hide resolved

const state = {
keys: ssb.keys,
feedId: bfe.encode(ssb.id),
Expand Down
Loading