@ledgerhq/coin-hedera
Version:
Ledger Hedera Coin integration
15 lines • 600 B
JavaScript
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,
};
};
};
export default resolver;
//# sourceMappingURL=getAddress.js.map