Skip to content

Conversation

@hoonsubin
Copy link
Owner

@hoonsubin hoonsubin commented Jan 16, 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

ecdsa-sig-final.mp4

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/workshop-and-tutorial/metamask-signatures

[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 title [Grant] ECDSA Custom Signature Pallet UI implementation [Hardware Wallet Support Milestone 2] ECDSA Custom Signature Pallet UI implementation Jan 17, 2021
@hoonsubin hoonsubin merged commit 31e242c into master Jan 17, 2021
@hoonsubin hoonsubin deleted the feature/custom-signature-transaction branch January 17, 2021 08:11
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.

2 participants