Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Sorniotti <aso@zurich.ibm.com>
  • Loading branch information
ale-linux authored and adecaro committed Jun 12, 2024
1 parent 93e8417 commit 1412b4e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions bccsp/schemes/aries/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ func (s *Signer) getPoKOfSignature(

var pokOS *bbs12381g2pub.PoKOfSignature
if sigtype == types.Smartcard {
// this mode implements the protocol from https://eprint.iacr.org/2023/853.
// The protocol is between 3 parties, a user, a smartcard and a
// verifier, where user and smartcard can jointly convince a
// verifier they posses a tuple of attributes, one of which is
// only known by the smartcard.

// As such, we assume that `Nym` and `RNym` were generated by the smartcard
// and so we cannot prove their knowledge. We therefore pass them in to
// `NewPoKOfSignatureExt` as their as, since thier correctiness has already
// been proven by the smartcard in a separate proof.
messagesFr = append([]*bbs12381g2pub.SignatureMessage{{}}, messagesFr...)
C := Nym.Copy()
C.Sub(ipk.H0.Mul(RNym))
Expand Down

0 comments on commit 1412b4e

Please sign in to comment.