Skip to content

Commit

Permalink
review naming change
Browse files Browse the repository at this point in the history
  • Loading branch information
LiranCohen committed Jul 12, 2024
1 parent b01b944 commit e0b6c29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/agent/src/store-key.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Jwk> implements AgentDataStore<Jwk> {
protected name = 'DwnKeyStore';

protected _recordProtocolDefinition = JWKProtocolDefinition;
protected _recordProtocolDefinition = JwkProtocolDefinition;

/**
* Properties to use when writing and querying Private Key records with the DWN store.
Expand Down
6 changes: 3 additions & 3 deletions packages/agent/tests/store-key.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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' })
});
Expand Down

0 comments on commit e0b6c29

Please sign in to comment.