File size: 1,108 Bytes
4585d4c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# 1P Wallet

A Streamlit app implementing a 2FA-like visual authentication for Aptos wallets.

Quick start (dev/testnet):

1. Create a virtualenv and install deps:

```bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```

2. Set required environment variables (for full functionality):

```bash
export APTOS_ACCOUNT=0x...       # system wallet address
export APTOS_PRIVATE_KEY=...     # system wallet private key (hex)
```

3. Run the app:

```bash
streamlit run app.py
```

Notes:

- This project is for demonstration. Do not use the provided scripts in production without proper key management.
- Use `scripts/verify_env.sh` to confirm environment variables are present.

Notes from runtime:

- Streamlit recommends installing `watchdog` for better file-change performance (`pip install watchdog`).
- It is recommended that private keys are AIP-80 compliant: https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-80.md
- For the one-click browser localStorage save/restore feature, install `streamlit-javascript`:
  ```bash
  pip install streamlit-javascript
  ```