Simplify usage of credentials().issue() and ipex().grant() #150
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am working on multisig issuance using signify and found it very hard to follow the flow for multisig issuance => grant. To get a grasp of it I cleaned up the code for issue + grant and I think I found some complicated and repeated code.
In short:
I think it should be all correct since it works. I also took inspiration from the commit here pfeairheller@dc98330 to remove the redundant Saider arguments when creating the attachments.
If you do not like it, just let me know and I will close this. I don't necessarily need to get this merged. I just implemented it so that I could figure out how to do multisig credential issuance on my end and thought it was an improvement.