Skip to content

Commit

Permalink
Fix Typo and Correct Object Attribute in BBS signature computation (#88)
Browse files Browse the repository at this point in the history
* Fix typo: corrected 'holder' to 'verifier'
* Fix signature computation in bbs-fixtures

Signed-off-by: Alberto Solavagione <albertosolavagione30@gmail.com>
  • Loading branch information
AlbertoSvg authored Oct 22, 2023
1 parent d6ee024 commit 3c71d7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion draft-ietf-jose-json-proof-algorithms.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion fixtures/bbs-fixtures.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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"});
Expand Down

0 comments on commit 3c71d7a

Please sign in to comment.