AlphaWallet / AlphaWallet/alpha-wallet-android

Add 'signTransaction' method to DappBrowser

オープン
#3,102 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
Free for all
主要言語
Java
スター
646
フォーク
579
PR マージ指標
30日以内にマージされた PR はありません

説明

The DappBrowser still does not handle 'Sign Transaction only'.

*I think* to handle this we will need to add an additional shim in the init.js provider which is identical to the 'processTransaction' hook, only called 'processSignTransaction'. This hooks into the sign transaction code in the AlphaWallet Provider (alphawallet.js). I have added all the backend methods to handle signing only in DappBrowserFragment and DappBrowserViewModel.

Investigate how to do this - you will probably need to write a dapp that has the signTransaction method as I couldn't find any. Suggestion: use the code here: https://github.com/JamesSmartCell/JamesSmartCell.github.io and add the sign Transaction. You'd need to check the signature of the RLP code you receive, so you'll need to use Ethers.js for that - I think I already included it.

Once this is in, we can re-deploy and use it as a handy testbed.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。