Skip to content

[SDK] How to properly use the EIP712 signer in frontend? #21

Closed Answered by dutterbutter
VanillaScent asked this question in SDKs
Discussion options

You must be logged in to vote

@VanillaScent a couple things to mention here. See below.

  1. Storing a user's private key in localStorage is generally considered unsafe and should be avoided. localStorage is not designed to be a secure storage solution. It is accessible by any script running in the same origin, meaning any JavaScript code on the same domain can access and manipulate the data stored in localStorage. If an attacker manages to inject malicious code into your application, they could potentially access and steal the private key from localStorage. It also does not provide built-in encryption for data storage.

  2. It is difficult to suggest a "recommended approach to sign EIP712 transactions in frontend applicati…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by MexicanAce
Comment options

You must be logged in to vote
2 replies
@VanillaScent
Comment options

@dutterbutter
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
SDKs
Labels
sdk Questions for the SDKs
2 participants