Skip to content

Commit

Permalink
Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnn committed Nov 5, 2024
1 parent 438eb68 commit e335886
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 104 deletions.
17 changes: 8 additions & 9 deletions packages/credential-sdk/src/vc/credentials.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,26 @@ import defaultDocumentLoader from './document-loader';
import { getAndValidateSchemaIfPresent } from './schema';
import {
checkRevocationRegistryStatus,
DockRevRegQualifier,
getCredentialStatus,
isAccumulatorRevocationStatus,
isRegistryRevocationStatus,
RevRegType,
} from './revocation';

import {
getSuiteFromKeyDoc,
expandJSONLD,
getKeyFromDIDDocument,
processIfKvac,
} from './helpers';
import {
DockRevRegQualifier, RevRegType,
DEFAULT_CONTEXT_V1_URL,
credentialContextField,
PrivateStatusList2021EntryType,
DockStatusList2021Qualifier,
StatusList2021EntryType,
PrivateStatusList2021Qualifier,
} from './constants';

import {
getSuiteFromKeyDoc,
expandJSONLD,
getKeyFromDIDDocument,
processIfKvac,
} from './helpers';
import { ensureValidDatetime } from '../utils/type-helpers';

import {
Expand Down
72 changes: 0 additions & 72 deletions packages/credential-sdk/src/vc/custom_crypto.js

This file was deleted.

38 changes: 18 additions & 20 deletions packages/credential-sdk/src/vc/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { signPresentation, verifyPresentation } from "./presentations";
import { issueCredential, verifyCredential } from "./credentials";

import { DEFAULT_TYPE, DEFAULT_CONTEXT } from "./constants";
import { verifyPresentation } from './presentations';
import { verifyCredential } from './credentials';

/**
* Check that credential is verified, i.e. the credential has VCDM compliant structure and the `proof`
Expand All @@ -28,19 +26,19 @@ export async function isVerifiedPresentation(presentation, params) {
return result.verified;
}

export { default as Presentation } from "./presentation";
export { default as VerifiableCredential } from "./verifiable-credential";
export { default as VerifiablePresentation } from "./verifiable-presentation";
export { default as StatusList2021Credential } from "./status-list2021-credential";
export { default as PrivateStatusList2021Credential } from "./private-status-list2021-credential";
export * from "./credentials";
export * from "./helpers";
export * from "./schema";
export * from "./constants";
export * from "./custom_crypto";
export * from "./document-loader";
export * from "./jws";
export * from "./presentation";
export * from "./presentations";
export * from "./revocation";
export * from "./schema";
export { default as Presentation } from './presentation';
export { default as VerifiableCredential } from './verifiable-credential';
export { default as VerifiablePresentation } from './verifiable-presentation';
export { default as StatusList2021Credential } from './status-list2021-credential';
export { default as PrivateStatusList2021Credential } from './private-status-list2021-credential';
export * from './credentials';
export * from './helpers';
export * from './schema';
export * from './constants';
export * from './custom_crypto';
export { default as CredentialIssuancePurpose } from './CredentialIssuancePurpose';
export { default as documentLoader } from './document-loader';
export * from './jws';
export * from './presentations';
export * from './revocation';
export * from './crypto';
3 changes: 0 additions & 3 deletions packages/credential-sdk/src/vc/revocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
KB_UNI_ACCUMULATOR_24,
} from '@docknetwork/crypto-wasm-ts';
import { randomAsHex, u8aToHex } from '../utils/bytes';
import { OneOfPolicy } from '../types/policy';

import {
RevRegType,
Expand Down Expand Up @@ -142,5 +141,3 @@ export async function checkRevocationRegistryStatus(

return { verified: true };
}

export { OneOfPolicy, RevRegType, DockRevRegQualifier };

0 comments on commit e335886

Please sign in to comment.