MCPcopy Create free account
hub / github.com/canopy-network/canopy / hex_to_bytes

Function hex_to_bytes

plugin/python/tutorial/rpc_test.py:58–60  ·  view source on GitHub ↗

Convert hex string to bytes.

(hex_str: str)

Source from the content-addressed store, hash-verified

56
57
58def hex_to_bytes(hex_str: str) -> bytes:
59 """Convert hex string to bytes."""
60 return bytes.fromhex(hex_str)
61
62
63def bytes_to_hex(b: bytes) -> str:

Callers 2

sign_blsFunction · 0.85
build_sign_and_send_txFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected