Skip to content

Sign xades

Sign XML with an enveloped XAdES-B signature.

Import from ksef2.core.xades import sign_xades
Source src/ksef2/core/xades.py:223 Authored source
sign_xades
sign_xades(xml_bytes: bytes, cert: Certificate, private_key: XAdESPrivateKey) -> bytes

Returns

bytes

Parameters

xml_bytes bytes
required / positional
cert Certificate
required / positional
private_key XAdESPrivateKey
required / positional