-
Notifications
You must be signed in to change notification settings - Fork 12
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
Clarify Multicodec Identifiers #35
Comments
I just came through the same thought process. |
That explains it. Thank you for the information, I was unaware of the strange way multicodec handles integers. This should be clarified in the spec. |
Yes, I agree as well, it's pretty unintuitive and makes it hard to read the codec as the values in the csv are stored as "real" ints and not varints. You got to live with that or choose others like JWK+base64 or similar |
How can I help to address this concern? |
Had same trouble as above when I was trying to figure out mapping from key ( @OR13 , I think an example showing the hex of the public key, and then the steps to add |
yes, i have also struggled with this.... I agree with the proposed approach: define a table, include the public key bytes, public key kty / crv, multicodec prefix, base58 encoding. provide an example for all supported multicodec public keys. |
The draft spec says that the Multibase step is a base58 encoding of "a concatenation of the Multicodec [MULTICODEC] identifier for the public key type and the raw bytes". The multicodec table it references is here, and doesn't seem to match the examples in the spec. For instance, for an ed25519 pub key (line 85 in the csv), the Multicodec identifier is listed as 0xed, but the example keys all begin with 0xed01. This extra 01 is also present in the Secp256k1 examples (0xe7 in the list, 0xe701 in the example). The extra 01 byte should either be dropped, or the spec should be clarified to make it clear why these don't match the cited multicodec list.
The text was updated successfully, but these errors were encountered: