Ragequit (Emergency Exit)

Ragequit is ShieldFlow's emergency withdrawal mechanism. It allows the original depositor to reclaim their funds without ASP approval, at the cost of revealing their identity.

When to Use Ragequit

ASP Rejects Your Deposit Incorrectly

If the ASP flags your deposit as non-compliant due to a false positive, ragequit lets you reclaim your funds without waiting for manual review.

You Need Funds Urgently

When you cannot wait for ASP approval and need immediate access to your deposited assets, ragequit provides an instant exit path.

Compliance Provider Is Down

If the compliance screening provider or the ASP service itself is unavailable, ragequit ensures your funds are never permanently locked.

You Want to Exit the Protocol Entirely

If you decide to leave ShieldFlow completely, ragequit returns your full deposit amount directly to your original address.

Tradeoffs

Advantages

  • Always accessible - cannot be censored
  • No ASP approval needed
  • No relayer needed - direct on-chain transaction
  • Full deposit amount returned (no relay fee)

Tradeoffs

  • Reveals original deposit address
  • Breaks privacy guarantee
  • On-chain link between deposit and withdrawal is visible
  • Only available to original depositor

How It Differs from Normal Withdrawal

FeatureNormal WithdrawalRagequit
PrivacyFull privacy - no link between deposit and withdrawalNo privacy - deposit address is revealed on-chain
ASP RequirementDeposit must be approved by ASP and included in the Merkle treeNo ASP approval needed
FeeRelayer fee deducted from withdrawal amountNo relay fee - only gas cost
Who Can InitiateAnyone with the recovery phrase (via relayer)Only the original depositor (msg.sender check)
Proof TypeZK-SNARK proving state tree + ASP inclusionCommitment proof (proves ownership of the deposit)

Privacy Impact

Ragequit reveals your original deposit address on-chain. This permanently links your deposit to the withdrawal. Only use it as a last resort.