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

Unable to get pub key #45

Open
StrathCole opened this issue Feb 16, 2024 · 3 comments
Open

Unable to get pub key #45

StrathCole opened this issue Feb 16, 2024 · 3 comments

Comments

@StrathCole
Copy link
Contributor

Hello,

when you have a fresh wallet and send funds to it, the pubkey is not yet recorded on chain.
This only happens on the first transaction signed from that wallet.
But this renders cosmes unusable in those cases as you cannot connect such a wallet. It errors with "unable to get pub key".
Wallets need to be able to interact when they have funds even when the pubkey is not yet available on chain. This works correctly with other libs.

@AaronCQL
Copy link
Member

Hey, which exact wallet are you using to sign that transaction?

The pubkey is resolved by first requesting the wallet to return the user's pubkey, failing which, then it'll fallback to querying the chain for the pubkey. Most wallets are able to return the user's pubkey, and only certain wallets like Station mobile app aren't able to. If this issues is due to Station mobile app, then we'd need to wait for the Station team to support requesting for the user's pubkey. Alternatively, if the chain does not have the user's pubkey, we could ask the user to sign an arbitrary message that cosmes will use to recover the pubkey.

@StrathCole
Copy link
Contributor Author

Okay. Thank you very much. It was indeed station mobile. The sign option as a fallback is an interesting idea.

@StrathCole
Copy link
Contributor Author

I think this is solved, @AaronCQL?

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

No branches or pull requests

2 participants