Store credential

Important

Before you implementing your holder, ensure that you have added your Verifiable Credential issued (link).

Add the VC received from issuer in the holder's codebase.

Sample VC

let vc: any = {
  id: "urn:262e62b7-a7cc-4429-a562-2b34b73ad37e",
  "@context": [
    "https://www.w3.org/2018/credentials/v1",
    "https://schema.iden3.io/core/jsonld/iden3proofs.jsonld",
    "https://redbellynetwork.github.io/did-schema/driversLicence/credential/v1.jsonld",
  ],
  type: ["VerifiableCredential", "DriversLicenceCredential"],
  credentialSubject: {
    id: "did:key:Av2imXAIjOuRN6cs9TGXKjD0qhcAxL410S4y6J/lbN75",
    name: "mary testfour",
    licenseNumber: "103188691",
    stateOfIssuance: "QLD",
    birthDate: 19530101,
    customerReference: "6e74b01f-4ec8-f0a7-c2fe-d60e773d64d5",
    expiryDate: 10101,
    publicAddress: "0xAB76da8136A433E4CcF3A149e424c7aA8CDda0A3",
    type: "DriversLicenceCredential",
  },
  issuer: "did:iden3:polygon:mumbai:x3LXBvzJR4vwV4kHvwSrkBP9PRNYpiLwwTisVEKrZ",
  issuanceDate: "2023-12-26T06:11:03.426Z",
  credentialSchema: {
    id: "https://redbellynetwork.github.io/did-schema/driversLicence/credential/DriversLicenceCredential-v1.json",
    type: "JsonSchema2023",
  },
  credentialStatus: {
    id: "https://rhs.staging.redbelly.network/node?state=b957baed869cfc9abaf2c2db5048b63778dd147a5d44d8ef6007c87f76f0940d",
    type: "Iden3ReverseSparseMerkleTreeProof",
    revocationNonce: 3848,
  },
  proof: {
    type: "BbsBlsSignature2020",
    created: "2023-12-26T06:11:03.426Z",
    verificationMethod:
      "isN5XEv3IZRq/jYMHMrhfM44VN2pvQQnmmrank/TUaPoOlz0YugEzS4EIgVWXJXrFnZJZVtOFPdSObztbIvJajnjcVI78XYCrmnaLSWYj/U0rZr7nbq/rzrt5T5DK8K6",
    proofPurpose: "assertionMethod",
    proofValue:
      "pztnImbLdTnFtXT+qlE+L5lqIKzSYV8yhBikp6E3vwc9YKctx9ijEDyZcFpAkZXWMKVg9X44OT7IyqxonIH7xLuNJjBkG7KYma9urLMBCo4x5JoTWPaG1p7URXapIpy1ng+avITVXJin9XQoxPxyNA==",
  },
};


Next Up: Extract details →