class documentation

A signature implementation for verifying Git objects.

Class Method available Check if this signature verifier is available.
Method __init__ Initialize the signature verifier.
Method verify Verify a signature.
Instance Variable keyids Undocumented
def available(cls) -> bool:

Check if this signature verifier is available.

Returns
boolTrue if the verifier's dependencies are available, False otherwise
def __init__(self, keyids: Iterable[str] | None = None):

Initialize the signature verifier.

Parameters
keyids:Iterable[str] | NoneOptional iterable of trusted key IDs/fingerprints. If provided, only signatures from these keys will be trusted.
def verify(self, data: bytes, signature: bytes):

Verify a signature.

Parameters
data:bytesThe data that was signed
signature:bytesThe signature to verify
Raises
BadSignatureif signature verification fails
UntrustedSignatureif signature was not created by a trusted key
keyids =

Undocumented