forked from hyperledger/anoncreds-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ricky Ng-Adam <[email protected]>
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Witness | ||
|
||
anoncreds-rs does validate for witness value if revocation registry and revocation registry id is present: | ||
|
||
https://github.com/rngadam/anoncreds-rs/blob/44a22edc49275f4ad0ea805ae9b033d86c22b405/src/data_types/credential.rs#L64-L66 | ||
|
||
## Proof | ||
|
||
in CredentialSignatureProofValue, witness may be none: | ||
|
||
https://github.com/rngadam/anoncreds-rs/blob/44a22edc49275f4ad0ea805ae9b033d86c22b405/src/data_types/w3c/proof.rs#L263-L275 | ||
|
||
Prover recomputes witness here: | ||
|
||
https://github.com/rngadam/anoncreds-rs/blob/44a22edc49275f4ad0ea805ae9b033d86c22b405/src/services/prover.rs#L607-L635 | ||
|
||
## Issuance | ||
|
||
the witness is created using CLCredentialIssuer: | ||
|
||
https://github.com/rngadam/anoncreds-rs/blob/44a22edc49275f4ad0ea805ae9b033d86c22b405/src/services/issuer.rs#L716-L722 | ||
|
||
which in turns calls Issuer::sign_credential_with_revoc: | ||
|
||
https://github.com/rngadam/anoncreds-rs/blob/44a22edc49275f4ad0ea805ae9b033d86c22b405/src/services/issuer.rs#L814-L829 |