MCPcopy Create free account
hub / github.com/ccxt/ccxt / number_to_string

Function number_to_string

python/ccxt/static_dependencies/ecdsa/util.py:164–169  ·  view source on GitHub ↗
(num, order)

Source from the content-addressed store, hash-verified

162
163
164def number_to_string(num, order):
165 l = orderlen(order)
166 fmt_str = "%0" + str(2 * l) + "x"
167 string = binascii.unhexlify((fmt_str % num).encode())
168 assert len(string) == l, (len(string), l)
169 return string
170
171
172def number_to_string_crop(num, order):

Callers 8

generate_kFunction · 0.70
_raw_encodeMethod · 0.70
_compressed_encodeMethod · 0.70
sigencode_stringsFunction · 0.70
_raw_encodeMethod · 0.70
_compressed_encodeMethod · 0.70
to_derMethod · 0.70
to_stringMethod · 0.70

Calls 2

orderlenFunction · 0.85
encodeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…