Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
add assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianmross committed Dec 4, 2023
1 parent ed79540 commit 82219f8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/dids/OracleDidResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,14 @@ export class OracleDidResolver implements DidResolver {

const didDocument = await oracleLedgerService.resolve(did);

const didDocumentJson = JsonTransformer.fromJSON(didDocument, DidDocument)

didDocumentJson.assertionMethod = [didDocument.verificationMethod[0].id];

return {
didDocument: JsonTransformer.fromJSON(didDocument, DidDocument),
didDocument: didDocumentJson,
didDocumentMetadata: {},
didResolutionMetadata: {},
}
};
}
}

0 comments on commit 82219f8

Please sign in to comment.