fix(core): update
This commit is contained in:
@@ -13,7 +13,7 @@ export class SmartJwt {
|
||||
public publicKey: plugins.smartcrypto.PublicKey;
|
||||
public privateKey: plugins.smartcrypto.PrivateKey;
|
||||
|
||||
constructor() {};
|
||||
constructor() {}
|
||||
|
||||
/**
|
||||
* creates a JWT
|
||||
@@ -41,7 +41,7 @@ export class SmartJwt {
|
||||
}
|
||||
|
||||
/**
|
||||
* sets a public key
|
||||
* sets a public key
|
||||
*/
|
||||
public async setPublicKey(publicKey: plugins.smartcrypto.PublicKey) {
|
||||
this.publicKey = publicKey;
|
||||
@@ -65,7 +65,6 @@ export class SmartJwt {
|
||||
this.publicKey = plugins.smartcrypto.PublicKey.fromPemString(jsonKeyPair.publicPem);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* creates a new keypair
|
||||
*/
|
||||
@@ -74,4 +73,4 @@ export class SmartJwt {
|
||||
this.setPrivateKey(keypair.privateKey);
|
||||
this.setPublicKey(keypair.publicKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user