Skip to main content

entity.identity.credential

Credential Objects​

class Credential()

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

__init__​

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.

from_json​

@staticmethod
def from_json(json: str) -> Credential

Creates a Credential instance from a JSON string representation.

to_json​

def to_json() -> str

Converts the Credential instance to its JSON string representation.