-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Multibase, multikey and multihash #1015
Comments
Using the When I create the multibase of 'data' with base 'base64' When I create the multikey of [ecdh|ecdsa] secret key 'key' with base 'base64'
When I create the multikey of eddsa secret key 'key' with base 'base64'
When I create the multikey of [ecdh|ecdsa] public key 'key' with base 'base64'
When I create the multikey of eddsa public key 'key' with base 'base64' When I create the multihash of sha2-256 'hash' with base 'base64'
When I create the multihash of sha2-384 'hash' with base 'base64'
When I create the multihash of sha3-256 'hash' with base 'base64'
When I create the multihash of sha3-384 'hash' with base 'base64' (hash can not be autodetected from length since multihash support different type of hash like keccak and shake that can have the same length) |
One more round of evaluation about saving the type of hash and the multihash status in CODEC to simplify these statements:
which will check if the argument is a hash, and of what kind and will tag it so into CODEC for correct rendering.
If the argument is tagged as multihash in CODEC, then render it as such using base64 as default encoding. The drawback is that users need to remember what is encoded as multihash which is not evident if renamed. I think it is acceptable. |
The encoding can be moved to the then phase, you are right! In the hash I left the type of hash since multihash is expanding also to include other hashes, so I do not think you could distinguish between sha2-256 or sha3-256 or keccak-256 or shake-256. A full list of of multicodec can be found here |
We can distinguish saving in CODEC from the info given in the statement: |
Ok seems good 👌 |
General multi* flow:
Printing data in multibase format
maybe
?
Printing keys in multikey format
Printing hash in multihash format
same as above
Example
The text was updated successfully, but these errors were encountered: