Changeset View
Changeset View
Standalone View
Standalone View
test/functional/test_framework/address.py
#!/usr/bin/env python3 | #!/usr/bin/env python3 | ||||
# Copyright (c) 2016 The Bitcoin Core developers | # Copyright (c) 2016-2019 The Bitcoin Core developers | ||||
# Distributed under the MIT software license, see the accompanying | # Distributed under the MIT software license, see the accompanying | ||||
# file COPYING or http://www.opensource.org/licenses/mit-license.php. | # file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
"""Encode and decode BASE58, P2PKH and P2SH addresses.""" | """Encode and decode BASE58, P2PKH and P2SH addresses.""" | ||||
from .script import CScript, hash160, hash256 | from .script import CScript, hash160, hash256 | ||||
from .util import hex_str_to_bytes | from .util import hex_str_to_bytes | ||||
chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' | chars = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' | ||||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |