Skip to content

Commit b0831f3

Browse files
authored
Merge pull request #88 from contentauth/tmathern-patch-1
Update README.md (fix typos)
2 parents 7e7b719 + dea526f commit b0831f3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,10 @@ import { SigningAlgorithm } from 'c2pa-node';
357357

358358
// create a local signer
359359
async function createLocalSigner() {
360+
// make sure to update file paths to read from to match locations where you keep them
360361
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'),
363364
]);
364365

365366
return {
@@ -373,7 +374,7 @@ async function createLocalSigner() {
373374

374375
// read the asset
375376
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
377378
const asset: Asset = { buffer, mimeType: 'image/jpeg' };
378379

379380
// create a signing function

0 commit comments

Comments
 (0)