class documentation

A signature implementation for signing Git objects.

Class Method available Check if this signature signer is available.
Method sign Sign data with a key.
def available(cls) -> bool:

Check if this signature signer is available.

Returns
boolTrue if the signer's dependencies are available, False otherwise
def sign(self, data: bytes, keyid: str | None = None) -> bytes:

Sign data with a key.

Parameters
data:bytesThe data to sign
keyid:str | NoneOptional key ID to use for signing. If not specified, the default key will be used.
Returns
bytesThe signature as bytes