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

signing: add signature client #16

Merged
merged 10 commits into from
Jun 11, 2024
Merged

signing: add signature client #16

merged 10 commits into from
Jun 11, 2024

Conversation

CaioTeixeira95
Copy link
Contributor

What

This PR adds the SignatureClient interface and the EnvSignatureClient which implements the SignatureClient interface. It receives a Stellar Private Key from the environment.

Why

This layer handles the Stellar transaction signature.

Known limitations

N/A

Issue that this PR addresses

Checklist

PR Structure

  • It is not possible to break this PR down into smaller PRs.
  • This PR does not mix refactoring changes with feature changes.
  • This PR's title starts with name of package that is most changed in the PR, or all if the changes are broad or impact many packages.

Thoroughness

  • This PR adds tests for the new functionality or fixes.
  • All updated queries have been tested (refer to this check if the data set returned by the updated query is expected to be same as the original one).

Release

  • This is not a breaking change.
  • This is ready to be tested in development.
  • The new functionality is gated with a feature flag if this is not ready for production.

Copy link

@marcelosalloum marcelosalloum left a comment

Choose a reason for hiding this comment

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

LGTM! Plz, feel free to merge it after addressing the comments below.

internal/signing/signature_client.go Show resolved Hide resolved
internal/signing/signature_client.go Show resolved Hide resolved
internal/signing/signature_client_test.go Outdated Show resolved Hide resolved
go.sum Outdated

Choose a reason for hiding this comment

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

I'm confused in why go.mod was not updated and go.sum was. Did you execute go mod tidy here? Is this something that should have been done in a previous PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm confused too. These PRs were split into 3, but I don't know why it appeared on this PR. May I fix it in another PR that only cleans up the dependencies? I think it would be easier.

Choose a reason for hiding this comment

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

Since you're merging this into the validators branch (and not develop or main), this should be fine as long as @daniel-burghardt agrees with it.

Copy link
Member

Choose a reason for hiding this comment

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

Since this is now pointing to main shall we just run a go mod tidy before merging?

Base automatically changed from validators to main June 7, 2024 20:01
Copy link
Member

@daniel-burghardt daniel-burghardt left a comment

Choose a reason for hiding this comment

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

LGTM! 🔥

@CaioTeixeira95 CaioTeixeira95 merged commit 7f5542e into main Jun 11, 2024
5 checks passed
@CaioTeixeira95 CaioTeixeira95 deleted the env-signature-client branch June 11, 2024 18:34
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.

3 participants