File: //opt/alt/python311/lib/python3.11/site-packages/validators/__pycache__/encoding.cpython-311.pyc
�
�;fY � �V � d Z ddlZddlmZ edefd�� � Zedefd�� � ZdS )z Encoding.� N� )� validator�valuec �4 � | rt j d| � � ndS )a� Return whether or not given value is a valid base58 encoding.
Examples:
>>> base58('14pq6y9H2DLGahPsM4s7ugsNSD2uxpHsJx')
# Output: True
>>> base58('cUSECm5YzcXJwP')
# Output: ValidationError(func=base58, args={'value': 'cUSECm5YzcXJwP'})
Args:
value:
base58 string to validate.
Returns:
(Literal[True]): If `value` is a valid base58 encoding.
(ValidationError): If `value` is an invalid base58 encoding.
z^[1-9A-HJ-NP-Za-km-z]+$F��re�match�r s �F/opt/alt/python311/lib/python3.11/site-packages/validators/encoding.py�base58r
s"