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

Assert public key value integrity based on encoding #6

Open
paulobmarcos opened this issue Mar 22, 2019 · 0 comments
Open

Assert public key value integrity based on encoding #6

paulobmarcos opened this issue Mar 22, 2019 · 0 comments

Comments

@paulobmarcos
Copy link
Contributor

Public Keys

The value of the public key must be encoded in only one of the following:
Pem, Jwk, Hex, Base64, Base58, Multibase

Where, depending on the encoding, the corresponding property name should be used to match its value:
Pem - publicKeyPem
Jwk - publicKeyJwk
Base64 - publicKeyBase64
Base58 - publicKeyBase58
Multibase - publicKeyMultibase

This raised question of whether we should verify the integrity of the value based on its encoding before adding it to the document.
When reading a document, an entity might have parsing methods for each encoding and it the value doesn't match, the public key might be considered "invalid".

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

1 participant