Skip to content

Commit

Permalink
remove b prime
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Glastra <[email protected]>
  • Loading branch information
TimoGlastra committed Nov 19, 2024
1 parent 7a7038c commit 2a8607f
Show file tree
Hide file tree
Showing 7 changed files with 1,414 additions and 284 deletions.
22 changes: 8 additions & 14 deletions agent/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "agent",
"dependencies": {
"@credo-ts/askar": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/askar?funke",
"@credo-ts/core": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/core?funke",
"@credo-ts/node": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/node?funke",
"@credo-ts/openid4vc": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/openid4vc?funke",
"@credo-ts/askar": "0.5.13-alpha-20241107100446",
"@credo-ts/core": "0.5.13-alpha-20241107100446",
"@credo-ts/node": "0.5.13-alpha-20241107100446",
"@credo-ts/openid4vc": "0.5.13-alpha-20241107100446",
"@hyperledger/aries-askar-nodejs": "^0.2.3",
"@protokoll/mdoc-client": "^0.2.36",
"cors": "^2.8.5",
Expand All @@ -26,16 +26,10 @@
},
"pnpm": {
"overrides": {
"@credo-ts/askar": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/askar?funke",
"@credo-ts/core": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/core?funke",
"@credo-ts/openid4vc": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/openid4vc?funke",
"@credo-ts/node": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/node?funke",
"@sphereon/did-auth-siop": "https://gitpkg.vercel.app/animo/OID4VC/packages/siop-oid4vp?funke",
"@sphereon/oid4vc-common": "https://gitpkg.vercel.app/animo/OID4VC/packages/common?funke",
"@sphereon/oid4vci-common": "https://gitpkg.vercel.app/animo/OID4VC/packages/oid4vci-common?funke",
"@sphereon/oid4vci-issuer": "https://gitpkg.vercel.app/animo/OID4VC/packages/issuer?funke",
"@sphereon/oid4vci-client": "https://gitpkg.vercel.app/animo/OID4VC/packages/client?funke",
"@sphereon/jarm": "https://gitpkg.vercel.app/animo/OID4VC/packages/jarm?funke"
"@credo-ts/askar": "0.5.13-alpha-20241107100446",
"@credo-ts/core": "0.5.13-alpha-20241107100446",
"@credo-ts/openid4vc": "0.5.13-alpha-20241107100446",
"@credo-ts/node": "0.5.13-alpha-20241107100446"
}
}
}
6 changes: 0 additions & 6 deletions agent/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ariesAskar } from '@hyperledger/aries-askar-nodejs'
import { Router } from 'express'
import { AGENT_HOST, AGENT_WALLET_KEY } from './constants'
import { credentialRequestToCredentialMapper } from './issuer'
import { getVerifyHs256Callback } from './verifyHs256Callback'

process.on('unhandledRejection', (reason) => {
console.error('Unhandled rejection', reason)
Expand Down Expand Up @@ -48,11 +47,6 @@ export const agent = new Agent({
openId4VcVerifier: new OpenId4VcVerifierModule({
baseUrl: joinUriParts(AGENT_HOST, ['siop']),
router: openId4VpRouter,
endpoints: {
authorization: {
getVerifyHs256Callback,
},
},
}),
x509: new X509Module({
trustedCertificates: [x509PidIssuerCertificate, x509PidIssuerRootCertificate],
Expand Down
4 changes: 0 additions & 4 deletions agent/src/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,6 @@ apiRouter.post('/requests/create', async (request: Request, response: Response)
})
}

const key = await agent.context.wallet.createKey({ keyType: KeyType.P256 })
const additionalPayloadClaims = { rp_eph_pub: getJwkFromKey(key).toJson() }

const { authorizationRequest, verificationSession } =
await agent.modules.openId4VcVerifier.createAuthorizationRequest({
verifierId: verifier.verifierId,
Expand All @@ -183,7 +180,6 @@ apiRouter.post('/requests/create', async (request: Request, response: Response)
presentationExchange: {
definition,
},
additionalPayloadClaims,
responseMode: createPresentationRequestBody.responseMode,
})

Expand Down
2 changes: 1 addition & 1 deletion agent/src/verifiers/util.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { DifPresentationExchangeDefinitionV2 } from '@credo-ts/core'
import { randomUUID } from 'node:crypto'
import type { DifPresentationExchangeDefinitionV2 } from '@credo-ts/core'

export function sdJwtInputDescriptor({
vcts,
Expand Down
109 changes: 0 additions & 109 deletions agent/src/verifyHs256Callback.ts

This file was deleted.

14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,10 @@
},
"pnpm": {
"overrides": {
"@credo-ts/askar": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/askar?funke",
"@credo-ts/core": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/core?funke",
"@credo-ts/openid4vc": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/openid4vc?funke",
"@credo-ts/node": "https://gitpkg.vercel.app/animo/aries-framework-javascript/packages/node?funke",
"@sphereon/did-auth-siop": "https://gitpkg.vercel.app/animo/OID4VC/packages/siop-oid4vp?funke",
"@sphereon/oid4vc-common": "https://gitpkg.vercel.app/animo/OID4VC/packages/common?funke",
"@sphereon/oid4vci-common": "https://gitpkg.vercel.app/animo/OID4VC/packages/oid4vci-common?funke",
"@sphereon/oid4vci-issuer": "https://gitpkg.vercel.app/animo/OID4VC/packages/issuer?funke",
"@sphereon/oid4vci-client": "https://gitpkg.vercel.app/animo/OID4VC/packages/client?funke",
"@sphereon/jarm": "https://gitpkg.vercel.app/animo/OID4VC/packages/jarm?funke"
"@credo-ts/askar": "0.5.13-alpha-20241107100446",
"@credo-ts/core": "0.5.13-alpha-20241107100446",
"@credo-ts/openid4vc": "0.5.13-alpha-20241107100446",
"@credo-ts/node": "0.5.13-alpha-20241107100446"
}
}
}
Loading

0 comments on commit 2a8607f

Please sign in to comment.