rsa key compat with go

This commit is contained in:
Friedel Ziegelmayer
2016-05-20 14:41:25 +02:00
parent fe202607eb
commit d4c1672e06
8 changed files with 90 additions and 17 deletions

View File

@ -66,6 +66,10 @@ class RsaPrivateKey {
}
get public () {
if (!this._publicKey) {
throw new Error('public key not provided')
}
return new RsaPublicKey(this._publicKey)
}