File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import {
10
10
SpecValidationResult ,
11
11
VerificationMethods ,
12
12
DIDDocumentWithMetadata ,
13
+ ServiceType ,
13
14
} from '../types' ;
14
15
import {
15
16
MsgCreateDidDoc ,
@@ -45,6 +46,7 @@ export const contexts = {
45
46
W3CSuiteEd255192020 : 'https://w3id.org/security/suites/ed25519-2020/v1' ,
46
47
W3CSuiteEd255192018 : 'https://w3id.org/security/suites/ed25519-2018/v1' ,
47
48
W3CSuiteJws2020 : 'https://w3id.org/security/suites/jws-2020/v1' ,
49
+ DIFDIDConfiguration : 'https://identity.foundation/.well-known/did-configuration/v1' ,
48
50
} as const ;
49
51
50
52
export const protobufLiterals = {
@@ -549,6 +551,9 @@ export class DIDModule extends AbstractCheqdSDKModule {
549
551
} ) ;
550
552
551
553
const service = protobufDidDocument . service . map ( ( s ) => {
554
+ if ( s . serviceType === ServiceType . LinkedDomains )
555
+ protobufDidDocument . context = [ ...protobufDidDocument . context , contexts . DIFDIDConfiguration ] ;
556
+
552
557
return {
553
558
id : s . id ,
554
559
type : s . serviceType ,
Original file line number Diff line number Diff line change @@ -102,3 +102,7 @@ export const ISignInputs = {
102
102
return object . some ( ( x ) => 'privateKeyHex' in x ) ;
103
103
} ,
104
104
} ;
105
+
106
+ export enum ServiceType {
107
+ LinkedDomains = 'LinkedDomains' ,
108
+ }
You can’t perform that action at this time.
0 commit comments