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

Bug: What is the appropriate way to create a PrivateKey? #397

Open
alexrisch opened this issue Sep 6, 2024 · 0 comments
Open

Bug: What is the appropriate way to create a PrivateKey? #397

alexrisch opened this issue Sep 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@alexrisch
Copy link
Contributor

Describe the bug

I am attempting to use PrivateKey.sign(data)
Implementing like this:
let privateKey = try PrivateKey(xmtpClient.keys.identityKey)
However when this is done the privateKey's address does not match the client's address

Is there a correct one to handle this? Or should there be different values used to ultimately create a signature?

Expected behavior

No response

Steps to reproduce the bug

No response

@alexrisch alexrisch added the bug Something isn't working label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant