Code Monkey home page Code Monkey logo

Comments (4)

vqhuy avatar vqhuy commented on June 10, 2024

@arlolra when importing, there are certainly duplicate records. There are 2 types: same account name, protocol but different private key; and same account name, protocol and private key. How do we handle it?
btw, the link is dead.

from ctypes-otr.

arlolra avatar arlolra commented on June 10, 2024

Fixed the link, thanks.

The way I imagined this working is that, in the same preference pane where we let the user generate a new key, there's a button to import a key. If you pass it an otr.private_key file, it would parse it and present the user options to disambiguate, assuming there's more than one key in the file and no accountname/protocol match.

I'm not sure if that's a great user interaction though. And with multiple accounts could be tedious. But let's assume this is for people coming over from Pidgin or Adium (or, I guess, restoring from backup). Tor Messenger will soon have a secure updater, so this manual copying between versions will come to an end.

from ctypes-otr.

vqhuy avatar vqhuy commented on June 10, 2024

If you pass it an otr.private_key file, it would parse it and present the user options to disambiguate, assuming there's more than one key in the file and no accountname/protocol match.

Assume in the current otr.private_key there is a key K of an account name a with a protocol p, and in the importing file there is a key K' of same account a with the protocol p, so the UI will present the user options to choose which key to keep, right?

from ctypes-otr.

arlolra avatar arlolra commented on June 10, 2024

The way I described it above, it isn't a bulk import; it's per account. So, if the user wanted to keep the current key, they wouldn't be importing one for that account.

from ctypes-otr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.