Get Proofs
The getProofs function uses identity to generate the zero-knowledge proofs requested by
the Iden3Message Entity.
Get Proof
The getProofs() method uses Iden3MessageEntity, did, profileNonce, and privateKey as the
input parameters and returns a list of Iden3commProofEntity.
Future<List<Iden3commProofEntity>> getProofs({
required Iden3MessageEntity message,
required String genesisDid,
BigInt? profileNonce,
required String privateKey,
String? challenge,
String? ethereumUrl,
String? stateContractAddr,
String? ipfsNodeUrl,
Map<int, Map<String, dynamic>>? nonRevocationProofs,
Map<String, dynamic>? transactionData,
});
Iden3MessageEntity: returned fromgetIden3Messagemethod after a user scans the QR code on Issuer/Verifier website.profileNonceis the nonce of the profile of an identity.privateKeyof the identity is a key that is used to access the sensitive information of the identity. This key is also used for generating proofs by using the credentials associated with the identity.didis the unique ID of the identity.Iden3commProofEntityis the object containing the proof that the Integrator sends to the Issuer/Verifier after scanning the QR code. Read more about JWZ here.transactionDatais an optional parameter that can be used to provide transaction data for on-chain proofs requests.
The iden3comm's getProofs method retrieves the proofs from the proof request of the Verifier. The
actual proof is created by the prove() method, which you will read about in
the Proof section
of the APIs.
For this to happen, iden3comm makes a call to prove().