File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -357,9 +357,10 @@ import { SigningAlgorithm } from 'c2pa-node';
357
357
358
358
// create a local signer
359
359
async function createLocalSigner() {
360
+ // make sure to update file paths to read from to match locations where you keep them
360
361
const [certificate, privateKey] = await Promise .all ([
361
- readFile (' tests/fixtures/certs/es256 .pem' ),
362
- readFile (' tests/fixtures/certs/es256 .pub' ),
362
+ readFile (' <ES256 certificate_file_location> .pem' ),
363
+ readFile (' <ES256 certificate_file_location> .pub' ),
363
364
]);
364
365
365
366
return {
@@ -373,7 +374,7 @@ async function createLocalSigner() {
373
374
374
375
// read the asset
375
376
const buffer = await readFile (' to-be-signed.jpg' );
376
- // asset mimetype must match the asset type ebing read
377
+ // asset mimetype must match the asset type being read
377
378
const asset: Asset = { buffer , mimeType: ' image/jpeg' };
378
379
379
380
// create a signing function
You can’t perform that action at this time.
0 commit comments