-
Notifications
You must be signed in to change notification settings - Fork 162
feat: Present proof - signs the presentation #2596
feat: Present proof - signs the presentation #2596
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2596 +/- ##
==========================================
- Coverage 88.67% 88.66% -0.01%
==========================================
Files 263 263
Lines 20188 20249 +61
==========================================
+ Hits 17901 17954 +53
- Misses 1332 1336 +4
- Partials 955 959 +4
Continue to review full report at Codecov.
|
Signed-off-by: Andrii Soluk <[email protected]>
return err | ||
} | ||
|
||
methodID := fingerprint.KeyFingerprint(bls12381g2pub, pubKey) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Baha-sk is going to add Create DID Key feature for bls12381 keys, please add a follow up task for him to replace this code with create bbs DID key api.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done #2601
SignatureRepresentation: verifiable.SignatureProofValue, | ||
Suite: bbsblssignature2020.New( | ||
suite.WithSigner(newBBSSigner(km, cr, kid)), | ||
suite.WithVerifier(bbsblssignature2020.NewG2PublicKeyVerifier()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit - you don't need a verifier when signing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. I will try to remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done #2601
By default, we will sign the presentation with
BbsBlsSignature2020
(if a signature is needed). Also, it can be changed by providing an option e.gWithAddProofFn
.Signed-off-by: Andrii Soluk [email protected]