Skip to main content

DIDDocument

@hyperledger/identus-sdk v8.0.0


@hyperledger/identus-sdk / overview / Domain / DIDDocument

Class: DIDDocument

Defined in: packages/shared/domain/build/index.d.ts:917

Constructors

Constructor

new DIDDocument(id: DID, coreProperties: CoreProperty[]): DIDDocument

Defined in: packages/shared/domain/build/index.d.ts:920

Parameters

ParameterType
idDID
corePropertiesCoreProperty[]

Returns

DIDDocument

Properties

PropertyTypeDefined in
corePropertiesCoreProperty[]packages/shared/domain/build/index.d.ts:919
idDIDpackages/shared/domain/build/index.d.ts:918

Accessors

assertionMethod

Get Signature

get assertionMethod(): VerificationMethod[]

Defined in: packages/shared/domain/build/index.d.ts:925

Returns

VerificationMethod[]


authentication

Get Signature

get authentication(): VerificationMethod[]

Defined in: packages/shared/domain/build/index.d.ts:922

Returns

VerificationMethod[]


capabilityDelegation

Get Signature

get capabilityDelegation(): VerificationMethod[]

Defined in: packages/shared/domain/build/index.d.ts:924

Returns

VerificationMethod[]


capabilityInvocation

Get Signature

get capabilityInvocation(): VerificationMethod[]

Defined in: packages/shared/domain/build/index.d.ts:923

Returns

VerificationMethod[]


keyAgreement

Get Signature

get keyAgreement(): VerificationMethod[]

Defined in: packages/shared/domain/build/index.d.ts:926

Returns

VerificationMethod[]


services

Get Signature

get services(): Service[]

Defined in: packages/shared/domain/build/index.d.ts:921

Returns

Service[]


verificationMethods

Get Signature

get verificationMethods(): VerificationMethod[]

Defined in: packages/shared/domain/build/index.d.ts:927

Returns

VerificationMethod[]

Methods

cloneWithNewDID()

static cloneWithNewDID(doc: DIDDocument, newDid: DID): DIDDocument

Defined in: packages/shared/domain/build/index.d.ts:930

Parameters

ParameterType
docDIDDocument
newDidDID

Returns

DIDDocument


fromJSON()

static fromJSON(didDocumentJson: any): DIDDocument

Defined in: packages/shared/domain/build/index.d.ts:929

Parameters

ParameterType
didDocumentJsonany

Returns

DIDDocument