UNPKG

@ledgerhq/ledger-trust-service

Version:
14 lines 493 B
import network from "@ledgerhq/live-network"; import { getTrustedDomain } from "./common"; export async function getPublicKey(accountId, challenge, env = "prod") { const { data } = await network({ method: "GET", url: `${getTrustedDomain(env)}/v2/hedera/pubkey/${accountId}?challenge=${challenge}`, }); return { accountId: data.account, publicKey: data.key, signedDescriptor: data.signedDescriptor, }; } //# sourceMappingURL=hedera.js.map