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

Add tool to convert human-readable to encoded CID format #3

Open
olizilla opened this issue Feb 21, 2018 · 1 comment
Open

Add tool to convert human-readable to encoded CID format #3

olizilla opened this issue Feb 21, 2018 · 1 comment

Comments

@olizilla
Copy link
Collaborator

Add a CID builder that lets you create a CID from drop downs for each multiformat, or let's you paste in a human CID to get the encoded version out.

@SgtPooki
Copy link
Contributor

@olizilla Is there still value in this ask? I feel like the human CID -> encoded version is solved already.

For the CID builder, it would be cool if each of the inputs for a CID were supported:

<base>base(<cid-version><multicodec><multihash-algorithm><multihash-length><multihash-hash>)

Where inputs in the builder would be:

  1. CID version to use (V0 would pre-select required values as mentioned at https://proto.school/anatomy-of-a-cid/06#converting-cid-versions)
  2. Base (disabled and set to base58btc when CID version is 0)
  3. codec to use (disabled and set to dag-pb when CID version 0 is used)
  4. hashing algorithm to use (disabled and set to sha2-256 when CID version 0 is used)
  5. hash length (disabled and set to 32 when CID version 0 is used)
  6. file/content (file or string input)

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

2 participants