MCPcopy Create free account
hub / github.com/authlib/authlib / sign

Method sign

authlib/jose/rfc7515/models.py:16–23  ·  view source on GitHub ↗

Sign the text msg with a private/sign key. :param msg: message bytes to be signed :param key: private key to sign the message :return: bytes

(self, msg, key)

Source from the content-addressed store, hash-verified

14 raise NotImplementedError()
15
16 def sign(self, msg, key):
17 """Sign the text msg with a private/sign key.
18
19 :param msg: message bytes to be signed
20 :param key: private key to sign the message
21 :return: bytes
22 """
23 raise NotImplementedError
24
25 def verify(self, msg, sig, key):
26 """Verify the signature of text msg with a public/verify key.

Callers 2

serialize_compactMethod · 0.45
_signMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected