Index

src/shared/trust/x509-validation.service.ts

arrayBufferToHex
arrayBufferToHex(buffer: ArrayBuffer)
Parameters :
Name Type Optional
buffer ArrayBuffer No
Returns : string
certFromBase64Der
certFromBase64Der(val: string)

Parse a certificate from a Base64-encoded DER string (as used in LoTE trust lists). Converts to PEM format which is more reliably parsed by

Parameters :
Name Type Optional
val string No
Returns : x509.X509Certificate

src/main.ts

bootstrap
bootstrap()

Bootstrap function to initialize the NestJS application.

filterOpenApiPaths
filterOpenApiPaths(document: OpenAPIObject, predicate)

Filter an OpenAPI document to only include paths matching (or not matching) a given prefix. Also prunes the tag list to only include used tags.

Parameters :
Name Type Optional
document OpenAPIObject No
predicate No
Returns : OpenAPIObject
loadTlsOptions
loadTlsOptions()

Load TLS options from certificate and key files. Returns undefined if TLS is not enabled or files are not found.

src/issuer/configuration/credentials/types/credential-config-types.ts

buildMsoMdocConfig
buildMsoMdocConfig(doctype: string, options: BuildCredentialConfigOptions, metadata?: CredentialMetadataInput, scope?: string)

Build an mso_mdoc credential configuration

Parameters :
Name Type Optional
doctype string No
options BuildCredentialConfigOptions No
metadata CredentialMetadataInput Yes
scope string Yes
buildSdJwtDcConfig
buildSdJwtDcConfig(vct: string, options: BuildCredentialConfigOptions, metadata?: CredentialMetadataInput, scope?: string)

Build a dc+sd-jwt credential configuration

Parameters :
Name Type Optional
vct string No
options BuildCredentialConfigOptions No
metadata CredentialMetadataInput Yes
scope string Yes
isMsoMdocConfig
isMsoMdocConfig(config)

Type guard to check if a config is for mso_mdoc format

Parameters :
Name Optional
config No
isSdJwtDcConfig
isSdJwtDcConfig(config)

Type guard to check if a config is for dc+sd-jwt format

Parameters :
Name Optional
config No
toCredentialConfigurationSupported
toCredentialConfigurationSupported(config: TypedCredentialConfig)

Converts a TypedCredentialConfig to CredentialConfigurationSupported This is a type assertion helper since our types are derived from the SDK

Parameters :
Name Type Optional
config TypedCredentialConfig No

src/shared/utils/config-printer/helpers.ts

extractConditionsFromKeyDesc
extractConditionsFromKeyDesc(keyDesc: any)

Extracts the conditions from a given key description.

Parameters :
Name Type Optional Description
keyDesc any No

The key description object to extract conditions from.

Returns : string[]

An array of strings representing the extracted conditions.

flattenMetas
flattenMetas(desc: any)

Flattens the meta information from a given description object.

Parameters :
Name Type Optional Description
desc any No

The description object to extract meta information from.

Returns : Record<string, any>

A record containing the flattened meta information.

isEffectivelyRequired
isEffectivelyRequired(key: string, rawEnv: Record)

Tests if a config key is effectively required in the current environment.

Parameters :
Name Type Optional Description
key string No

The config key to test.

rawEnv Record No

The raw environment variables.

Returns : boolean

True if the key is effectively required, false otherwise.

summarizeFlags
summarizeFlags(flags?: any)

Summarizes the flags for a given configuration key.

Parameters :
Name Type Optional Description
flags any Yes

The flags object to summarize.

Returns : string

A string representation of the flags.

summarizeSchemaShape
summarizeSchemaShape(s?: any)

Summarizes the shape of a given schema.

Parameters :
Name Type Optional Description
s any Yes

The schema object to summarize.

Returns : string

A string representation of the schema shape.

summarizeWhenEntry
summarizeWhenEntry(w: any)

Summarizes the conditions for a given "when" entry.

Parameters :
Name Type Optional Description
w any No

The "when" entry object to summarize.

Returns : string

A string representation of the "when" entry.

src/issuer/issuance/oid4vci/chained-as/chained-as.service.ts

extractDpopJkt
extractDpopJkt(dpopJwt?: string)

Extract DPoP JWK thumbprint from DPoP JWT. Returns undefined if parsing fails or DPoP is not provided.

Parameters :
Name Type Optional
dpopJwt string Yes
Returns : string | undefined

src/shared/utils/webhook/webhook.utils.ts

extractRawTokenFromSubmission
extractRawTokenFromSubmission(id: string, payload)

Extracts the raw cryptographic token from the presentation payload. Supporting Multi-Credential-Flows by evaluating the descriptor_map or falling back to ID-mapping.

Parameters :
Name Type Optional
id string No
payload No
Returns : string | undefined

src/shared/trust/types.ts

findServiceByType
findServiceByType(entity: TrustedEntity, serviceType: ServiceTypeIdentifier)

Helper to find a specific service type within a TrustedEntity.

Parameters :
Name Type Optional
entity TrustedEntity No
serviceType ServiceTypeIdentifier No
Returns : TrustedEntityServiceCert | undefined
getIssuanceCert
getIssuanceCert(entity: TrustedEntity)

Get the issuance certificate from a TrustedEntity.

Parameters :
Name Type Optional
entity TrustedEntity No
Returns : TrustedEntityServiceCert | undefined
getRevocationCert
getRevocationCert(entity: TrustedEntity)

Get the revocation certificate from a TrustedEntity.

Parameters :
Name Type Optional
entity TrustedEntity No
Returns : TrustedEntityServiceCert | undefined

src/shared/utils/encryption/encrypted-column.transformer.ts

getEncryptionService
getEncryptionService()

Get the encryption service instance. Throws if not initialized.

Returns : EncryptionService
initializeEncryptionTransformer
initializeEncryptionTransformer(service: EncryptionService)

Initialize the encryption transformer with an EncryptionService instance. Must be called during application bootstrap before any database operations.

Parameters :
Name Type Optional
service EncryptionService No
Returns : void

src/issuer/issuance/oid4vci/util.ts

getHeadersFromRequest
getHeadersFromRequest(req: Request)

Utility function to extract headers from an Express request

Parameters :
Name Type Optional
req Request No
Returns : globalThis.Headers

src/verifier/presentations/validators/transaction-data.validator.ts

IsTransactionData
IsTransactionData(validationOptions?: ValidationOptions)
Parameters :
Name Type Optional
validationOptions ValidationOptions Yes

src/auth/secure.decorator.ts

Secured
Secured(roles)
Parameters :
Name Optional
roles No

src/issuer/configuration/credentials/entities/iae-action.dto.ts

transformIaeActions
transformIaeActions()

Helper function to validate and transform IAE actions array.

Returns : ReturnType<unknown>

results matching ""

    No results matching ""