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

Smarter pick key for credential management #4

Open
jasny opened this issue Jul 26, 2023 · 0 comments
Open

Smarter pick key for credential management #4

jasny opened this issue Jul 26, 2023 · 0 comments

Comments

@jasny
Copy link
Member

jasny commented Jul 26, 2023

When updating a credential status and keyRef is not specified, the first key of the identifier is picked to sign the transaction. This is allowed according to the LTO specs. However, it would be nicer to use the same key that was used to sign the credential by default.

const identifier = await this.getIdentifier(vc.issuer, context?.agent);
key = this.pickSigningKey(identifier, options?.keyRef);

If the preferred key is no longer available, use the first key.

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