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

Web3 signer functionality #56

Merged
merged 36 commits into from
Jul 31, 2024
Merged

Web3 signer functionality #56

merged 36 commits into from
Jul 31, 2024

Conversation

ricomateo
Copy link
Contributor

@ricomateo ricomateo commented Jul 25, 2024

This PR branches from lambdaclass:signer branch

This PR adds web3 signer functionality. At the moment we have implemented:

  • A function to retrieve a remote signer from AWS Key Management Service
  • A web3 signer that gets a transaction signature by sending an RPC request

@ricomateo ricomateo marked this pull request as ready for review July 25, 2024 19:45
@dralves
Copy link
Collaborator

dralves commented Jul 25, 2024

@ricomateo this contains part of the same code as the lambdaclass:signer branch, can you merge/replace/retarget?

@ricomateo
Copy link
Contributor Author

@dralves I could merge the other branch but it needs a workflow approval

@ricomateo ricomateo changed the title Web3 signer functionality AWS KMS Web3 signer functionality Jul 26, 2024
@ricomateo ricomateo marked this pull request as draft July 26, 2024 19:39
@ricomateo ricomateo changed the title AWS KMS Web3 signer functionality Web3 signer functionality Jul 26, 2024
@ricomateo ricomateo marked this pull request as ready for review July 30, 2024 19:15
crates/signer/src/signer.rs Show resolved Hide resolved
crates/signer/src/signer.rs Outdated Show resolved Hide resolved
assert_eq!(signer.address(), recovered_address);
}

// This test will fail if anvil is not installed (Foundry contains anvil)
Copy link
Collaborator

Choose a reason for hiding this comment

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

could you add this and the docker prereqs to run tests to the docs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

do you mean the rust docs comments? or should we add a README.md with the signer docs?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I meant to add this to the parent/root readme, since these tests run with the rest of the tests and these pre-reqs are required for the tests to pass

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done!

crates/signer/Cargo.toml Outdated Show resolved Hide resolved
@dralves dralves merged commit 9873a72 into Layr-Labs:main Jul 31, 2024
1 check passed
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