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

Application crash on launch #30

Open
KunalDev opened this issue Jan 19, 2023 · 0 comments
Open

Application crash on launch #30

KunalDev opened this issue Jan 19, 2023 · 0 comments

Comments

@KunalDev
Copy link

Hi All,

Application is getting crash on launch at below code in DatabaseCoordinator. If I comment out the code. Its working. However while creating wallet: went to infinite loop or sometimes I got logged out from wallet app. Any suggestions ?

    migrator.registerMigration("challenge keys format") { _ in

        let fixKey = { (keyType: SecureStorage.Keys) -> () in
            if try self.secureStorage.has(keyType) {
                let publicKey = try self.secureStorage.get(keyType)
                if publicKey.count > 33,
                    let stringyKey = String(data: Data(hex: publicKey), encoding: .utf8) {
                    try self.secureStorage.store(stringyKey, at: keyType)
                }
            }
        }

		// Crash here

        try fixKey(.passwordPublicKey)
        try fixKey(.recoveryCodePublicKey)
    }

Logout

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant