Skip to content

Commit 1090c1a

Browse files
committed
Move serviceType constant into constants.js.
1 parent bf9d52a commit 1090c1a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

lib/constants.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/*!
22
* Copyright (c) 2024 Digital Bazaar, Inc. All rights reserved.
33
*/
4-
54
// max list size is MAX_BLOCK_COUNT * MAX_BLOCK_SIZE = 131072
65
export const MAX_BLOCK_COUNT = 4096;
76
export const MAX_BLOCK_SIZE = 32;
7+
8+
export const serviceType = 'vc-issuer';

lib/helpers.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@ import {getCredentialStatus} from '@digitalbazaar/vc-status-list';
1313
import {getSuiteParams} from './suites.js';
1414
import {httpsAgent} from '@bedrock/https-agent';
1515
import {serviceAgents} from '@bedrock/service-agent';
16+
import {serviceType} from './constants.js';
1617

1718
const {util: {BedrockError}} = bedrock;
1819

19-
export const serviceType = 'vc-issuer';
20-
2120
export async function generateLocalId() {
2221
// 128-bit random number, base58 multibase + multihash encoded
2322
return generateId({

lib/issuer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@
44
import * as bedrock from '@bedrock/core';
55
import * as slcs from './slcs.js';
66
import {
7-
issue as _issue, getCredentialStatusInfo, getIssuerAndSuite, serviceType
7+
issue as _issue, getCredentialStatusInfo, getIssuerAndSuite
88
} from './helpers.js';
99
import assert from 'assert-plus';
1010
import {createDocumentLoader} from './documentLoader.js';
1111
import {CredentialStatusIssuer} from './CredentialStatusIssuer.js';
1212
import {CredentialStatusWriter} from './CredentialStatusWriter.js';
1313
import {decodeList} from '@digitalbazaar/vc-status-list';
1414
import {documentStores} from '@bedrock/service-agent';
15+
import {serviceType} from './constants.js';
1516

1617
const {util: {BedrockError}} = bedrock;
1718

0 commit comments

Comments
 (0)