Skip to content

Commit

Permalink
fix: things
Browse files Browse the repository at this point in the history
  • Loading branch information
auer-martin committed Oct 8, 2024
1 parent d178915 commit 9e620eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .changeset/giant-hotels-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@protokoll/mdoc-client': patch
'@protokoll/mdoc-node': patch
---

fix: namespace
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export class DeviceSignedDocument extends IssuerSignedDocument {

return Object.fromEntries(
namespaces.map(namespace => {
const namespaceValues = this.getIssuerNameSpace(namespace);
const namespaceValues = this.getDeviceNameSpace(namespace);
if (!namespaceValues) {
throw new Error(
`Cannot extract the namespace '${namespace}' from the mdoc.`
Expand Down
4 changes: 1 addition & 3 deletions packages/mdoc/mdoc-node/__tests__/issuing/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import type { JWK } from 'jose';

// All the keys here are randomly generated for the purpose of this test.
export const DEVICE_JWK = {
kty: 'EC',
Expand Down Expand Up @@ -29,7 +27,7 @@ MEECAQAwEwYHKoZIzj0CAQYIKoZIzj0DAQcEJzAlAgEBBCCjo+vMGbV0J9LCokdb
oNWqYk4JBIgCiysI99sUkMw2ng==
-----END PRIVATE KEY-----`;

export const ISSUER_PRIVATE_KEY_JWK: JWK = {
export const ISSUER_PRIVATE_KEY_JWK = {
kty: 'EC',
kid: '1234',
x: 'iTwtg0eQbcbNabf2Nq9L_VM_lhhPCq2s0Qgw2kRx29s',
Expand Down

0 comments on commit 9e620eb

Please sign in to comment.