MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / publicKey

Method publicKey

packages/core/wgc/crypto/SubtleCrypto.ts:142–158  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected