Skip to content

cryptography

Cryptography traits.

DigitallySigned dataclass

Bases: TraitBase

Digitally signed trait.

This type trait means that the data is digitally signed.

Attributes:

Name Type Description
signature str

Digital signature.

Source code in client/ayon_core/pipeline/traits/cryptography.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@dataclass
class DigitallySigned(TraitBase):
    """Digitally signed trait.

    This type trait means that the data is digitally signed.

    Attributes:
        signature (str): Digital signature.
    """

    id: ClassVar[str] = "ayon.cryptography.DigitallySigned.v1"
    name: ClassVar[str] = "DigitallySigned"
    description: ClassVar[str] = "Digitally signed trait."
    persistent: ClassVar[bool] = True

PGPSigned dataclass

Bases: DigitallySigned

PGP signed trait.

This trait holds PGP (RFC-4880) signed data.

Attributes:

Name Type Description
signed_data str

Signed data.

clear_text str

Clear text.

Source code in client/ayon_core/pipeline/traits/cryptography.py
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@dataclass
class PGPSigned(DigitallySigned):
    """PGP signed trait.

    This trait holds PGP (RFC-4880) signed data.

    Attributes:
        signed_data (str): Signed data.
        clear_text (str): Clear text.
    """

    id: ClassVar[str] = "ayon.cryptography.PGPSigned.v1"
    name: ClassVar[str] = "PGPSigned"
    description: ClassVar[str] = "PGP signed trait."
    persistent: ClassVar[bool] = True
    signed_data: str
    clear_text: Optional[str] = None