Skip to content

Commit

Permalink
Merge branch 'develop' into dependabot/github_actions/develop/amannn/…
Browse files Browse the repository at this point in the history
…action-semantic-pull-request-5.4.0
  • Loading branch information
DaevMithran authored Nov 21, 2023
2 parents ac59b88 + 0a5bff4 commit fd7f638
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 19 deletions.
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## [3.6.13](https://github.com/cheqd/did-provider-cheqd/compare/3.6.12...3.6.13) (2023-11-15)


### Bug Fixes

* Allow for partial underlying verification options ([b68052e](https://github.com/cheqd/did-provider-cheqd/commit/b68052e2e5dea9ec29daa239aa66a25e56138e2c))

## [3.6.13-develop.1](https://github.com/cheqd/did-provider-cheqd/compare/3.6.12...3.6.13-develop.1) (2023-11-15)


### Bug Fixes

* Allow for partial underlying verification options ([b68052e](https://github.com/cheqd/did-provider-cheqd/commit/b68052e2e5dea9ec29daa239aa66a25e56138e2c))

## [3.6.12](https://github.com/cheqd/did-provider-cheqd/compare/3.6.11...3.6.12) (2023-11-15)


### Bug Fixes

* Align action-based flag ([0cc107f](https://github.com/cheqd/did-provider-cheqd/commit/0cc107fec2d687b0839fcb59ebc2b4c168ab7f79))

## [3.6.12-develop.2](https://github.com/cheqd/did-provider-cheqd/compare/3.6.12-develop.1...3.6.12-develop.2) (2023-11-15)


### Bug Fixes

* Align action-based flag ([0cc107f](https://github.com/cheqd/did-provider-cheqd/commit/0cc107fec2d687b0839fcb59ebc2b4c168ab7f79))

## [3.6.12-develop.1](https://github.com/cheqd/did-provider-cheqd/compare/3.6.11...3.6.12-develop.1) (2023-10-24)

## [3.6.11](https://github.com/cheqd/did-provider-cheqd/compare/3.6.10...3.6.11) (2023-10-23)
Expand Down
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cheqd/did-provider-cheqd",
"version": "3.6.12-develop.1",
"version": "3.6.13",
"description": "Veramo SDK plugin for the did:cheqd DID method",
"license": "Apache-2.0",
"author": "Cheqd Foundation Limited (https://github.com/cheqd)",
Expand Down
18 changes: 16 additions & 2 deletions src/agent/ICheqd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ export interface ICheqdVerifyPresentationWithStatusList2021Args {
export interface ICheqdCheckCredentialStatusWithStatusList2021Args {
credential?: W3CVerifiableCredential;
statusOptions?: ICheqdCheckCredentialWithStatusList2021StatusOptions;
verificationOptions?: IVerifyCredentialArgs;
fetchList?: boolean;
dkgOptions?: DkgOptions;
options?: ICheqdStatusList2021Options;
Expand All @@ -482,6 +483,7 @@ export interface ICheqdCheckCredentialStatusWithStatusList2021Args {
export interface ICheqdRevokeCredentialWithStatusList2021Args {
credential?: W3CVerifiableCredential;
revocationOptions?: ICheqdRevokeCredentialWithStatusList2021Options;
verificationOptions?: IVerifyCredentialArgs;
fetchList?: boolean;
publish?: boolean;
publishEncrypted?: boolean;
Expand All @@ -498,6 +500,7 @@ export interface ICheqdRevokeCredentialWithStatusList2021Args {
export interface ICheqdRevokeBulkCredentialsWithStatusList2021Args {
credentials?: W3CVerifiableCredential[];
revocationOptions?: ICheqdRevokeBulkCredentialsWithStatusList2021Options;
verificationOptions?: IVerifyCredentialArgs;
fetchList?: boolean;
publish?: boolean;
publishEncrypted?: boolean;
Expand All @@ -514,6 +517,7 @@ export interface ICheqdRevokeBulkCredentialsWithStatusList2021Args {
export interface ICheqdSuspendCredentialWithStatusList2021Args {
credential?: W3CVerifiableCredential;
suspensionOptions?: ICheqdSuspendCredentialWithStatusList2021Options;
verificationOptions?: IVerifyCredentialArgs;
fetchList?: boolean;
publish?: boolean;
publishEncrypted?: boolean;
Expand All @@ -530,6 +534,7 @@ export interface ICheqdSuspendCredentialWithStatusList2021Args {
export interface ICheqdSuspendBulkCredentialsWithStatusList2021Args {
credentials?: W3CVerifiableCredential[];
suspensionOptions?: ICheqdSuspendBulkCredentialsWithStatusList2021Options;
verificationOptions?: IVerifyCredentialArgs;
fetchList?: boolean;
publish?: boolean;
publishEncrypted?: boolean;
Expand All @@ -546,6 +551,7 @@ export interface ICheqdSuspendBulkCredentialsWithStatusList2021Args {
export interface ICheqdUnsuspendCredentialWithStatusList2021Args {
credential?: W3CVerifiableCredential;
unsuspensionOptions?: ICheqdUnsuspendCredentialWithStatusList2021Options;
verificationOptions?: IVerifyCredentialArgs;
fetchList?: boolean;
publish?: boolean;
publishEncrypted?: boolean;
Expand All @@ -562,6 +568,7 @@ export interface ICheqdUnsuspendCredentialWithStatusList2021Args {
export interface ICheqdUnsuspendBulkCredentialsWithStatusList2021Args {
credentials?: W3CVerifiableCredential[];
unsuspensionOptions?: ICheqdUnsuspendBulkCredentialsWithStatusList2021Options;
verificationOptions?: IVerifyCredentialArgs;
fetchList?: boolean;
publish?: boolean;
publishEncrypted?: boolean;
Expand Down Expand Up @@ -2029,6 +2036,7 @@ export class Cheqd implements IAgentPlugin {
// verify credential, if provided and status options are not
if (args?.credential && !args?.statusOptions) {
const verificationResult = await context.agent.verifyCredential({
...args?.verificationOptions,
credential: args.credential,
policies: {
credentialStatus: false,
Expand Down Expand Up @@ -2126,6 +2134,7 @@ export class Cheqd implements IAgentPlugin {
// verify credential, if provided and revocation options are not
if (args?.credential && !args?.revocationOptions) {
const verificationResult = await context.agent.verifyCredential({
...args?.verificationOptions,
credential: args.credential,
policies: {
credentialStatus: false,
Expand Down Expand Up @@ -2246,6 +2255,7 @@ export class Cheqd implements IAgentPlugin {
const verificationResult = await Promise.all(
args.credentials.map(async (credential) => {
return await context.agent.verifyCredential({
...args?.verificationOptions,
credential,
policies: {
credentialStatus: false,
Expand Down Expand Up @@ -2378,6 +2388,7 @@ export class Cheqd implements IAgentPlugin {
// verify credential, if provided and suspension options are not
if (args?.credential && !args?.suspensionOptions) {
const verificationResult = await context.agent.verifyCredential({
...args?.verificationOptions,
credential: args.credential,
policies: {
credentialStatus: false,
Expand Down Expand Up @@ -2498,6 +2509,7 @@ export class Cheqd implements IAgentPlugin {
const verificationResult = await Promise.all(
args.credentials.map(async (credential) => {
return await context.agent.verifyCredential({
...args?.verificationOptions,
credential,
policies: {
credentialStatus: false,
Expand Down Expand Up @@ -2630,6 +2642,7 @@ export class Cheqd implements IAgentPlugin {
// verify credential, if provided and unsuspension options are not
if (args?.credential && !args?.unsuspensionOptions) {
const verificationResult = await context.agent.verifyCredential({
...args?.verificationOptions,
credential: args.credential,
policies: {
credentialStatus: false,
Expand Down Expand Up @@ -2750,6 +2763,7 @@ export class Cheqd implements IAgentPlugin {
const verificationResult = await Promise.all(
args.credentials.map(async (credential) => {
return await context.agent.verifyCredential({
...args?.verificationOptions,
credential,
policies: {
credentialStatus: false,
Expand Down Expand Up @@ -3787,7 +3801,7 @@ export class Cheqd implements IAgentPlugin {

// early exit, if credential is already revoked
if (statusList.getStatus(Number(credential.credentialStatus.statusListIndex)))
return { revoked: false };
return { revoked: true };

// update revocation status
statusList.setStatus(Number(credential.credentialStatus.statusListIndex), true);
Expand Down Expand Up @@ -4776,7 +4790,7 @@ export class Cheqd implements IAgentPlugin {

// early exit, if credential is already suspended
if (statusList.getStatus(Number(credential.credentialStatus.statusListIndex)))
return { suspended: false };
return { suspended: true };

// update suspension status
statusList.setStatus(Number(credential.credentialStatus.statusListIndex), true);
Expand Down

0 comments on commit fd7f638

Please sign in to comment.