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

Add custom signature call page and MetaMask integration #3

Merged
merged 26 commits into from
Aug 2, 2021

Conversation

hoonsubin
Copy link
Owner

@hoonsubin hoonsubin commented Apr 19, 2021

Feature Summary

Related to this grant milestone

This pull request adds the Custom Signature page under the Account tab.
The Custom Signature page allows the user to submit a transaction that was signed with an Ethereum private key and use it as a native ECDSA account in Substrate. Plus, you are able to use MetaMask for signature requests, which allows users to use their Ethereum address inside Ledger and Trezor to create a transaction.

Preview

Ledger

ecdsa-sig-final.mp4

Trezor

ecdsa-sig-trezor.mov

IMG_0796

Screen Shot 2021-01-15 at 1 06 30 AM

Notable Changes

Usage

Currently, this page is made with MetaMask in mind. Most browser-injected ethereum wallets that use the window.ethereum object and accept the personal_sign method should be compatible, but please understand that there may be unexpected errors.

You can learn more about the usage from this doc: https://docs.plasmnet.io/build/metamask-signatures

hoonsubin and others added 24 commits January 17, 2021 17:10
[note]: this pull request was merged to clean the bloating commits done to this branch

* boilerplate work for making a new page

* added ethereum provider hooks (wip)

* added assert polyfil and eth signature recovery

* reset error message

* improved address change event handler

* added custom signature call (WIP)

* changed ecdsa address view component

* changed call encoding

* added dynamic chain address format

* fixed account switch handler

* compress recovered public key

* added transaction confirmation modal

* boilerplate work for making a new page

* added ethereum provider hooks (wip)

* added assert polyfil and eth signature recovery

* reset error message

* improved address change event handler

* added custom signature call (WIP)

* changed ecdsa address view component

* changed call encoding

* added dynamic chain address format

* fixed account switch handler

* compress recovered public key

* added transaction confirmation modal

* updated react component package version

* fixed dependencies list
@hoonsubin hoonsubin changed the base branch from master to develop August 2, 2021 05:23
@hoonsubin hoonsubin changed the base branch from develop to page/custom-signature August 2, 2021 05:54
@hoonsubin hoonsubin changed the title Fix/mm error handling Add custom signature call page and MetaMask integration Aug 2, 2021
@hoonsubin hoonsubin marked this pull request as ready for review August 2, 2021 05:55
@hoonsubin hoonsubin merged commit 797e009 into page/custom-signature Aug 2, 2021
@hoonsubin hoonsubin deleted the fix/mm-error-handling branch August 2, 2021 06:21
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

Successfully merging this pull request may close these issues.

1 participant