@@ -124,7 +124,7 @@ async function main({credential, documentLoader}) {
124124 }
125125
126126 // 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' ;
128128 const VP_DID_URL = 'https://example.org/issuer/123' ;
129129 //const VP_DID_DOC_URL = VP_DID_URL + '/did.json';
130130
@@ -137,15 +137,19 @@ async function main({credential, documentLoader}) {
137137 verificationKeyPair : vpEcdsaKeyPair
138138 } ) ;
139139 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 ;
142142 // setup VP ecdsa-rdfc-2019 signing suite
143143 const vpSigningSuite = new DataIntegrityProof ( {
144144 signer : vpEcdsaKeyPair . signer ( ) ,
145145 // date: '2023-01-01T01:01:01Z',
146146 cryptosuite : ecdsaRdfc2019Cryptosuite
147147 } ) ;
148148
149+ // add static resources
150+ loader . addStatic ( VP_DID , vpDidDocument ) ;
151+ //loader.addStatic(VP_DID_DOC_URL, vpDidDocument);
152+
149153 // add static verification method result
150154 // FIXME
151155 // The document loader usually would send did:web URLs to did-method-web
0 commit comments