Skip to content

Confusion regarding KeyPairResource#id and KeyPairResource#keyId #379

Discussion options

You must be logged in to vote

generally, the id is a unique internal id of the resource (think: primary key in a database) and should never be used outside of IH, other than when managing keys, of course.
The keyId on the other hand is the publicly visible ID of the key that would be used for example in the kid header of a JWT, or should be put in DID documents.

If the id is used in a DidDocument, that's a bug for sure.

Rotating or revoking keys would create another KeyPairResource, thus also changing the id. It would also most likely change the keyId, because typically rotated keys have a grace period during which the old key is still resolvable for verification, but doesn't get used for signing anymore.

[edit]: this #…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by thomasrutger
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants