An approved address is a wallet that is generated in a user’s browser to sign transactions on their behalf. Without an approved address, users would have to sign a message for every interaction, including likes, posts, reposts, etc. With an approved address, the UI feels more like a Web2 social network.
The approved address is created by generating an Ethereum wallet locally in the browser. The wallet’s private key is never shared with PostPlaza. It can only sign transactions relating to PostPlaza and it cannot interact with any other contracts on the user’s behalf. Once a wallet is created, the user signs a message to approve its public address for NFPosts interactions.
From then on, all transactions are signed by the approved address and sent to a relay to be submitted. All functions in PostPlaza’s contracts check to see if the person who signed the transaction is the user or the user’s approved address.
View the Approved Address contract in Deployed Contracts.