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

Allow multiple wallets per subject #213

Closed
wants to merge 3 commits into from
Closed

Conversation

MartinSchmidt
Copy link
Member

This adds support for a subject/user in the wallet to create multiple wallets.

All query apis returns results for the subject and not on an individual wallet level.

This is a precursor of future implementations which will enable a user to delegate access to a specific wallet to other users.

@MartinSchmidt MartinSchmidt added the enhancement New feature or request label Feb 14, 2024
@@ -154,7 +154,8 @@ public async Task Verify_OnlySingleAllowedPerSubject()
_options,
new CreateWalletRequest());

firstCreateResult.Result.Should().BeOfType<CreatedResult>();
var firstResponse = firstCreateResult.Result.Should().BeOfType<CreatedResult>()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not spin it up and call via rest?


var sliceDb = await _certRepository.GetOwnersAvailableSlices(registry, slice.CertificateId, wallet1.Owner);

sliceDb.Should().HaveCount(1);
sliceDb.Should().ContainEquivalentOf(slice);
}

[Fact]
public async Task QueryAvailableCertificates_MultipleWallets()
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this desired? Do we wan't to sum over wallets when querying certificates?

Copy link

@MartinSchmidt MartinSchmidt linked an issue Feb 19, 2024 that may be closed by this pull request
@MartinSchmidt MartinSchmidt self-assigned this Mar 1, 2024
@MartinSchmidt MartinSchmidt marked this pull request as draft March 1, 2024 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Multi wallet support
2 participants