MCPcopy
hub / github.com/authlib/authlib / load_public_key

Method load_public_key

authlib/jose/rfc8037/okp_key.py:69–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 return crv_key.from_private_bytes(d_bytes)
68
69 def load_public_key(self):
70 crv_key = PUBLIC_KEYS_MAP[self._dict_data["crv"]]
71 x_bytes = urlsafe_b64decode(to_bytes(self._dict_data["x"]))
72 return crv_key.from_public_bytes(x_bytes)
73
74 def dumps_private_key(self):
75 obj = self.dumps_public_key(self.private_key.public_key())

Callers

nothing calls this directly

Calls 2

urlsafe_b64decodeFunction · 0.90
to_bytesFunction · 0.90

Tested by

no test coverage detected