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

EI-2938 remove keys #69

Open
wants to merge 7 commits into
base: v3
Choose a base branch
from
Open

EI-2938 remove keys #69

wants to merge 7 commits into from

Conversation

andyantrim
Copy link

Add client library checks that ensure a key is not removed, but still allow the key to be revoked.

assert.NilError(t, err)

subjectDoc, err = resolver.GetDocument(ctx, subjectDoc.ID)
assert.NilError(t, err)

_, _, err = advancedapi.CreateDelegationProof(delegatingIssuer, subjectDoc, test.ValidKeyPairPlop)
assert.ErrorContains(t, err, "unable to find public key in document matching key pair secrets")
assert.NilError(t, err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be the case?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@StephanieBracaloni input on this test case? Should a delegation with a revoked key still be able to create a proof?

pkg/register/document.go Outdated Show resolved Hide resolved
pkg/register/document.go Outdated Show resolved Hide resolved
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

Successfully merging this pull request may close these issues.

None yet

2 participants