Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(credentials): indy cred attachment format #862

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import { IndyCredPropose } from './models/IndyCredPropose'
const INDY_CRED_ABSTRACT = 'hlindy/[email protected]'
const INDY_CRED_REQUEST = 'hlindy/[email protected]'
const INDY_CRED_FILTER = 'hlindy/[email protected]'
const INDY_CRED = 'hlindy/[email protected]'

@scoped(Lifecycle.ContainerScoped)
export class IndyCredentialFormatService extends CredentialFormatService<IndyCredentialFormat> {
Expand Down Expand Up @@ -302,7 +303,7 @@ export class IndyCredentialFormatService extends CredentialFormatService<IndyCre

const format = new CredentialFormatSpec({
attachId,
format: INDY_CRED_ABSTRACT,
format: INDY_CRED,
})

const attachment = this.getFormatData(credential, format.attachId)
Expand Down Expand Up @@ -355,7 +356,7 @@ export class IndyCredentialFormatService extends CredentialFormatService<IndyCre
}

public supportsFormat(format: string): boolean {
const supportedFormats = [INDY_CRED_ABSTRACT, INDY_CRED_REQUEST, INDY_CRED_FILTER]
const supportedFormats = [INDY_CRED_ABSTRACT, INDY_CRED_REQUEST, INDY_CRED_FILTER, INDY_CRED]

return supportedFormats.includes(format)
}
Expand Down