@ledgerhq/coin-hedera
Version:
Ledger Hedera Coin integration
17 lines • 680 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const resolver = (signerContext) => {
return async (deviceId, { path }) => {
const publicKey = await signerContext(deviceId, signer => signer.getPublicKey(path));
return {
path,
// NOTE: we do not have the address, it must be entered by the user
// NOTE: we send the publicKey through as the "address"
// this is the only way to pass several hard-coded "is this the right device" checks
address: publicKey,
publicKey,
};
};
};
exports.default = resolver;
//# sourceMappingURL=getAddress.js.map