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.
Adds a convenience to create an ED25519 keypair with a user's torus key. I thought it would be better to add this functionality here in the torus-utils-swift project, that way it is capable of being used in both the CustomAuth and OpenLogin swift packages.
The only dependency that was brought in is the TweetNaCl Swift wrapper and original C library. If you would rather not have an additional dependency I can just bring that code into the repository and reference the original code base in the code.
The implementation is from the TweetNaCl website here https://tweetnacl.cr.yp.to/software.html.
I was also going to create two additional PRs in the CustomAuth and OpenLogin projects to update the required version of the TorusUtils and add examples of how to use the method to retrieve the keypair and use it to create a Solana Wallet.
If this isn't the right place for this functionality please let me know and I can move appropriately!