(cls, s)
| 27 | class CBitcoinAddress(object): |
| 28 | |
| 29 | def __new__(cls, s): |
| 30 | try: |
| 31 | return CBech32BitcoinAddress(s) |
| 32 | except bitcoin.bech32.Bech32Error: |
| 33 | pass |
| 34 | |
| 35 | try: |
| 36 | return CBase58BitcoinAddress(s) |
| 37 | except bitcoin.base58.Base58Error: |
| 38 | pass |
| 39 | |
| 40 | raise CBitcoinAddressError('Unrecognized encoding for bitcoin address') |
| 41 | |
| 42 | @classmethod |
| 43 | def from_scriptPubKey(cls, scriptPubKey): |
nothing calls this directly
no test coverage detected