5.0.0 • Published 5 years ago

@ledgerhq/hw-http-proxy-devserver v5.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 years ago

@ledgerhq/hw-http-proxy-devserver

Proxy a Ledger device plugged in USB over HTTP / WebSocket.

  • Plug your Ledger device on your computer
  • Run a HTTP server with the ledger-hw-http-proxy-devserver command
  • Use @ledgerhq/hw-transport-http in your code like a normal transport so you can run Legder device APDU over http.

Goal: This library is meant for DEV & testing purpose only. It is not designed to be used in PROD.

Setup

Install with one of these:

npm i -g @ledgerhq/hw-http-proxy-devserver
yarn global add @ledgerhq/hw-http-proxy-devserver

Run the server

In a console, simply run:

ledger-hw-http-proxy-devserver

hw-transport-http to communicate with the server

To communicate with this server, there is a dedicated Transport library. You can use it like any other Ledger transport like hw-transport-node-hid, hw-transport-u2f, ...

import withStaticURL from "@ledgerhq/hw-transport-http";

// you can change localhost to a local IP (e.g. to use from a Phone)
const Transport = withStaticURL("ws://localhost:8435");

// ... normal @ledgerhq/* code

import AppBtc from "@ledgerhq/hw-app-btc";
const getBtcAddress = async () => {
  const transport = await Transport.create();
  const btc = new AppBtc(transport);
  const result = await btc.getWalletPublicKey("44'/0'/0'/0/0");
  return result.bitcoinAddress;
};
getBtcAddress().then(a => console.log(a));

More information

Github, Ledger Devs Slack

5.0.0-rc.4

5 years ago

5.0.0

5 years ago

5.0.0-babel7.4

5 years ago

5.0.0-babel7.3

5 years ago

4.78.0

5 years ago

5.0.0-babel7.1

5 years ago

4.77.0

5 years ago

5.0.0-alpha.7

5 years ago

4.74.3-alpha.6

5 years ago

5.0.0-alpha.5

5 years ago

5.0.0-alpha.4

5 years ago

5.0.0-alpha.3

5 years ago

5.0.0-alpha.1

5 years ago

4.74.0

5 years ago

4.74.2

5 years ago

4.74.1

5 years ago

4.73.7

5 years ago

4.73.5

5 years ago

4.73.4

5 years ago

4.73.3

5 years ago

4.73.2

5 years ago

4.73.1

5 years ago

4.72.2

5 years ago

4.72.1

5 years ago

4.72.0

5 years ago

4.71.0

5 years ago

4.70.3

5 years ago

4.70.2

5 years ago

4.70.0

5 years ago

4.68.4

5 years ago

4.68.2

5 years ago

4.68.0

5 years ago

4.66.0

5 years ago

4.65.1

5 years ago

4.65.0

5 years ago

4.64.1

5 years ago

4.64.0

5 years ago

4.63.2

5 years ago

4.63.1

5 years ago

4.62.0

5 years ago

4.61.1

5 years ago

4.61.0

5 years ago

4.60.3

5 years ago

4.60.2

6 years ago

4.60.0

6 years ago

4.59.1-alpha.2

6 years ago

4.59.0

6 years ago

4.58.0

6 years ago

4.57.0

6 years ago

4.56.0

6 years ago

4.55.1-alpha.2

6 years ago

4.55.0

6 years ago

4.54.0

6 years ago

4.53.0

6 years ago

4.52.2

6 years ago

4.52.1

6 years ago

4.52.0

6 years ago

4.51.2

6 years ago

4.51.1

6 years ago

4.51.0

6 years ago

4.50.0

6 years ago

4.48.0

6 years ago

4.47.0

6 years ago

4.46.0

6 years ago

4.45.0

6 years ago

4.44.2

6 years ago

4.44.0

6 years ago

4.43.1-alpha.0

6 years ago

4.43.0

6 years ago

4.42.0

6 years ago

4.41.1

6 years ago

4.40.0

6 years ago

4.39.0

6 years ago

4.38.6

6 years ago

4.38.0

6 years ago

4.36.2

6 years ago

4.37.0

6 years ago

4.35.1-beta.28

6 years ago

4.35.0

6 years ago

4.33.3

6 years ago

4.33.2

6 years ago

4.33.1

6 years ago

4.33.0

6 years ago

4.32.0

6 years ago

4.30.1

6 years ago

4.29.2

6 years ago

4.29.1

6 years ago

4.27.1

6 years ago

4.26.0

6 years ago

4.24.0

6 years ago

4.23.0

6 years ago

4.22.0

6 years ago

4.21.0

6 years ago

4.19.1

6 years ago

4.19.0

6 years ago

4.18.0

6 years ago

4.16.0

6 years ago

4.15.0

6 years ago

4.13.0

6 years ago

4.12.0

7 years ago

4.7.3

7 years ago

4.7.0

7 years ago

4.6.0

7 years ago

4.3.0

7 years ago

4.2.0

7 years ago

4.0.0

7 years ago

3.0.0

7 years ago

2.2.0

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.0

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.1.0

7 years ago