From bb3752373ad996fccf76cb2aa799430b11f47e9f Mon Sep 17 00:00:00 2001 From: Liran Cohen Date: Fri, 12 Jul 2024 18:38:32 -0400 Subject: [PATCH] review naming change --- packages/agent/src/store-key.ts | 4 ++-- packages/agent/tests/store-key.spec.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/agent/src/store-key.ts b/packages/agent/src/store-key.ts index 01a1ed506..b5602b5c2 100644 --- a/packages/agent/src/store-key.ts +++ b/packages/agent/src/store-key.ts @@ -6,14 +6,14 @@ import { Convert } from '@web5/common'; import type { Web5PlatformAgent } from './types/agent.js'; import { DwnInterface } from './types/dwn.js'; -import { JWKProtocolDefinition } from './store-data-protocols.js'; +import { JwkProtocolDefinition } from './store-data-protocols.js'; import { TENANT_SEPARATOR } from './utils-internal.js'; import { AgentDataStore, DataStoreDeleteParams, DataStoreGetParams, DataStoreListParams, DataStoreSetParams, DwnDataStore, InMemoryDataStore } from './store-data.js'; export class DwnKeyStore extends DwnDataStore implements AgentDataStore { protected name = 'DwnKeyStore'; - protected _recordProtocolDefinition = JWKProtocolDefinition; + protected _recordProtocolDefinition = JwkProtocolDefinition; /** * Properties to use when writing and querying Private Key records with the DWN store. diff --git a/packages/agent/tests/store-key.spec.ts b/packages/agent/tests/store-key.spec.ts index 70e307a08..65168940e 100644 --- a/packages/agent/tests/store-key.spec.ts +++ b/packages/agent/tests/store-key.spec.ts @@ -10,7 +10,7 @@ import { DwnInterface } from '../src/types/dwn.js'; import { LocalKeyManager } from '../src/local-key-manager.js'; import { PlatformAgentTestHarness } from '../src/test-harness.js'; import { DwnKeyStore, InMemoryKeyStore } from '../src/store-key.js'; -import { JWKProtocolDefinition } from '../src/store-data-protocols.js'; +import { JwkProtocolDefinition } from '../src/store-data-protocols.js'; describe('KeyStore', () => { let testHarness: PlatformAgentTestHarness; @@ -143,9 +143,9 @@ describe('KeyStore', () => { messageType : DwnInterface.RecordsWrite, messageParams : { dataFormat : 'application/json', - protocol : JWKProtocolDefinition.protocol, + protocol : JwkProtocolDefinition.protocol, protocolPath : 'privateJwk', - schema : JWKProtocolDefinition.types.privateJwk.schema, + schema : JwkProtocolDefinition.types.privateJwk.schema, }, dataStream: new Blob([keyBytes], { type: 'application/json' }) });