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

Method _raw_encode

python/ccxt/static_dependencies/ecdsa/keys.py:106–111  ·  view source on GitHub ↗

Convert the point to the :term:`raw encoding`.

(self)

Source from the content-addressed store, hash-verified

104 return verifying_keys
105
106 def _raw_encode(self):
107 """Convert the point to the :term:`raw encoding`."""
108 order = self.pubkey.order
109 x_str = number_to_string(self.pubkey.point.x(), order)
110 y_str = number_to_string(self.pubkey.point.y(), order)
111 return x_str + y_str
112
113 def _compressed_encode(self):
114 """Encode the point into the compressed form."""

Callers 1

to_stringMethod · 0.95

Calls 3

number_to_stringFunction · 0.70
xMethod · 0.45
yMethod · 0.45

Tested by

no test coverage detected