INNER CODE UNIT · TypeScript
name
yume-chan/ya-webadb · libraries/adb-credential-nodejs/src/index.ts:144
const name = publicKey.substring(spaceIndex + 1).trim();
return name ? name : undefined;
} catch {
return undefined;
}
}
async #readKey(path: string): Promise<TangoKey> {
const privateKey = await this.#readPrivateKey(path);
const name =
(await this.#readPublicKeyName(path)) ?? this.#getDefaultName();
return { privateKey, name };
}
async *#readVendorKeys(
path: string,
): AsyncGenerator<MaybeError<TangoKey>, void, void> {
let stats;