Skip to main content

@bloock/sdk / CredentialSchema

Class: CredentialSchema

Represents the schema information for a credential, including its ID and type.

Table of contents​

Constructors​

Properties​

Methods​

Constructors​

constructor​

• new CredentialSchema(id, type): CredentialSchema

Constructs an CredentialSchema object with the specified parameters.

Parameters​

NameType
idstring
typestring

Returns​

CredentialSchema

Defined in​

entity/identity/credential_schema.ts:15

Properties​

id​

• id: string

Defined in​

entity/identity/credential_schema.ts:7


type​

• type: string

Defined in​

entity/identity/credential_schema.ts:8

Methods​

toProto​

▸ toProto(): CredentialSchema

Returns​

CredentialSchema

Defined in​

entity/identity/credential_schema.ts:20


fromProto​

▸ fromProto(r): CredentialSchema

Parameters​

NameType
rCredentialSchema

Returns​

CredentialSchema

Defined in​

entity/identity/credential_schema.ts:27