@@ -124,7 +124,7 @@ async function main({credential, documentLoader}) {
124
124
}
125
125
126
126
// setup example for did:web
127
- // const VP_DID = 'did:web:example.org:issuer:123';
127
+ const VP_DID = 'did:web:example.org:issuer:123' ;
128
128
const VP_DID_URL = 'https://example.org/issuer/123' ;
129
129
//const VP_DID_DOC_URL = VP_DID_URL + '/did.json';
130
130
@@ -137,15 +137,19 @@ async function main({credential, documentLoader}) {
137
137
verificationKeyPair : vpEcdsaKeyPair
138
138
} ) ;
139
139
const didWebKey = vpMethodFor ( { purpose : 'assertionMethod' } ) ;
140
- vcEcdsaKeyPair . id = didWebKey . id ;
141
- vcEcdsaKeyPair . controller = vpDidDocument . id ;
140
+ vpEcdsaKeyPair . id = didWebKey . id ;
141
+ vpEcdsaKeyPair . controller = vpDidDocument . id ;
142
142
// setup VP ecdsa-rdfc-2019 signing suite
143
143
const vpSigningSuite = new DataIntegrityProof ( {
144
144
signer : vpEcdsaKeyPair . signer ( ) ,
145
145
// date: '2023-01-01T01:01:01Z',
146
146
cryptosuite : ecdsaRdfc2019Cryptosuite
147
147
} ) ;
148
148
149
+ // add static resources
150
+ loader . addStatic ( VP_DID , vpDidDocument ) ;
151
+ //loader.addStatic(VP_DID_DOC_URL, vpDidDocument);
152
+
149
153
// add static verification method result
150
154
// FIXME
151
155
// The document loader usually would send did:web URLs to did-method-web
0 commit comments