Skip to main content


Credential Objects

class Credential()

Represents a verifiable credential with its associated information. Verifiable Credentials Data Model v2.0.


def __init__(context: List[str], id: str, type: List[str], issuance_date: str,
expiration: str, credential_subject: str,
credential_status: CredentialStatus, issuer: str,
credential_schema: CredentialSchema,
proof: CredentialProof) -> None

Creates a new Credential instance with the provided details.


def from_json(json: str) -> Credential

Creates a Credential instance from a JSON string representation.


def to_json() -> str

Converts the Credential instance to its JSON string representation.