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

eth provider failed on mobile #11

Open
dckc opened this issue Sep 6, 2020 · 3 comments
Open

eth provider failed on mobile #11

dckc opened this issue Sep 6, 2020 · 3 comments
Labels
question Further information is requested

Comments

@dckc
Copy link
Contributor

dckc commented Sep 6, 2020

I tried trust wallet. A colleague tried metamask.

I wonder if this we're using the current API or whatever.

// Metamask wrapper for Ethereum provider

@tgrospic
Copy link
Owner

tgrospic commented Sep 7, 2020

I was using latest documentation for Metamask.
https://metamask.github.io/metamask-docs/guide/ethereum-provider.html#methods-new-api

Request for signature is in Ethereum format defined in EIP-1193.
https://eips.ethereum.org/EIPS/eip-1193
https://github.com/ethereum/go-ethereum/wiki/Management-APIs#personal_sign

I'm not aware how browser extensions like Metamask can be run on mobile. I'm especially interested in using WebAuthn to connect directly from a web page.
https://www.w3.org/TR/webauthn/

@tgrospic tgrospic added the question Further information is requested label Sep 7, 2020
@dckc
Copy link
Contributor Author

dckc commented Oct 22, 2020

The MetaMask extension provider is synchronously injected, while the MetaMask mobile provider is asynchronously injected. -- @metamask/detect-provider - npm

@dckc
Copy link
Contributor Author

dckc commented Oct 23, 2020

suggested fix for this and #15 : https://github.com/rchain-community/rchain-api/blob/master/src/ethProvider.js#L4-L59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants
@dckc @tgrospic and others