From dc0134878277240471be76f77ec637218fcbd029 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Tue, 30 Sep 2025 22:22:32 -0400 Subject: [PATCH] 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 --- docs/DOGECOIN.md | 13 +------------ docs/MONERO.rst | 13 +------------ 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/docs/DOGECOIN.md b/docs/DOGECOIN.md index b0d37b9..9c90a65 100644 --- a/docs/DOGECOIN.md +++ b/docs/DOGECOIN.md @@ -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:** diff --git a/docs/MONERO.rst b/docs/MONERO.rst index cca47cd..3a0dcee 100644 --- a/docs/MONERO.rst +++ b/docs/MONERO.rst @@ -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:**