From a829991f0d16b424e756684cbca8d159b8195cac Mon Sep 17 00:00:00 2001 From: Simonas Karuzas Date: Mon, 25 May 2020 17:38:59 +0300 Subject: [PATCH] fix: IdentityController for web-did --- packages/daf-web-did/src/identity-controller.ts | 3 +-- packages/daf-web-did/src/identity.ts | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/daf-web-did/src/identity-controller.ts b/packages/daf-web-did/src/identity-controller.ts index f8ef01b3e..9207bf478 100644 --- a/packages/daf-web-did/src/identity-controller.ts +++ b/packages/daf-web-did/src/identity-controller.ts @@ -32,7 +32,7 @@ export class IdentityController extends AbstractIdentityController { return true } - async getDidDocument(service: any): Promise { + async getDidDocument(): Promise { const serializedIdentity = await this.identityStore.get(this.did) return { '@context': 'https://w3id.org/did/v1', @@ -50,7 +50,6 @@ export class IdentityController extends AbstractIdentityController { : 'Ed25519SignatureAuthentication2018', publicKey: serializedIdentity.did + '#' + key.kid, })), - service, } } } diff --git a/packages/daf-web-did/src/identity.ts b/packages/daf-web-did/src/identity.ts index d1e1407a1..98ecf35e9 100644 --- a/packages/daf-web-did/src/identity.ts +++ b/packages/daf-web-did/src/identity.ts @@ -5,18 +5,19 @@ import { AbstractIdentityController, } from 'daf-core' +import { IdentityController } from './identity-controller' export class Identity extends AbstractIdentity { public readonly did: string private readonly serializedIdentity: SerializedIdentity public readonly identityProviderType: string private readonly kms: AbstractKeyManagementSystem - public readonly identityController: AbstractIdentityController + public readonly identityController: IdentityController constructor(options: { identityProviderType: string serializedIdentity: SerializedIdentity kms: AbstractKeyManagementSystem - identityController: AbstractIdentityController + identityController: IdentityController }) { super() this.did = options.serializedIdentity.did