Confusion regarding KeyPairResource#id
and KeyPairResource#keyId
#379
-
I am confused on the purpose of each. The behavior of these concepts was recently changed: #369. The The documentation for But using My guess is that |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
generally, the If the Rotating or revoking keys would create another [edit]: this #380 should fix the bug. |
Beta Was this translation helpful? Give feedback.
-
@thomasrutger if this answers your question, would you mind marking it as such? |
Beta Was this translation helpful? Give feedback.
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 thekid
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 theid
. It would also most likely change thekeyId
, 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 #…