Implement Clone for LightsparkClient and Requester to Leverage Actix Web Data Extractor#25
Draft
Nsandomeno wants to merge 2 commits intolightsparkdev:mainfrom
Draft
Implement Clone for LightsparkClient and Requester to Leverage Actix Web Data Extractor#25Nsandomeno wants to merge 2 commits intolightsparkdev:mainfrom
Clone for LightsparkClient and Requester to Leverage Actix Web Data Extractor#25Nsandomeno wants to merge 2 commits intolightsparkdev:mainfrom
Conversation
zhenlu
requested changes
Jan 3, 2024
Contributor
zhenlu
left a comment
There was a problem hiding this comment.
Hey @Nsandomeno, thanks for the contribution.
The code looks good, however please remove the submodule from repo.
Contributor
There was a problem hiding this comment.
Please remove this from the repo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Hi, team... I'm blown away by your pace and so excited about what you're up too. I'm curious if there has been a decision against implementing
CloneforLightsparkClientandRequester, to avoid a global client instance.If
Cloneis implemented for these two structs thanLightsparkClientcan be injected as a Data Extractor in the Web Actix framework, preventing the need to initialize per request.I've been pondering security considerations that would warrant this idea dumb, but the implementations of
OperationSignKeyare alsoClone, which I believe should cover not only signing ops that recover keys from Lightspark but, manually loaded and remote signing operations as well... so I wanted to raise it.My
lightspark-rsfork commit is here which enables something like this:I would greatly appreciate your thoughts!
P.S.
I'm an active candidate for your Backend Engineer role, building a lot of personal momentum within the Bitcoin tech stack, and would be over the moon to contribute to your mission.