forked from hyperledger-indy/indy-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstep5.js
More file actions
16 lines (13 loc) · 675 Bytes
/
step5.js
File metadata and controls
16 lines (13 loc) · 675 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
log("11. Verifier is verifying proof from Prover")
const verified = await indy.verifierVerifyProof(proofRequest, proof, schemas, credentialDefs, revocRegs, revRegs)
logValue("Proof :")
logValue(". Name="+proof['requested_proof']['revealed_attrs']['attr1_referent']['raw'])
logValue(". Verified="+verified)
// 12
log("12. Closing both wallet_handles")
await indy.closeWallet(issuerWalletHandle)
await indy.closeWallet(proverWalletHandle)
// 13
log("13. Deleting created wallet_handles")
await indy.deleteWallet(proverWalletName, proverWalletCredentials)
await indy.deleteWallet(issuerWalletName, issuerWalletCredentials)