Skip to content

Commit

Permalink
change key factory to interface
Browse files Browse the repository at this point in the history
Signed-off-by: Matus Zamborsky <[email protected]>
  • Loading branch information
backslash47 committed Jul 18, 2018
1 parent 7c89650 commit 690c105
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/crypto/PrivateKeyFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ import { PrivateKey } from './PrivateKey';
/**
* Interface for Key deserializers
*/
export abstract class KeyDeserializer {
abstract getType(): string;
abstract deserialize(json: JsonKey): PrivateKey;
export interface KeyDeserializer {
getType(): string;
deserialize(json: JsonKey): PrivateKey;
}

/**
* Default private key deserializer.
*/
export class DefaultKeyDeserializer extends KeyDeserializer {
export class DefaultKeyDeserializer implements KeyDeserializer {
getType(): string {
return '';
}
Expand Down

0 comments on commit 690c105

Please sign in to comment.