(privateKey: string, subject?: string)
| 12 | subject?: string; |
| 13 | |
| 14 | constructor(privateKey: string, subject?: string) { |
| 15 | if (subject) { |
| 16 | tryValidURL(subject); |
| 17 | } |
| 18 | this.subject = subject; |
| 19 | this.privateKey = privateKey; |
| 20 | } |
| 21 | |
| 22 | /** Returns existing public key or generates one using the private key */ |
| 23 | async getPublicKey(): Promise<string> { |
nothing calls this directly
no test coverage detected