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

ThreeIdProvider creates a new DID when the same seed is provided #262

Open
carlfairclough opened this issue Jul 3, 2023 · 4 comments
Open

Comments

@carlfairclough
Copy link

carlfairclough commented Jul 3, 2023

I am currently trying to allow users to usedid:3 without using the 3id-connect modals, however while integrating I found that every time the same seed was provided, a new DID was created.

To investigate, I set up a demo project which only generates a DID from seed, and confirmed the behaviour.

Code providing seed to ThreeIdProvider: https://github.com/carlfairclough/ceramic-3id-demo/blob/758b67eb0ce121c1534e9bb9def11d0626493f21/src/utils/connect.ts#L20C1-L24C6

Demo: https://ceramic-demo-eosin.vercel.app/

@oed
Copy link
Member

oed commented Jul 4, 2023

Use of 3ID is no longer recommend. Instead use DID PKH using did-session: https://did.js.org/docs/authorization

@carlfairclough
Copy link
Author

Kindly requesting

  • a recommendation on how to reliably allow users to access and manage their existing data without the 3id-connect modal
  • to clearly deprecate abandoned functionality
  • To update your own documentation to avoid others pursuing this.

@oed
Copy link
Member

oed commented Jul 7, 2023

Hey @carlfairclough, excuse the delayed response.

  1. If the question is how to migrate data from did:3 to did:pkh, the best way is probably to:
    a. Find the did:3 and read the data
    b. Write the data to a new stream that the did:pkh controlls
  2. (and 3), yes we are planning to do this.

@mzkrasner
Copy link

Hello @carlfairclough - happy to help if you still need it. Feel free to contact me directly - mzk@3box.io

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

3 participants