Remove address validation code from documentation

- Replace Python validation functions with simple descriptions
- Keep validation rules (D prefix, 34 chars for DOGE; 4 prefix, 95/106 chars for XMR)
- Documentation should describe what, not show implementation how
This commit is contained in:
Russell Ballestrini 2025-09-30 22:22:32 -04:00
parent 7c9796c56c
commit dc01348782
2 changed files with 2 additions and 24 deletions

View file

@ -271,19 +271,8 @@ chown -R dogecoin:dogecoin /home/dogecoin/.dogecoin/
### Cold Storage Integration
**Shop Configuration:**
Each shop configures their own cold wallet address for automatic sweep destinations:
```python
def validate_dogecoin_address(address):
"""Validate Dogecoin address format."""
if not address or len(address) != 34:
return False
if not address.startswith('D'):
return False
# Base58 character validation
valid_chars = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
return all(c in valid_chars for c in address)
```
Each shop configures their own cold wallet address through the web interface. The system validates Dogecoin addresses (must start with 'D' and be 34 characters) before accepting them.
**Auto-Sweep System:**

View file

@ -309,19 +309,8 @@ Cold Storage Integration
------------------------
**Shop Configuration:**
Each shop must configure their own cold wallet address for automatic sweep destinations:
::
# Shop settings form validation
def validate_monero_address(address):
# Standard address validation
if len(address) == 95 and address.startswith('4'):
return True
# Integrated address validation
if len(address) == 106 and address.startswith('4'):
return True
return False
Each shop must configure their own cold wallet address for automatic sweep destinations through the web interface. The system validates Monero addresses (95 or 106 characters starting with '4').
**Auto-Sweep System:**