From 3c71d7af0096bd41c771ea008f578f58f675b738 Mon Sep 17 00:00:00 2001 From: Alberto Solavagione Date: Sun, 22 Oct 2023 04:17:15 +0200 Subject: [PATCH] Fix Typo and Correct Object Attribute in BBS signature computation (#88) * Fix typo: corrected 'holder' to 'verifier' * Fix signature computation in bbs-fixtures Signed-off-by: Alberto Solavagione --- draft-ietf-jose-json-proof-algorithms.md | 2 +- fixtures/bbs-fixtures.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/draft-ietf-jose-json-proof-algorithms.md b/draft-ietf-jose-json-proof-algorithms.md index 9c7d329..79bfff1 100644 --- a/draft-ietf-jose-json-proof-algorithms.md +++ b/draft-ietf-jose-json-proof-algorithms.md @@ -293,7 +293,7 @@ Figure: Presentation JWP (compact serialization) ### Presentation Verification -Verification of a presentation is done by the holder using the `ProofVerify` operation from [@!I-D.irtf-cfrg-bbs-signatures, Section 3.4.4]. +Verification of a presentation is done by the verifier using the `ProofVerify` operation from [@!I-D.irtf-cfrg-bbs-signatures, Section 3.4.4]. This operation utilizes the issuer's public key as `PK`, the issuer protected header as `header`, the issuance proof as `signature`, the holder's presentation protected header as `ph`, and the payloads as `disclosed_messages`. diff --git a/fixtures/bbs-fixtures.mjs b/fixtures/bbs-fixtures.mjs index 9e6ad95..aad0657 100644 --- a/fixtures/bbs-fixtures.mjs +++ b/fixtures/bbs-fixtures.mjs @@ -21,7 +21,7 @@ const signature = await pairing.bbs.bls12381_sha256.sign({ publicKey: keyPair.publicKey, secretKey: keyPair.secretKey, header: protectedHeader, - payloads: payloads + messages: payloads }); await fs.writeFile("build/bbs-issuer-proof.base64url", encode(signature), {encoding: "UTF-8"});