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

Determine Ethereum style address from public key #148

Open
richardblythman opened this issue Dec 31, 2024 · 3 comments
Open

Determine Ethereum style address from public key #148

richardblythman opened this issue Dec 31, 2024 · 3 comments

Comments

@richardblythman
Copy link
Contributor

No description provided.

@Satti-Gowtham
Copy link
Collaborator

Here's a Gist addressing the above issue
https://gist.github.com/Satti-Gowtham/265e07e84d0cc1eb0fc9784d39ed5873

@richardblythman
Copy link
Contributor Author

@Satti-Gowtham This code snippet looks good (I didn't test it yet though).

How we can add this to the codebase:

  1. Add the function for generating the addressin user.py here
  2. Call this function during the user setup flow around here
  3. Modify the hub client signup method to also include the address here
  4. Add the address as a field in the user table (schema here)

Anything else I'm missing?

We will also need to update the Naptha SDK similarly (generate user function, hub client) and CLI (listing user addresses etc). Let me know and I can create an issue for that.

@Satti-Gowtham
Copy link
Collaborator

@Satti-Gowtham This code snippet looks good (I didn't test it yet though).

How we can add this to the codebase:

  1. Add the function for generating the addressin user.py here
  2. Call this function during the user setup flow around here
  3. Modify the hub client signup method to also include the address here
  4. Add the address as a field in the user table (schema here)

Anything else I'm missing?

We will also need to update the Naptha SDK similarly (generate user function, hub client) and CLI (listing user addresses etc). Let me know and I can create an issue for that.

Sounds about right. What about the user table in postgres(local-db). Do we need to store the user address there as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

2 participants