Created
April 19, 2018 02:05
-
-
Save backus/908f4ea72cadcd67f970737128973701 to your computer and use it in GitHub Desktop.
Revisions
-
backus created this gist
Apr 19, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ const user = web3.eth.accounts[0]; const sigInput = [ { type: "string", name: "Action", value: "Create Account" }, { type: "address", name: "Address", value: user } ]; web3.currentProvider.sendAsync( { method: "eth_signTypedData", params: [sigInput, user], from: user }, handleSignature );