fix(core): update
This commit is contained in:
parent
5192008320
commit
f3d63e027f
@ -7,6 +7,10 @@ export class PrivateKey {
|
||||
return new PrivateKey(privateKey);
|
||||
}
|
||||
|
||||
public static fromPemString(pemString: string) {
|
||||
return new PrivateKey(plugins.nodeForge.pki.privateKeyFromPem(pemString));
|
||||
}
|
||||
|
||||
// INSTANCE
|
||||
public forgePrivateKey: plugins.nodeForge.pki.PrivateKey;
|
||||
|
||||
|
@ -7,6 +7,10 @@ export class PublicKey {
|
||||
return new PublicKey(privateKey);
|
||||
}
|
||||
|
||||
public static fromPemString(pemString: string) {
|
||||
return new PublicKey(plugins.nodeForge.pki.publicKeyFromPem(pemString));
|
||||
}
|
||||
|
||||
// INSTANCE
|
||||
public forgePublicKey: plugins.nodeForge.pki.PublicKey;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user