Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"LAC1" DID method updates #10

Merged
merged 10 commits into from
Jul 3, 2024
3 changes: 3 additions & 0 deletions lib/document.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default class DIDDocument {

constructor( document, mode = 'reference' ) {
this.id = document.id;
this.alsoKnownAs = document.alsoKnownAs;
this.controller = document.controller;
this.verificationMethod = document.verificationMethod;
this.authentication = getRelationship( document.verificationMethod, document.authentication );
Expand All @@ -20,6 +21,7 @@ export default class DIDDocument {
if( this.mode === 'explicit' )
return {
id: this.id,
alsoKnownAs: this.alsoKnownAs,
controller: this.controller,
verificationMethod: this.verificationMethod,
authentication: this.authentication,
Expand All @@ -32,6 +34,7 @@ export default class DIDDocument {
const document = this.document;
return {
id: this.id,
alsoKnownAs: this.alsoKnownAs,
controller: this.controller,
verificationMethod: this.document.verificationMethod,
authentication: getExistingMethods( document.verificationMethod, document.authentication ),
Expand Down
Loading
Loading