Class AnonCreds
Provides methods for managing anonymous credentials.
Inheritance
System.Object
AnonCreds
Assembly: Hyperledger.Indy.Sdk.dll
Syntax
public static class AnonCreds : Object
Methods
CreateRevocationStateAsync(BlobStorageReader, String, String, Int64, String)
Declaration
public static Task<string> CreateRevocationStateAsync(BlobStorageReader blobStorageReader, string revRegDef, string revRegDelta, long timestamp, string credRevId)
Parameters
Type |
Name |
Description |
BlobStorageReader |
blobStorageReader |
|
System.String |
revRegDef |
|
System.String |
revRegDelta |
|
System.Int64 |
timestamp |
|
System.String |
credRevId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
IssuerCreateAndStoreCredentialDefAsync(Wallet, String, String, String, String, String)
Declaration
public static Task<IssuerCreateAndStoreCredentialDefResult> IssuerCreateAndStoreCredentialDefAsync(Wallet wallet, string issuerDid, string schemaJson, string tag, string type, string configJson)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
|
System.String |
issuerDid |
|
System.String |
schemaJson |
|
System.String |
tag |
|
System.String |
type |
|
System.String |
configJson |
|
Returns
IssuerCreateAndStoreRevocRegAsync(Wallet, String, String, String, String, String, BlobStorageWriter)
Declaration
public static Task<IssuerCreateAndStoreRevocRegResult> IssuerCreateAndStoreRevocRegAsync(Wallet wallet, string issuerDid, string type, string tag, string credDefId, string configJson, BlobStorageWriter tailsWriter)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
|
System.String |
issuerDid |
|
System.String |
type |
|
System.String |
tag |
|
System.String |
credDefId |
|
System.String |
configJson |
|
BlobStorageWriter |
tailsWriter |
|
Returns
IssuerCreateCredentialAsync(Wallet, String, String, String, String, BlobStorageReader)
Declaration
public static Task<IssuerCreateCredentialResult> IssuerCreateCredentialAsync(Wallet wallet, string credOfferJson, string credReqJson, string credValuesJson, string revRegId, BlobStorageReader blobStorageReader)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
|
System.String |
credOfferJson |
|
System.String |
credReqJson |
|
System.String |
credValuesJson |
|
System.String |
revRegId |
|
BlobStorageReader |
blobStorageReader |
|
Returns
IssuerCreateCredentialOfferAsync(Wallet, String)
Declaration
public static Task<string> IssuerCreateCredentialOfferAsync(Wallet wallet, string credDefId)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
|
System.String |
credDefId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
IssuerCreateSchemaAsync(String, String, String, String)
Declaration
public static Task<IssuerCreateSchemaResult> IssuerCreateSchemaAsync(string issuerDid, string name, string version, string attrs)
Parameters
Type |
Name |
Description |
System.String |
issuerDid |
|
System.String |
name |
|
System.String |
version |
|
System.String |
attrs |
|
Returns
IssuerMergeRevocationRegistryDeltasAsync(String, String)
Declaration
public static Task<string> IssuerMergeRevocationRegistryDeltasAsync(string revRegDelta, string otherRevRegDelta)
Parameters
Type |
Name |
Description |
System.String |
revRegDelta |
|
System.String |
otherRevRegDelta |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
IssuerRevokeCredentialAsync(Wallet, BlobStorageReader, String, String)
Declaration
public static Task<string> IssuerRevokeCredentialAsync(Wallet wallet, BlobStorageReader blobStorageReader, string revRegId, string credRevocId)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
|
BlobStorageReader |
blobStorageReader |
|
System.String |
revRegId |
|
System.String |
credRevocId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
ProverCreateCredentialReqAsync(Wallet, String, String, String, String)
Declaration
public static Task<ProverCreateCredentialRequestResult> ProverCreateCredentialReqAsync(Wallet wallet, string proverDid, string credOfferJson, string credDefJson, string masterSecretId)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
|
System.String |
proverDid |
|
System.String |
credOfferJson |
|
System.String |
credDefJson |
|
System.String |
masterSecretId |
|
Returns
ProverCreateMasterSecretAsync(Wallet, String)
Creates a master secret with the specified name and stores it in the provided wallet.
Declaration
public static Task<string> ProverCreateMasterSecretAsync(Wallet wallet, string masterSecretId)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
The target wallet.
|
System.String |
masterSecretId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
An asynchronous System.Threading.Tasks.Task that completes when the operation has completed.
|
ProverCreateProofAsync(Wallet, String, String, String, String, String, String)
Creates a proof for the provided proof request.
Declaration
public static Task<string> ProverCreateProofAsync(Wallet wallet, string proofRequest, string requestedCredentials, string masterSecret, string schemas, string credentialDefs, string revStates)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
The target wallet.
|
System.String |
proofRequest |
|
System.String |
requestedCredentials |
|
System.String |
masterSecret |
|
System.String |
schemas |
|
System.String |
credentialDefs |
|
System.String |
revStates |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
An asynchronous System.Threading.Tasks.Task<> that, when the operation completes, resolves
to a JSON string containing the proof.
|
ProverGetCredentialsAsync(Wallet, String)
Declaration
public static Task<string> ProverGetCredentialsAsync(Wallet wallet, string filterJson)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
|
System.String |
filterJson |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
ProverGetCredentialsForProofReqAsync(Wallet, String)
Declaration
public static Task<string> ProverGetCredentialsForProofReqAsync(Wallet wallet, string proofRequestJson)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
|
System.String |
proofRequestJson |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
ProverStoreCredentialAsync(Wallet, String, String, String, String, String)
Declaration
public static Task<string> ProverStoreCredentialAsync(Wallet wallet, string credId, string credReqMetadataJson, string credJson, string credDefJson, string revRegDefJson)
Parameters
Type |
Name |
Description |
Wallet |
wallet |
|
System.String |
credId |
|
System.String |
credReqMetadataJson |
|
System.String |
credJson |
|
System.String |
credDefJson |
|
System.String |
revRegDefJson |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
UpdateRevocationStateAsync(BlobStorageReader, String, String, String, Int64, String)
Declaration
public static Task<string> UpdateRevocationStateAsync(BlobStorageReader blobStorageReader, string revState, string revRegDef, string revRegDelta, long timestamp, string credRevId)
Parameters
Type |
Name |
Description |
BlobStorageReader |
blobStorageReader |
|
System.String |
revState |
|
System.String |
revRegDef |
|
System.String |
revRegDelta |
|
System.Int64 |
timestamp |
|
System.String |
credRevId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
VerifierVerifyProofAsync(String, String, String, String, String, String)
Declaration
public static Task<bool> VerifierVerifyProofAsync(string proofRequest, string proof, string schemas, string credentialDefs, string revocRegDefs, string revocRegs)
Parameters
Type |
Name |
Description |
System.String |
proofRequest |
|
System.String |
proof |
|
System.String |
schemas |
|
System.String |
credentialDefs |
|
System.String |
revocRegDefs |
|
System.String |
revocRegs |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|