🗓️Week 4 – Emergency Protocols

Goal: Test what happens in emergency scenarios like hacked wallets, locked vaults, and recovery procedures.

Quest 1: Lock Your Vault (Emergency Freeze) (10 minutes)

What you're doing: Using the emergency lock feature to freeze your vault.

The Scenario: You think your wallet might be compromised. You want to freeze everything immediately.

Understanding Lock:

  • FREEZES all deposits and withdrawals

  • Can be triggered by vault owner OR any guardian

  • Prevents the hacker from moving assets

  • Can be unlocked later with guardian approval

Trigger the Lock:

  1. Go to "Emergency Controls"

  2. Click the big red "🔒 LOCK VAULT" button

  3. Confirm you understand (read the warning)

  4. Approve the transaction

  5. Your vault is now LOCKED 🔒

What happened:

  • All pending requests (except unlock) are automatically cancelled

  • No new deposits allowed

  • No new withdrawals allowed

  • You'll see "LOCKED" status everywhere

Try these (they should fail):

  1. Try to deposit tokens - ❌ Blocked

  2. Try to request withdrawal - ❌ Blocked

  3. Try to transfer assets - ❌ Blocked

Good! Your assets are frozen and safe.

✅ Quest Complete! You've frozen your vault.


Quest 2: Unlock Your Vault (10 minutes)

What you're doing: Unfreezing your vault after the emergency is over.

The Scenario: You've secured your wallet, changed passwords, etc. Now you want to unlock.

  1. Still on Emergency Controls

  2. Click "🔓 UNLOCK VAULT"

  3. This creates an UNLOCK REQUEST

  4. This needs guardian approval! (prevents hacker from unlocking)

Get Guardian Approvals:

  1. Switch to Guardian 1

  2. Approve the unlock request

  3. Switch to Guardian 2

  4. Approve the unlock request

  5. Execute the unlock

Your vault is now UNLOCKED ✅

  1. Try depositing - ✅ Works again!

  2. Try withdrawing - ✅ Works again!

What you learned:

  • Lock can be instant (by owner or guardian)

  • Unlock requires guardian approval (security layer)

  • Pending requests are cleared when you lock

✅ Quest Complete! You've unlocked your vault.


Quest 3: Vault Recovery (Guardian Override) (20 minutes)

What you're doing: Testing what happens if a vault owner loses access and guardians need to transfer the vault to a new owner.

The Scenario: Your wallet is permanently compromised or lost. Guardians need to move your vault to your new wallet address.

Important: This is different from "Transfer":

  • Transfer = Owner wants to move vault (owner initiates)

  • Recovery = Owner is locked out (guardians initiate)

Initiate Recovery (As a Guardian):

  1. Switch to Guardian 1 wallet

  2. Go to the vault (you can access as guardian)

  3. Click "Emergency Recovery" (might be under Emergency Controls)

  4. Enter the NEW OWNER ADDRESS (your recovery wallet or another address you control)

  5. Click "Request Recovery"

  6. Approve the transaction

This creates a RECOVERY REQUEST

Other Guardians Approve:

  1. Switch to Guardian 2

  2. Go to "Pending Recovery Requests"

  3. Review the recovery (shows new owner address)

  4. Click "Approve Recovery"

  5. Confirm

Wait for enough approvals (depends on your security threshold)

Execute Recovery:

  1. Once enough guardians approve

  2. Any guardian can click "Execute Recovery"

  3. The vault NFT transfers to the new owner

  4. The old owner can no longer access the vault

  5. The new owner has full control

Verify:

  1. Switch to the NEW owner wallet

  2. Check your assets - you should see the vault NFT

  3. You can now control the vault

  4. All assets are safe inside

✅ Quest Complete! You've recovered a vault.


Quest 4: Lock Cancels Recovery (Security Test) (15 minutes)

What you're doing: Testing a security feature where locking a vault automatically cancels any pending recovery requests.

The Scenario: Guardians mistakenly started a recovery, but you still have access. You want to stop it!

Setup:

  1. Have guardians start a recovery (like in Quest 3)

  2. DON'T execute it yet - leave it pending

  3. You (vault owner) notice this!

Stop the Recovery:

  1. Quickly LOCK the vault (as vault owner)

  2. The recovery request is AUTOMATICALLY CANCELLED ❌

  3. Now unlock the vault (with guardian approval)

  4. The recovery is gone - vault is safe

What you learned:

  • Lock is a powerful emergency tool

  • It cancels dangerous pending actions

  • Owner can defend against unauthorized recovery

  • But unlock still needs guardians (balanced security)

✅ Quest Complete! You understand the security interplay.


Quest 5: Transfer vs Recovery Comparison (15 minutes)

What you're doing: Understanding the difference between normal vault transfer and emergency recovery.

Scenario A: Normal Transfer (Owner Initiated)

You want to move your vault to a new wallet safely:

  1. Request a vault transfer (as owner)

  2. Enter new owner address

  3. This requires GUARDIAN APPROVAL

  4. Guardians review and approve

  5. Execute transfer

  6. Vault moves to new owner

Scenario B: Emergency Recovery (Guardian Initiated)

Owner lost access, guardians must take over:

  1. Guardian initiates recovery

  2. Other guardians must approve

  3. No owner approval needed (they're locked out!)

  4. Execute recovery

  5. Vault moves to recovered owner

Key Differences:

Feature

Transfer

Recovery

Who initiates

Owner

Guardian

Owner approval needed

Yes (they request it)

No (they're locked out)

Guardian approval needed

Yes

Yes

Use case

Planned move

Emergency access lost

✅ Quest Complete! You understand both transfer methods.

Last updated