-
Notifications
You must be signed in to change notification settings - Fork 10
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
Review multibase vs base58 key representation #3
Comments
Is Example 4 correct? If you have
then shouldn't that be equivalent to
? But the example currently seems to show two completely different key pairs. |
I don't mind For example -- we could say that the linked data key type can say which bases are supported (ideally just one). |
Agree, I think throwing an error in the library when an unsupported base is detected is the best solution. And let the signature suite itself define the supported bases, so that support for a suite automatically causes libraries to support popular bases. |
But again, Example 4 shows two different keys, even though they both have the id If someone confirms that, I could try to fix the example(s). |
IIRC they are supposed to be the same key encoded 2 different ways, or that was my intention. the It looks like I did the math wrong. |
its also possible that the prefixing shifted the base58 encoding of the binary, and thats why the character strings look different. |
the desired behavior is to show both encodings for the same binary key material. |
Hi @OR13, @peacekeeper, The example |
@clehner I suspect the test vectors are incorrect, I built them a long time ago, and AFAIK nobody has tested them until you :) Please open a PR to correct them, I am also unsure if the byte prefix for private key is correct... be careful. |
Looks like
Closing. |
@dlongley I recall you may have objected to the idea of
publicKeyMultibase
vspublicKeyBase58
.Would love to hear your thoughts.
My initial thoughts are that
publicKeyMultibase
might be easier to align with IPLD in the future.The text was updated successfully, but these errors were encountered: