Convert hex string to base64 (for protojson bytes encoding).
(hex_str: str)
| 51 | |
| 52 | |
| 53 | def hex_to_base64(hex_str: str) -> str: |
| 54 | """Convert hex string to base64 (for protojson bytes encoding).""" |
| 55 | return base64.b64encode(bytes.fromhex(hex_str)).decode('utf-8') |
| 56 | |
| 57 | |
| 58 | def hex_to_bytes(hex_str: str) -> bytes: |
no outgoing calls
no test coverage detected