MCPcopy Create free account
hub / github.com/EasyIME/PIME / format_field

Function format_field

python/python3/tornado/web.py:3415–3416  ·  view source on GitHub ↗
(s: Union[str, bytes])

Source from the content-addressed store, hash-verified

3413 # - value (base64-encoded)
3414 # - signature (hex-encoded; no length prefix)
3415 def format_field(s: Union[str, bytes]) -> bytes:
3416 return utf8("%d:" % len(s)) + utf8(s)
3417
3418 to_sign = b"|".join(
3419 [

Callers 1

create_signed_valueFunction · 0.85

Calls 1

utf8Function · 0.90

Tested by

no test coverage detected