()
| 140 | } |
| 141 | |
| 142 | get publicKey() { |
| 143 | if (__IOS__) { |
| 144 | const kp = this[native_]; |
| 145 | if (!this[publicKey_]) { |
| 146 | this[publicKey_] = CryptoKey.fromNative(kp.publicKey); |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | if (__ANDROID__) { |
| 151 | const kp = this[native_]; |
| 152 | if (!this[publicKey_]) { |
| 153 | this[publicKey_] = CryptoKey.fromNative(kp.getPublic()); |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | return this[publicKey_]; |
| 158 | } |
| 159 | |
| 160 | static fromNative(keyPair) { |
| 161 | if (keyPair) { |
nothing calls this directly
no test coverage detected