mirror of
https://github.com/fluencelabs/js-libp2p-crypto
synced 2025-06-25 23:01:37 +00:00
rsa key compat with go
This commit is contained in:
@ -66,6 +66,10 @@ class RsaPrivateKey {
|
||||
}
|
||||
|
||||
get public () {
|
||||
if (!this._publicKey) {
|
||||
throw new Error('public key not provided')
|
||||
}
|
||||
|
||||
return new RsaPublicKey(this._publicKey)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user