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

out of date readme ? Web5.did.create("ion"); does not exist #317

Closed
fkkfrank opened this issue Nov 27, 2023 · 3 comments · Fixed by #445
Closed

out of date readme ? Web5.did.create("ion"); does not exist #317

fkkfrank opened this issue Nov 27, 2023 · 3 comments · Fixed by #445
Assignees
Labels
package: api @web5/api pacakge
Milestone

Comments

@fkkfrank
Copy link

The main repo read me suggests one can register an ION did right from the cals

import { Web5 } from "@web5/api";
const myDid = await Web5.did.create("ion");

Uncaught TypeError TypeError: Cannot read properties of undefined (reading 'create')

Web5.did does not exist on the class. Also not as a function of the instantiated object returned from web5.connect()

% npm info "@web5/api" version
0.8.2

https://github.com/TBD54566975/web5-js#web5didcreatemethod-options

@fkkfrank
Copy link
Author

Maybe its possible that one must configure the DWN accept plain/text without any protocol because in the same environment if I configure the Shared ToDo list Protocol from the tutorial the two nodes are able to send to each other.

@Chrissiku
Copy link

@fkkfrank try this, it will create a did for you with dht methoth

npm install @web5/dids

then

import { DidDhtMethod } from '@web5/dids';
    
const myDidDht = await DidDhtMethod.create('dht');
console.log(myDidDht);

@TechWizard9999
Copy link

@fkkfrank, I have updated the pull request with the following changes:

  1. Edited the README.md file to provide clearer instructions for users.
  2. Added step-by-step guidelines for making edits, updating content, and committing changes to the repository.
  3. Included troubleshooting tips to help users address potential issues.
  4. Presented alternative methods for creating Decentralized Identifiers (DIDs) to offer users more flexibility and options.

Please review the changes, and if you have any feedback, suggestions, or specific modifications in mind, please share your thoughts. Your input is valuable in ensuring that these updates align seamlessly with the project's objectives.

look forward to hearing from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: api @web5/api pacakge
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants