# Guardian accounts

{% embed url="<https://youtu.be/zVv5FjoNBpQ?si=eGc1Zm2LqrhQl_tp>" %}
PCM Wallet Security Tutorial: Guardian Accounts and Social Recovery
{% endembed %}

**Why Set Up Guardian Account:**

* Important note: PCM Wallet will not keep your password. Please save or back-up your password manually in a secure way. In case of password lost, you cannot retrieve the password unless you have setup guardian account.
* Prevent Password Loss: Enhances security, preventing the loss of account ownership during password-related issues. Account recovery is possible with guardian approval. Add only trusted family and friends as guardians for assistance in account recovery and access.

**How It Works:**

* The social recovery wallet operates based on smart contracts deployed on the blockchain. It requires the use of guardians – trusted addresses that are added to the wallet for security verification. If you lose access to your wallet, guardians can help to restore access through a collective vote.
* For instance, with one Guardian account set up, loss of wallet access prompts seeking assistance from the Guardian for recovery. With two accounts set up, approval from both is necessary. With five Guardians, three out of five approvals are required.

| Number of guardian accounts | Required vote for recovery |
| --------------------------- | -------------------------- |
| 1                           | 1                          |
| 2                           | 2                          |
| 3                           | 3                          |
| 4                           | 3                          |
| 5                           | 3                          |

## Tutorial for setting up guardian accounts<br>

1. To setup guardian account, navigate to profile settings, click account security, then set Guardian.&#x20;

<div><figure><img src="/files/ViAflUCzV9JfEbaqNPwY" alt=""><figcaption></figcaption></figure> <figure><img src="/files/S0YsnzUyWroeaKX0db6h" alt=""><figcaption></figcaption></figure> <figure><img src="/files/snBCScVQGXIdd2GeBAeI" alt=""><figcaption></figcaption></figure></div>

2. Submit to create a Guardian contract before proceeding.

<div align="left"><figure><img src="/files/bVjRNmxzGyWB2wYKtWHN" alt="" width="188"><figcaption></figcaption></figure> <figure><img src="/files/NZHeQBZD7ELtQEhaLOyl" alt="" width="188"><figcaption></figcaption></figure></div>

3. Upon contract creation, head to my Guardian, then add new, and enter the Guardian's email. Guardians must also register on PCM Wallet to accept requests.&#x20;

<div><figure><img src="/files/StwkJEKEnBquxKVj5c9h" alt=""><figcaption></figcaption></figure> <figure><img src="/files/E5T66kyyLPUPfSrORc20" alt=""><figcaption></figcaption></figure> <figure><img src="/files/dloHryZJ2PzZhrlBR5HT" alt=""><figcaption></figcaption></figure></div>

3. Email notifications will be sent accordingly. Please remember to only add trusted family and friends as Guardians for account recovery and access assistance.
4. After submitting the request, your Guardian can now visit the security settings on PCM and click in the Guardian authentication.

#### The Guardian operation

1. Visit the security settings on PCM and click in the Guardian authentication. He can now accept your request. &#x20;

<div><figure><img src="/files/gQBFBADI4rO8JCxMrlN5" alt=""><figcaption></figcaption></figure> <figure><img src="/files/il4Pczyzb6P29xgdmPDP" alt=""><figcaption></figcaption></figure> <figure><img src="/files/4ocM2cflmFfN0BuIi1LS" alt=""><figcaption></figcaption></figure></div>

2. Once it's done, he can check the Guardian record here in the "my guarded account".

<div align="left"><figure><img src="/files/13LeWVVdLgQFuQ5lFdFA" alt="" width="188"><figcaption></figcaption></figure> <figure><img src="/files/AYWoHAEvnby7RRh4LDFM" alt="" width="188"><figcaption></figcaption></figure></div>

#### Your operation

1. You can also check the Guardian record on the My Guardian page. You can also delete the Guardian account if needed.

<div align="left"><figure><img src="/files/fcLDTjXbdpeLtwLXrj4J" alt="" width="188"><figcaption></figcaption></figure> <figure><img src="/files/ZaKFCyYpDIuQh13EVG8J" alt="" width="188"><figcaption></figcaption></figure></div>

2. By unlocking the account status, you can delete the account and wait for their approvals.

<div><figure><img src="/files/EHEu4hckwhqbtOv52jVv" alt=""><figcaption></figcaption></figure> <figure><img src="/files/2ABUk57rSpo1UIvU16ra" alt=""><figcaption></figcaption></figure> <figure><img src="/files/xXxQxAs5KdVgJhMvOgEu" alt=""><figcaption></figcaption></figure></div>

## Changing password (Not in password lost scenario)

1. When you are logged into your PCM Wallet account, you can change your password by verifying your email address without the approvals from Guardian accounts.
2. Go to profile seetings. Click account security and then click account password setup.

<div><figure><img src="/files/iC1nE5dEUrK0bFLhKsTI" alt=""><figcaption></figcaption></figure> <figure><img src="/files/hv5wOYQuyJbGtAAwwU94" alt=""><figcaption></figcaption></figure> <figure><img src="/files/t2yri7wuHNPTixGNokWF" alt=""><figcaption></figcaption></figure></div>

3. Enter the email and then wait for the email verification. Enter the one-time passcode to verify and you can set up your new password.&#x20;

<div><figure><img src="/files/IAIrJsFtQzRJYx9Gvpp0" alt=""><figcaption></figcaption></figure> <figure><img src="/files/yZM9CXbEXTQgNoEShz7Q" alt=""><figcaption></figcaption></figure> <figure><img src="/files/7acA6vXxiMEams9drO0p" alt=""><figcaption></figcaption></figure></div>

## Changing password (if you forget your password)

1. In the unfortunate event of account loss, retrieval is possible with set up Guardian.
2. On the homepage, select Forget Password, input your email address, and choose your Guardian for authorization.

<div><figure><img src="/files/QgTUe2X8brrFz1BhqxBo" alt=""><figcaption></figcaption></figure> <figure><img src="/files/yhazjUqmAYkKhUeVJYt3" alt=""><figcaption></figcaption></figure> <figure><img src="/files/Trlrhf7kNEDNQgVngvzT" alt=""><figcaption></figcaption></figure></div>

3. Approval from a designated number of Guardians is required, with a mail notification sent for completion within 30 minutes. Please do not close this page until the submission.

<div><figure><img src="/files/lIJetsoHpmQODB7SemOZ" alt=""><figcaption></figcaption></figure> <figure><img src="/files/Ona9CZn6JDNeDC7uyqaL" alt=""><figcaption></figcaption></figure></div>

4. On the Guardian side, they can now visit PCM Wallet and click Guardian authentication in the Guardian settings. Confirm the email and click Accept to approve the request.

<div><figure><img src="/files/kVYkeLTF2R6nGyVIAizV" alt=""><figcaption></figcaption></figure> <figure><img src="/files/36q3SRGKmyaqD287fxFR" alt=""><figcaption></figcaption></figure> <figure><img src="/files/sD2vAkir8ITlKzjQlP8d" alt=""><figcaption></figcaption></figure></div>

5. Once the Guardians have approved, you can now click Submit and change your password.

<div><figure><img src="/files/oEFCmbhb5sL7IfhOILG2" alt=""><figcaption></figcaption></figure> <figure><img src="/files/rzkU7RBgHJjkoYWlsytb" alt=""><figcaption></figcaption></figure> <figure><img src="/files/dshapEj9EvBjjjChZY0K" alt=""><figcaption></figcaption></figure></div>

### Q\&A for Account Abstraction (AA) Wallet and account security:

\
Q1: What is an Account Abstraction (AA) Wallet?&#x20;

A1: An Account Abstraction (AA) Wallet is a type of Ethereum wallet that utilizes smart contracts for transaction processing. Unlike traditional wallets with private keys, AA wallets rely on smart contracts for account management.<br>

Q2: How is the Security of the Smart Contract Account Ensured?&#x20;

A2: The smart contract account enhances security by removing the need for private keys. Instead, it uses a smart contract, reducing the risk associated with private key exposure. This innovative approach ensures a more secure and user-friendly experience.<br>

Q3: What Makes AA Wallet Different from EOA (Externally Owned Account) Wallets?&#x20;

A3: AA wallets differ from EOA wallets in their method of transaction signing. While EOA wallets require private keys, AA wallets utilize smart contracts for this purpose. This difference not only enhances security but also provides greater flexibility in account management.<br>

Q4: How Does the Social Recovery Feature Work for PCM Wallets?&#x20;

A4: The social recovery feature involves adding trusted individuals as guardians to your PCM wallet. In the event of account loss or compromised access, these guardians collectively play a crucial role in approving the recovery process. This adds an extra layer of security and ensures a reliable method for regaining access to your wallet.<br>

Q5: What Happens If I Lose Access to My PCM Wallet?&#x20;

A5: If you lose access to your PCM wallet, the social recovery feature comes into play. By initiating the recovery process and involving your designated guardians, you can securely regain control of your account. The guardians receive notifications and, upon confirmation, contribute to account recovery.<br>

Q6: Are There Any Risks Associated with AA Wallets?&#x20;

A6: While AA wallets are designed to enhance security, it's important to add trusted guardians. Choose individuals who can be relied upon to assist in the recovery process. This precaution minimizes risks and ensures a smooth account recovery experience.<br>

Q7: Can I Change My Password Without Guardians for PCM Wallets?&#x20;

A7: If no guardian account has been added, changing the password when logged out is not possible. To enhance account security, it's strongly recommended to set up guardians. Guardians play a crucial role in the recovery process and contribute to maintaining the integrity of your account.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://pichain-global.gitbook.io/pcm-wallet/tutorial-for-pcm-wallet/guardian-accounts.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
