rnode-client-js icon indicating copy to clipboard operation
rnode-client-js copied to clipboard

eth provider failed on mobile

Open dckc opened this issue 3 years ago • 3 comments

I tried trust wallet. A colleague tried metamask.

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

https://github.com/tgrospic/rnode-client-js/blob/e4d97ee436a9a35ed2fe7b6c3307d03e4e2e9612/src/eth/eth-wrapper.js#L1

dckc avatar Sep 06 '20 19:09 dckc

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 avatar Sep 07 '20 08:09 tgrospic

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

dckc avatar Oct 22 '20 13:10 dckc

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

dckc avatar Oct 23 '20 18:10 dckc